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