]> git.lyx.org Git - features.git/blob - lib/layouts/entcs.layout
cleanup stuff separated by Lars from the counter patch
[features.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 Input article.layout
7
8 # only font size 11pt is really available
9 ClassOptions
10         FontSize   11
11 End  
12
13
14 Style Title
15         LatexType             Command
16         LatexName             settitle
17         InTitle               1
18         Preamble
19 \newcommand{\settitle}[1]{\def\theTitle{#1}}
20         EndPreamble
21 End
22
23
24 Style Author
25         LatexType             Command
26         LatexName             setauthor
27         InTitle               1
28         Preamble
29 \newcommand{\setauthor}[1]{\def\theAuthor{#1}}
30         EndPreamble
31 End
32
33
34 Style Address
35         LatexType             Command
36         LatexName             setaddress
37         Align                 Center
38         AlignPossible         Center
39         InTitle               1
40         Preamble
41 \newcommand{\setaddress}[1]{\def\theAddress{#1}}
42         EndPreamble
43         Font 
44           Shape               Italic
45         EndFont
46 End
47
48
49 Style FrontMatter
50         CopyStyle             LaTeX
51         LaTeXType             Command
52         LaTeXName             setfrontmatter
53         InTitle               1
54         Preamble
55 \newcommand{\setfrontmatter}[1]{\def\theFrontMatter{#1}}
56         EndPreamble
57 End
58
59
60 Style Abstract 
61         LatexType             Command
62         LatexName             setabstract
63         LabelType             Top_Environment
64         ParIndent             ""
65         LeftMargin            ""
66         RightMargin           ""
67         InTitle               1
68         Preamble
69 \newcommand{\setabstract}[1]{\def\theAbstract{#1}\setboolean{hasAbstract}{true}}
70         EndPreamble
71 End
72
73
74 Style Keyword
75         Align                 Center
76         AlignPossible         Center
77         LatexType             Command
78         LatexName             setkeyword
79         InTitle               1
80         Preamble
81 \newcommand{\setkeyword}[1]{\def\theKeyword{#1}\setboolean{hasKeyword}{true}}
82         EndPreamble
83         LabelType             Static
84         LabelString           "Key words:"
85         LabelSep              xx
86         
87         Font 
88           Size                Small
89         EndFont
90
91         LabelFont 
92           Shape               Italic
93           Size                Small
94         EndFont
95 End
96
97
98 Preamble
99 \usepackage{entcsmacro,ifthen}
100 \newcommand{\theTitle}[1]{}
101 \newcommand{\theAuthor}[1]{}
102 \newcommand{\theAddress}[1]{}
103 \newcommand{\theAbstract}[1]{}
104 \newboolean{hasAbstract}
105 \newcommand{\theKeyword}[1]{}
106 \newboolean{hasKeyword}
107 \newcommand{\theFrontMatter}[1]{}
108 \newcommand{\maketitle}{
109  \begin{frontmatter}
110  \title{\theTitle}
111  \author{\theAuthor}
112  \address{\theAddress}
113  \ifthenelse{\boolean{hasAbstract}}{\begin{abstract}\theAbstract\end{abstract}}{}
114  \ifthenelse{\boolean{hasKeyword}}{\begin{keyword}\theKeyword\end{keyword}}{}
115  \theFrontMatter
116  \end{frontmatter}
117 }
118 EndPreamble