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