File: elsarticle.layout

package info (click to toggle)
lyx 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 138,444 kB
  • sloc: cpp: 244,268; ansic: 106,398; xml: 72,791; python: 39,384; sh: 7,666; makefile: 6,584; pascal: 2,143; perl: 2,101; objc: 1,084; tcl: 163; sed: 16
file content (365 lines) | stat: -rw-r--r-- 7,237 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[elsarticle,natbib.sty,pifont.sty]{Elsevier}
#  \DeclareCategory{Articles}
# elsarticle textclass definition file.
# Author: Uwe Stöhr (uwestoehr@web.de)

Format 111

Columns				1
Sides				1
SecNumDepth			3
TocDepth			3
DefaultStyle			Standard
Provides natbib			1
Provides refstyle		1

ClassOptions
	FontSize		10|11|12
end

TitleLatexType Environment
TitleLatexName frontmatter

# This is just to show how to declare the default font.
# The defaults are exactly those shown here.
DefaultFont
	Family			Roman
	Series			Medium
	Shape			Up
	Size			Normal
	Color			None
EndFont


Style Standard
	Category		MainText
	Margin			Static
	LatexType		Paragraph
	LatexName		dummy
	ParIndent		MM
	ParSkip			0.4
	Align			Block
	AlignPossible	Block, Left, Right, Center
	LabelType		No_Label
	DocBookTag      para
End

Input stdcounters.inc
Input stdfloats.inc
Input stdlists.inc
Input stdsections.inc
Input stdstarsections.inc
Input stdlayouts.inc

NoStyle				Chapter
NoCounter			chapter
NoStyle				Chapter*

Style Title
	Margin			Static
	LatexType		Command
	LatexName		title
	Category		FrontMatter
	InTitle			1
	ResetArgs		1
	ParSkip			0.4
	ItemSep			0
	TopSep			0
	BottomSep		1
	ParSep			1
	Align			Center
	LabelType		No_Label
	Font
	  Size			Largest
	EndFont
	HTMLTitle		true
	DocBookTag            title
	DocBookTagType        paragraph
	DocBookInInfo         maybe
End

InsetLayout "Flex:Titlenotemark"
	LyxType			custom
	LatexType		command
	ForcePlain		1
	LatexName		tnoteref
	LabelString		"Titlenote mark"
	Font
	  Color			foreground
	  Size			Small
	  Family		Roman
	  Shape			Up
	  Series		Medium
	  Misc			No_Emph
	  Misc			No_Noun
	  Misc			No_Bar
	EndFont
	LabelFont
	  Color			textlabel2
	  Size			Small
	EndFont
	DocBookTag      footnoteref
	# TODO: the content will be output within the tag, while it should be the linkend attribute, i.e. the output should be <footnoteref linked="[content]"/>. If the content has several footnotes, it should be split on the comma: "t1,t2" should generate <footnoteref linked="t1"/><footnoteref linked="t2"/>.
End


Style "Title footnote"
	Margin			Dynamic
	LatexType		Command
	LatexName		tnotetext
	Category		FrontMatter
	InTitle			1
	Argument 1
	  LabelString   "Footnote Label"
	  Tooltip       "Label you refer to in the title"
	  DocBookTag    anchor
	  DocBookTagType  inline
	EndArgument
	ParSkip			0.4
	BottomSep		0.5
	Align			Left
	LabelSep		xx
	LabelType		Static
	LabelString		"Title footnote:"
	LabelFont
	  Color			textlabel2
	  Series		Bold
	EndFont
	DocBookTag      footnote
	DocBookItemTag  para
	DocBookWrapperTag      title
	DocBookWrapperTagType  paragraph
	DocBookWrapperMergeWithPrevious  true
	DocBookInInfo   maybe
	# TODO: the argument will be output within the tag, while it should be the xml:id attribute, i.e. the output should be <footnote xml:id="[Argument 1]"/>. And it should also be within the title, and not as a second title.
End


Style Author
	Margin			Static
	LatexType		Command
	Category		FrontMatter
	InTitle			1
	Argument 1
	  LabelString	"Author Label"
	  Tooltip		"Label you will reference in the address"
	  DocBookTag    phrase
	  DocBookAttr   role='address-label'
	EndArgument
	LatexName		author
	LabelSep		xxx
	ParSkip			0.4
	TopSep			1.3
	BottomSep		0.7
	ParSep			0.7
	Align			Center
	LabelType		No_Label
	Font
	  Size			Large
	EndFont
	DocBookTag            personname
	DocBookTagType        paragraph
	DocBookWrapperTag     author
	DocBookWrapperTagType block
	DocBookInInfo         always
End


