]> git.lyx.org Git - lyx.git/blob - lib/layouts/entcs.layout
Allow literate documents other than noweb to work out of the box. Currently
[lyx.git] / lib / layouts / entcs.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass{article (ENTCS)}
3 # Based on LyX article class; modified to support ENTCS class
4 # Reuben Thomas (rrt@sc3d.org)   27/5-2/6/01
5
6 Format 11
7 Input article.layout
8
9 # only font size 11pt is really available
10 ClassOptions
11         FontSize   11
12 End
13
14 Requires        ifthen
15
16 Preamble
17         \usepackage{entcsmacro}
18         \newcommand{\theTitle}[1]{}
19         \newcommand{\theAuthor}[1]{}
20         \newcommand{\theAddress}[1]{}
21         \newcommand{\theAbstract}[1]{}
22         \newboolean{hasAbstract}
23         \newcommand{\theKeyword}[1]{}
24         \newboolean{hasKeyword}
25         \newcommand{\theFrontMatter}[1]{}
26         \newcommand{\maketitle}{
27          \begin{frontmatter}
28          \title{\theTitle}
29          \author{\theAuthor}
30          \address{\theAddress}
31          \ifthenelse{\boolean{hasAbstract}}{\begin{abstract}\theAbstract\end{abstract}}{}
32          \ifthenelse{\boolean{hasKeyword}}{\begin{keyword}\theKeyword\end{keyword}}{}
33          \theFrontMatter
34          \end{frontmatter}
35         }
36 EndPreamble
37
38
39 Style Title
40         LatexType             Command
41         LatexName             settitle
42         InTitle               1
43         Preamble
44                 \newcommand{\settitle}[1]{\def\theTitle{#1}}
45         EndPreamble
46 End
47
48
49 Style Author
50         LatexType             Command
51         LatexName             setauthor
52         InTitle               1
53         Preamble
54                 \newcommand{\setauthor}[1]{\def\theAuthor{#1}}
55         EndPreamble
56 End
57
58
59 Style Address
60         LatexType             Command
61         LatexName             setaddress
62         Align                 Center
63         InTitle               1
64         Preamble
65                 \newcommand{\setaddress}[1]{\def\theAddress{#1}}
66         EndPreamble
67         Font
68           Shape               Italic
69         EndFont
70 End
71
72
73 Style FrontMatter
74         CopyStyle             LaTeX
75         LaTeXType             Command
76         LaTeXName             setfrontmatter
77         InTitle               1
78         Preamble
79                 \newcommand{\setfrontmatter}[1]{\def\theFrontMatter{#1}}
80         EndPreamble
81 End
82
83
84 Style Abstract
85         LatexType             Command
86         LatexName             setabstract
87         LabelType             Top_Environment
88         ParIndent             ""
89         LeftMargin            ""
90         RightMargin           ""
91         InTitle               1
92         Preamble
93                 \newcommand{\setabstract}[1]{%
94                         \def\theAbstract{#1}\setboolean{hasAbstract}{true}}
95         EndPreamble
96 End
97
98
99 Style Keyword
100         Align                 Center
101         LatexType             Command
102         LatexName             setkeyword
103         InTitle               1
104         Preamble
105                 \newcommand{\setkeyword}[1]{%
106                         \def\theKeyword{#1}\setboolean{hasKeyword}{true}}
107         EndPreamble
108         LabelType             Static
109         LabelString           "Key words:"
110         LabelSep              xx
111         Font
112           Size                Small
113         EndFont
114         LabelFont
115           Shape               Italic
116           Size                Small
117         EndFont
118 End