]> git.lyx.org Git - lyx.git/blob - lib/layouts/iucr.layout
6f2f79d6fb26f7813fe6486c37fc3ea458dc2c74
[lyx.git] / lib / layouts / iucr.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[iucr,float.sty,harvard.sty,html.sty,multicol.sty,tabularx.sty]{International Union of Crystallography (IUCr)}
3 #  \DeclareCategory{Articles}
4 # IUCr article textclass definition file.
5 # Author: Uwe Stöhr (uwestoehr@web.de)
6 # IUCr LaTeX files can be downloaded from ftp://ftp.iucr.org/templates/latex/
7
8 Format 99
9
10 Columns                         1
11 Sides                           1
12 SecNumDepth                     3
13 TocDepth                        3
14 DefaultStyle                    Standard
15
16 ClassOptions
17         FontSize                10
18 end
19
20 Style Standard
21         Category                MainText
22         Margin                  Static
23         LatexType               Paragraph
24         LatexName               dummy
25         ParIndent               MM
26         ParSkip                 0.4
27         Align                   Block
28         AlignPossible           Block, Left, Right, Center
29         LabelType               No_Label
30         DocBookTag      para
31 End
32
33 Input stdtitle.inc
34 Input stdcounters.inc
35 Input stdfloats.inc
36 Input stdlists.inc
37 Input stdsections.inc
38 Input stdstarsections.inc
39 Input stdstruct.inc
40
41 NoStyle Chapter
42 NoCounter chapter
43 NoStyle Chapter*
44 NoStyle Author
45 NoStyle Bibliography
46
47 Style Section
48         LabelString             \thesection.
49         LabelStringAppendix     \thesection
50         Align                   Center
51         TocLevel 1
52 End
53
54 Style Subsection
55         LabelString             \thesubsection.
56         Font
57           Shape                 Italic
58           Size                  Normal
59         EndFont
60         TocLevel 2
61 End
62
63 Style Subsubsection
64         LabelString             \thesubsubsection.
65         Font
66           Shape                 Italic
67         EndFont
68         TocLevel 3
69 End
70
71 Style "Short Title"
72         CopyStyle               Title
73         LatexName               shorttitle
74         Font
75           Size                  Small
76         EndFont
77         DocBookTag      titleabbrev
78 End
79
80 InsetLayout "Flex:City"
81         LyxType                 custom
82         LatexType               command
83         ForcePlain              1
84         LatexName               city
85         LabelString             "City"
86         Font
87           Color                 foreground
88           Size                  Small
89           Family                Roman
90           Shape                 Up
91           Series                Medium
92           Misc                  No_Emph
93           Misc                  No_Noun
94           Misc                  No_Bar
95         EndFont
96         LabelFont
97           Color                 textlabel2
98           Size                  Small
99         EndFont
100 End
101
102 InsetLayout "Flex:Country"
103         CopyStyle               "Flex:City"
104         LatexName               country
105         LabelString             "Country"
106 End
107
108 InsetLayout "Flex:Author Footnote"
109         CopyStyle               "Flex:City"
110         LatexName               aufn
111         LabelString             "Author Footnote"
112 End
113
114 Style "Main Author"
115         Margin                  Static
116         LatexType               Command
117         LatexName               cauthor
118         Category                FrontMatter
119         InTitle                 1
120         NextNoIndent            1
121         Argument 1
122           LabelString           "Affiliation Key"
123           Tooltip               "Affiliation key of the author"
124           # DocBookTag    othername
125         EndArgument
126         Argument 2
127           Mandatory             1
128           LabelString           "Forename"
129           Tooltip               "Forename"
130           # DocBookTag    firstname
131         EndArgument
132         Argument 3
133           Mandatory             1
134           LabelString           "Surname"
135           Tooltip               "Surname"
136           # DocBookTag    surname
137         EndArgument
138         Argument 4
139           Mandatory             1
140           LabelString           "Email"
141           Tooltip               "Email"
142           Font
143             Shape               Italic
144           EndFont
145           # DocBookTag    email
146         EndArgument
147         BottomSep               0.5
148         ParSkip                 0.4
149         Align                   Center
150         LabelType               No_Label
151         DocBookTag            personname
152         DocBookTagType        paragraph
153         DocBookWrapperTag     author
154         DocBookWrapperTagType inline
155         DocBookInInfo         always
156         # TODO: a lot of information is available, but the email would be output in the <personname> tag, and that does not make sense. The two first arguments should be grouped in <personname>, the rest must live outside <personname>.
157 End
158
159 Style "Co Author"
160         CopyStyle               "Main Author"
161         LatexName               author
162         LabelString             "Co-author"
163         ResetArgs               1
164         Argument 1
165           LabelString           "Affiliation Key"
166           Tooltip               "Affiliation key of the co-author"
167         EndArgument
168         Argument 2
169           Mandatory             1
170           LabelString           "Forename"
171           Tooltip               "Forename"
172         EndArgument
173 End
174
175 Style "Short Author"
176         CopyStyle               "Co Author"
177         LatexName               shortauthor
178         LabelString             "Short author:"
179         ResetArgs               1
180         LabelType               Static
181         Align                   Block
182         Margin                  Dynamic
183         LabelSep                xx
184         LabelFont
185           Series                Bold
186           Color                 textlabel2
187         EndFont
188         DocBookInInfo   always
189         DocBookTag      authorinitials
190         DocBookWrapperTag     NONE
191 End
192
193 Style Affiliation
194         CopyStyle               "Short Author"
195         LatexName               aff
196         Category                FrontMatter
197         LabelString             "Affiliation:"
198         Argument 1
199           LabelString           "Affiliation Key"
200           Tooltip               "Affiliation key"
201         EndArgument
202         Font
203           Shape                 Italic
204         EndFont
205         LabelFont
206           Series                Bold
207           Color                 textlabel2
208           Shape                 Up
209         EndFont
210 End
211
212 Style Keyword
213         CopyStyle               "Short Author"
214         LatexName               keyword
215         LabelString             "Keyword:"
216         DocBookTag         keyword
217         DocBookTagType     paragraph
218         DocBookWrapperTag  keywordset
219         DocBookInInfo      always
220 End
221
222 Style Vita
223         CopyStyle               "Short Author"
224         LatexName               vita
225         LabelString             "Vita:"
226 End
227
228 Style "PDB reference"
229         CopyStyle               "Short Author"
230         LatexName               PDBreference
231         LabelString             "PDB reference:"
232         Argument 1
233           LabelString           "Name"
234           Tooltip               "Optional name"
235         EndArgument
236 End
237
238 Style "NDB reference"
239         CopyStyle               "PDB reference"
240         LatexName               NDBreference
241         LabelString             "NDB reference:"
242 End
243
244 Style Synopsis
245   CopyStyle                     Abstract
246   LatexName                     synopsis
247   LabelString                   "Synopsis"
248   Align                         Left
249   AlignPossible                 Left
250   DocBookAttr       role='synopsis'
251 End
252
253 Style Acknowledgements
254   CopyStyle                     "Short Author"
255   LatexName                     ack
256   InTitle                       0
257   LabelString                   "Acknowledgements:"
258   Category                      BackMatter
259   TopSep                        0.7
260   DocBookTag            para
261   DocBookWrapperTag     acknowledgements
262 End
263
264 Style References
265   Margin                        Static
266   Category                      BackMatter
267   LatexType                     Item_Environment
268   LatexName                     references
269   ItemCommand                   reference
270   LabelType                     Centered
271   LabelString                   "References"
272   LabelFont
273    Size larger
274    Series bold
275   EndFont
276   ParagraphGroup                1
277   NextNoIndent                  1
278   TopSep                        0.7
279   BottomSep                     0.7
280   Argument listpreamble:1
281     LabelString                 "List preamble"
282     MenuString                  "List Preamble"
283     Tooltip                     "LaTeX code to be inserted before the first item"
284     PassThru                    1
285     Font
286       Family typewriter
287       Color latex
288     EndFont
289   EndArgument
290   Argument item:1
291     LabelString                 "Reference"
292     Mandatory                   1
293     AutoInsert                  1
294         DocBookTag          bibliomixed
295   EndArgument
296   Align                         Left
297   DocBookTag        bibliography
298 End