]> git.lyx.org Git - lyx.git/blob - lib/layouts/entcs.layout
Layout dependencies patch from Julien Rioux.
[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,leqno.clo,newlfont.sty]{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 27
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         HTMLTitle             true
47 End
48
49
50 Style Author
51         LatexType             Command
52         LatexName             setauthor
53         InTitle               1
54         Preamble
55                 \newcommand{\setauthor}[1]{\def\theAuthor{#1}}
56         EndPreamble
57 End
58
59
60 Style Address
61         LatexType             Command
62         LatexName             setaddress
63         Align                 Center
64         InTitle               1
65         Preamble
66                 \newcommand{\setaddress}[1]{\def\theAddress{#1}}
67         EndPreamble
68         Font
69           Shape               Italic
70         EndFont
71 End
72
73
74 Style FrontMatter
75         CopyStyle             LaTeX
76         LaTeXType             Command
77         LaTeXName             setfrontmatter
78         InTitle               1
79         Preamble
80                 \newcommand{\setfrontmatter}[1]{\def\theFrontMatter{#1}}
81         EndPreamble
82 End
83
84
85 Style Abstract
86         LatexType             Command
87         LatexName             setabstract
88         LabelType             Top_Environment
89         ParIndent             ""
90         LeftMargin            ""
91         RightMargin           ""
92         InTitle               1
93         Preamble
94                 \newcommand{\setabstract}[1]{%
95                         \def\theAbstract{#1}\setboolean{hasAbstract}{true}}
96         EndPreamble
97 End
98
99
100 Style Keyword
101         Align                 Center
102         LatexType             Command
103         LatexName             setkeyword
104         InTitle               1
105         Preamble
106                 \newcommand{\setkeyword}[1]{%
107                         \def\theKeyword{#1}\setboolean{hasKeyword}{true}}
108         EndPreamble
109         LabelType             Static
110         LabelString           "Key words:"
111         LabelSep              xx
112         Font
113           Size                Small
114         EndFont
115         LabelFont
116           Shape               Italic
117           Size                Small
118         EndFont
119 End