InsetLayout "Flex:Authormark"
	LyxType			custom
	LatexType		command
	ForcePlain		1
	LatexName		fnref
	LabelString		"Author mark"
	Font
	  Color			foreground
	  Size			Small
	  Family		Roman
	  Shape			Up
	  Series		Medium
	  Misc			No_Emph
	  Misc			No_Noun
	  Misc			No_Bar
	EndFont
	LabelFont
	  Color			latex
	  Size			Small
	EndFont
End


Style "Author footnote"
	CopyStyle		"Title footnote"
	LatexName		fntext
	InTitle			1
	LabelString		"Author footnote:"
	Argument 1
	  LabelString	"Author Footnote Label"
	  Tooltip		"Label you refer to for an author"
	EndArgument
End


InsetLayout "Flex:CorAuthormark"
	CopyStyle		"Flex:Authormark"
	LatexName		corref
	LabelString		"CorAuthor mark"
	LabelFont
	  Color			textlabel1
	EndFont
End


Style "Corresponding author"
	CopyStyle		"Author footnote"
	LatexName		cortext
	InTitle			1
	LabelString		"Corresponding author text:"
End


Style Address
	Margin			Static
	LatexType		Command
	Category		FrontMatter
	LatexName		address
	InTitle			1
	Argument 1
	  LabelString	"Address Label"
	  Tooltip		"Label of the author you refer to"
	  DocBookTag    phrase
	  DocBookAttr   role='label'
	EndArgument
	ParSkip			0.4
	Align			Center
	AlignPossible	Left, Right
	LabelType		No_Label
	Font
	  Shape			Italic
	EndFont
	DocBookTag            address
	DocBookTagType        paragraph
	DocBookWrapperTag     author
	DocBookWrapperTagType block
	DocBookWrapperMergeWithPrevious  true
	DocBookInInfo         always
End


Style Email
	CopyStyle		Address
	LatexName		ead
	InTitle			1
	AlignPossible	Block
	Argument 1
	  LabelString	"Internet"
	  Tooltip		"If content is 'url', email becomes an Internet address"
	EndArgument
	Font
	  Shape			Up
	EndFont
	DocBookTag            email
	DocBookTagType        paragraph
	DocBookWrapperTag     author
	DocBookWrapperTagType block
	DocBookWrapperMergeWithPrevious  true
	DocBookInInfo         always
End


Style Abstract
	Margin			Static
	LatexType		Environment
	LatexName		abstract
	Category		FrontMatter
	InTitle			1
	NextNoIndent	1
	LeftMargin		MMM
	RightMargin		MMM
	ParIndent		MM
	ItemSep			0
	TopSep			0.7
	BottomSep		0.7
	ParSep			0
	Align			Block
	AlignPossible	Block
	LabelType		Centered
	LabelString		"Abstract"
	LabelBottomSep	0.5
	Font
	  Size			Small
	EndFont
	LabelFont
	  Series		Bold
	  Size			Large
	EndFont
	DocBookAbstract       true
	DocBookInInfo         always
	DocBookWrapperTag     abstract
	DocBookWrapperMergeWithPrevious    true
	DocBookTag            para
End


Style Keywords
	Margin			Dynamic
	LatexType		Environment
	LatexName		keyword
	Category		FrontMatter
	InTitle			1
	NextNoIndent	1
	BottomSep		0.5
	ParSkip			0.4
	Align			Block
	LabelSep		xx
	LabelType		Static
	LabelString		"Keywords:"
	LabelFont
	  Color			textlabel2
	  Series		Bold
	EndFont
	DocBookTag         keyword
	DocBookTagType     paragraph
	DocBookWrapperTag  keywordset
	DocBookInInfo      always
End


Style Bibliography
	Margin			First_Dynamic
	LatexType		Bib_Environment
	LatexName		thebibliography
	Category		BackMatter
	NextNoIndent	        1
	ToggleIndent            Never
	LeftMargin		MM
	ParSkip			0.4
	ItemSep			0
	TopSep			0.7
	BottomSep		0.7
	ParSep			0.5
	Align			Block
	AlignPossible           Block, Left
	LabelType		Bibliography
	LabelString		"References"
	LabelBottomSep          1.2
	LabelFont
	  Series		Bold
	  Size			Larger
	EndFont
	TocLevel                1
	IsTocCaption            0
	Argument listpreamble:1
	  LabelString		"Bib preamble"
	  MenuString		"Bibliography Preamble"
	  Tooltip		"LaTeX code to be inserted before the first bibliography item"
	  PassThru		1
	  Font
	    Family		typewriter
	    Color		latex
	  EndFont
	EndArgument
	DocBookTag      bibliography
End