]> git.lyx.org Git - lyx.git/blob - lib/layouts/entcs.layout
Change LFUN_FONT_CODE to LFUN_FONT_TYPEWERITER, possibly in preparation for a move...
[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 5
7 Input article.layout
8
9 # only font size 11pt is really available
10 ClassOptions
11         FontSize   11
12 End
13
14 Preamble
15         \usepackage{entcsmacro,ifthen}
16         \newcommand{\theTitle}[1]{}
17         \newcommand{\theAuthor}[1]{}
18         \newcommand{\theAddress}[1]{}
19         \newcommand{\theAbstract}[1]{}
20         \newboolean{hasAbstract}
21         \newcommand{\theKeyword}[1]{}
22         \newboolean{hasKeyword}
23         \newcommand{\theFrontMatter}[1]{}
24         \newcommand{\maketitle}{
25          \begin{frontmatter}
26          \title{\theTitle}
27          \author{\theAuthor}
28          \address{\theAddress}
29          \ifthenelse{\boolean{hasAbstract}}{\begin{abstract}\theAbstract\end{abstract}}{}
30          \ifthenelse{\boolean{hasKeyword}}{\begin{keyword}\theKeyword\end{keyword}}{}
31          \theFrontMatter
32          \end{frontmatter}
33         }
34 EndPreamble
35
36
37 Style Title
38         LatexType             Command
39         LatexName             settitle
40         InTitle               1
41         Preamble
42                 \newcommand{\settitle}[1]{\def\theTitle{#1}}
43         EndPreamble
44 End
45
46
47 Style Author
48         LatexType             Command
49         LatexName             setauthor
50         InTitle               1
51         Preamble
52                 \newcommand{\setauthor}[1]{\def\theAuthor{#1}}
53         EndPreamble
54 End
55
56
57 Style Address
58         LatexType             Command
59         LatexName             setaddress
60         Align                 Center
61         AlignPossible         Center
62         InTitle               1
63         Preamble
64                 \newcommand{\setaddress}[1]{\def\theAddress{#1}}
65         EndPreamble
66         Font
67           Shape               Italic
68         EndFont
69 End
70
71
72 Style FrontMatter
73         CopyStyle             LaTeX
74         LaTeXType             Command
75         LaTeXName             setfrontmatter
76         InTitle               1
77         Preamble
78                 \newcommand{\setfrontmatter}[1]{\def\theFrontMatter{#1}}
79         EndPreamble
80 End
81
82
83 Style Abstract
84         LatexType             Command
85         LatexName             setabstract
86         LabelType             Top_Environment
87         ParIndent             ""
88         LeftMargin            ""
89         RightMargin           ""
90         InTitle               1
91         Preamble
92                 \newcommand{\setabstract}[1]{%
93                         \def\theAbstract{#1}\setboolean{hasAbstract}{true}}
94         EndPreamble
95 End
96
97
98 Style Keyword
99         Align                 Center
100         AlignPossible         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