]> git.lyx.org Git - lyx.git/blob - lib/layouts/entcs.layout
remove spaces from label strings, part 2
[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 Input article.layout
7
8 # only font size 11pt is really available
9 ClassOptions
10         FontSize   11
11 End
12
13 Preamble
14         \usepackage{entcsmacro,ifthen}
15         \newcommand{\theTitle}[1]{}
16         \newcommand{\theAuthor}[1]{}
17         \newcommand{\theAddress}[1]{}
18         \newcommand{\theAbstract}[1]{}
19         \newboolean{hasAbstract}
20         \newcommand{\theKeyword}[1]{}
21         \newboolean{hasKeyword}
22         \newcommand{\theFrontMatter}[1]{}
23         \newcommand{\maketitle}{
24          \begin{frontmatter}
25          \title{\theTitle}
26          \author{\theAuthor}
27          \address{\theAddress}
28          \ifthenelse{\boolean{hasAbstract}}{\begin{abstract}\theAbstract\end{abstract}}{}
29          \ifthenelse{\boolean{hasKeyword}}{\begin{keyword}\theKeyword\end{keyword}}{}
30          \theFrontMatter
31          \end{frontmatter}
32         }
33 EndPreamble
34
35
36 Style Title
37         LatexType             Command
38         LatexName             settitle
39         InTitle               1
40         Preamble
41                 \newcommand{\settitle}[1]{\def\theTitle{#1}}
42         EndPreamble
43 End
44
45
46 Style Author
47         LatexType             Command
48         LatexName             setauthor
49         InTitle               1
50         Preamble
51                 \newcommand{\setauthor}[1]{\def\theAuthor{#1}}
52         EndPreamble
53 End
54
55
56 Style Address
57         LatexType             Command
58         LatexName             setaddress
59         Align                 Center
60         AlignPossible         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         AlignPossible         Center
100         LatexType             Command
101         LatexName             setkeyword
102         InTitle               1
103         Preamble
104                 \newcommand{\setkeyword}[1]{%
105                         \def\theKeyword{#1}\setboolean{hasKeyword}{true}}
106         EndPreamble
107         LabelType             Static
108         LabelString           "Key words:"
109         LabelSep              xx
110         Font
111           Size                Small
112         EndFont
113         LabelFont
114           Shape               Italic
115           Size                Small
116         EndFont
117 End