]> git.lyx.org Git - lyx.git/blob - lib/layouts/entcs.layout
b2599b4e54bcfc4c88b1919791bea45a54e50d7b
[lyx.git] / lib / layouts / entcs.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[entcs,amssymb.sty,entcsmacro.sty,hyperref.sty,ifpdf.sty,latexsym.sty,newlfont.sty]{Electronic Notes in Theor. Comp. Sc. (ENTCS)}
3 #  \DeclareCategory{Articles}
4 # Based on LyX article class; modified to support ENTCS class
5 # Reuben Thomas (rrt@sc3d.org)   27/5-2/6/01
6
7 Format 68
8 Input article.layout
9
10 # only font size 11pt is really available
11 ClassOptions
12         FontSize   11
13 End
14
15 Requires        ifthen
16
17 Preamble
18         \usepackage{entcsmacro}
19         \newcommand{\theTitle}[1]{}
20         \newcommand{\theAuthor}[1]{}
21         \newcommand{\theAddress}[1]{}
22         \newcommand{\theAbstract}[1]{}
23         \newboolean{hasAbstract}
24         \newcommand{\theKeyword}[1]{}
25         \newboolean{hasKeyword}
26         \newcommand{\theFrontMatter}[1]{}
27         \newcommand{\maketitle}{
28          \begin{frontmatter}
29          \title{\theTitle}
30          \author{\theAuthor}
31          \address{\theAddress}
32          \ifthenelse{\boolean{hasAbstract}}{\begin{abstract}\theAbstract\end{abstract}}{}
33          \ifthenelse{\boolean{hasKeyword}}{\begin{keyword}\theKeyword\end{keyword}}{}
34          \theFrontMatter
35          \end{frontmatter}
36         }
37 EndPreamble
38
39
40 Style Title
41         LatexType             Command
42         LatexName             settitle
43         InTitle               1
44         Preamble
45                 \newcommand{\settitle}[1]{\def\theTitle{#1}}
46         EndPreamble
47         HTMLTitle             true
48 End
49
50
51 Style Author
52         LatexType             Command
53         LatexName             setauthor
54         InTitle               1
55         Preamble
56                 \newcommand{\setauthor}[1]{\def\theAuthor{#1}}
57         EndPreamble
58 End
59
60
61 Style Address
62         LatexType             Command
63         LatexName             setaddress
64         Align                 Center
65         InTitle               1
66         Preamble
67                 \newcommand{\setaddress}[1]{\def\theAddress{#1}}
68         EndPreamble
69         Font
70           Shape               Italic
71         EndFont
72 End
73
74
75 Style FrontMatter
76 #       CopyStyle             LaTeX
77         LaTeXType             Command
78         LaTeXName             setfrontmatter
79         InTitle               1
80         Preamble
81                 \newcommand{\setfrontmatter}[1]{\def\theFrontMatter{#1}}
82         EndPreamble
83 End
84
85
86 Style Abstract
87         LatexType             Command
88         LatexName             setabstract
89         LabelType             Above
90         ParIndent             ""
91         LeftMargin            ""
92         RightMargin           ""
93         InTitle               1
94         Preamble
95                 \newcommand{\setabstract}[1]{%
96                         \def\theAbstract{#1}\setboolean{hasAbstract}{true}}
97         EndPreamble
98 End
99
100
101 Style Keyword
102         Align                 Center
103         LatexType             Command
104         LatexName             setkeyword
105         InTitle               1
106         Preamble
107                 \newcommand{\setkeyword}[1]{%
108                         \def\theKeyword{#1}\setboolean{hasKeyword}{true}}
109         EndPreamble
110         LabelType             Static
111         LabelString           "Key words:"
112         LabelSep              xx
113         Font
114           Size                Small
115         EndFont
116         LabelFont
117           Shape               Italic
118           Size                Small
119         EndFont
120 End