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