]> git.lyx.org Git - lyx.git/blob - lib/layouts/entcs.layout
include intl/libintl.h that is relative to $TOP_SRCDIR/src
[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         InTitle               1
62         Preamble
63                 \newcommand{\setaddress}[1]{\def\theAddress{#1}}
64         EndPreamble
65         Font
66           Shape               Italic
67         EndFont
68 End
69
70
71 Style FrontMatter
72         CopyStyle             LaTeX
73         LaTeXType             Command
74         LaTeXName             setfrontmatter
75         InTitle               1
76         Preamble
77                 \newcommand{\setfrontmatter}[1]{\def\theFrontMatter{#1}}
78         EndPreamble
79 End
80
81
82 Style Abstract
83         LatexType             Command
84         LatexName             setabstract
85         LabelType             Top_Environment
86         ParIndent             ""
87         LeftMargin            ""
88         RightMargin           ""
89         InTitle               1
90         Preamble
91                 \newcommand{\setabstract}[1]{%
92                         \def\theAbstract{#1}\setboolean{hasAbstract}{true}}
93         EndPreamble
94 End
95
96
97 Style Keyword
98         Align                 Center
99         LatexType             Command
100         LatexName             setkeyword
101         InTitle               1
102         Preamble
103                 \newcommand{\setkeyword}[1]{%
104                         \def\theKeyword{#1}\setboolean{hasKeyword}{true}}
105         EndPreamble
106         LabelType             Static
107         LabelString           "Key words:"
108         LabelSep              xx
109         Font
110           Size                Small
111         EndFont
112         LabelFont
113           Shape               Italic
114           Size                Small
115         EndFont
116 End