]> git.lyx.org Git - lyx.git/blob - lib/layouts/apax.inc
Merge branch 'feature/docbook' into master
[lyx.git] / lib / layouts / apax.inc
1 # APA x textclass definition file.
2 # Author: Jacob Bishop <bishop.jacob@gmail.com> based on the apa 
3 # layout written by Randy Gobbel.
4
5 Format 82
6 Columns                 1
7 Sides                   1
8 PageStyle               Headers
9
10
11 ClassOptions
12         Other "man"
13         FontSize              10|11|12
14 End
15
16
17 Preamble
18 EndPreamble
19
20
21 Style Standard
22         Category              MainText
23         LatexName             dummy
24         LatexType             Paragraph
25         Margin                Static
26         ParIndent             MM
27         ParSkip               0.4
28         ParSep                0.4
29         TopSep                1.0
30         BottomSep             1.0
31         Align                 Block
32         AlignPossible         Block, Left, Right, Center
33         LabelType             No_Label
34 End
35
36
37 Style Title
38         Category              FrontMatter
39         LatexName             title
40         LatexType             Command
41         InTitle               1
42         Font
43           Size                Huge
44         EndFont
45         Align                 Center
46         HTMLTitle             true
47 End
48
49
50 Style ShortTitle
51         Category              FrontMatter
52         LatexName             shorttitle
53         LatexType             Command
54         InTitle               1
55         Align                 Left
56         AlignPossible         Left, Right, Center
57         Margin                Dynamic
58         Labeltype             Static
59         LabelString           "Short title:"
60         Labelsep              M
61         Font
62           Shape               SmallCaps
63           Size                Small
64         EndFont
65         LabelFont
66           Series              Bold
67           Size                Small
68           Shape               Up
69         EndFont
70 End
71
72
73 Style Author
74         Category              FrontMatter
75         LatexName             author
76         LatexType             Command
77         InTitle               1
78         Align                 Center
79         AlignPossible         Left, Right, Center
80         TopSep                0.5
81         BottomSep             0.5
82         Font
83           Shape               Italic
84           Size                Small
85         EndFont
86 End
87
88
89 Style TwoAuthors
90         Category              FrontMatter
91         LatexName             twoauthors
92         LatexType             Command
93         InTitle               1
94 End
95
96
97 Style ThreeAuthors
98         Category              FrontMatter
99         LatexName             threeauthors
100         LatexType             Command
101         InTitle               1
102 End
103
104
105 Style FourAuthors
106         Category              FrontMatter
107         LatexName             fourauthors
108         LatexType             Command
109         InTitle               1
110 End
111
112 Style FiveAuthors
113         Category              FrontMatter
114         LatexName             fiveauthors
115         LatexType             Command
116         InTitle               1
117 End
118
119 Style SixAuthors
120         Category              FrontMatter
121         LatexName             sixauthors
122         LatexType             Command
123         InTitle               1
124 End
125
126 Style LeftHeader
127         Category              FrontMatter
128         LatexName             leftheader
129         LatexType             Command
130         InTitle               1
131         Align                 Left
132         AlignPossible         Left, Right, Center
133         Margin                Dynamic
134         Labeltype             Static
135         LabelString           "Left header:"
136         Labelsep              M
137         Font
138           Size                Small
139           Shape               SmallCaps
140         EndFont
141         LabelFont
142           Series              Bold
143           Size                Small
144         EndFont
145 End
146
147
148 Style Affiliation
149         Category              FrontMatter
150         LatexName             affiliation
151         LatexType             Command
152         InTitle               1
153         Margin                Dynamic
154         ParSkip               0.4
155         BottomSep             1.0
156         TopSep                1.5
157         ParSep                1.5
158         Align                 Left
159         AlignPossible         Block, Left, Right, Center
160         LabelType             Static
161         LabelString           "Affiliation:"
162         Labelsep              M
163         LabelFont
164           Series              Bold
165           Size                Small
166         EndFont
167 End
168
169 Style TwoAffiliations
170         Category              FrontMatter
171         LatexName             twoaffiliations
172         LatexType             Command
173         InTitle               1
174 End
175
176 Style ThreeAffiliations
177         Category              FrontMatter
178         LatexName             threeaffiliations
179         LatexType             Command
180         InTitle               1
181 End
182
183 Style FourAffiliations
184         Category              FrontMatter
185         LatexName             fouraffiliations
186         LatexType             Command
187         InTitle               1
188 End
189
190 Style FiveAffiliations
191         Category              FrontMatter
192         LatexName             fiveaffiliations
193         LatexType             Command
194         InTitle               1
195 End
196
197 Style SixAffiliations
198         Category              FrontMatter
199         LatexName             sixaffiliations
200         LatexType             Command
201         InTitle               1
202 End
203
204
205 Style Note
206         Category              FrontMatter
207         LatexName             note
208         LatexType             Command
209         InTitle               1
210         Margin                Dynamic
211         ParSkip               0.4
212         BottomSep             1.5
213         TopSep                1.5
214         ParSep                1.5
215         Align                 Left
216         AlignPossible         Block, Left, Right, Center
217         LabelType             Static
218         LabelString           "Note:"
219         Labelsep              M
220         LabelFont
221           Series              Bold
222           Size                Small
223         EndFont
224 End
225
226
227 Style Abstract
228         Category              FrontMatter
229         LatexName             abstract
230         LatexType             Command
231         InTitle               1
232         Font
233           Size                Small
234         EndFont
235         Margin                Dynamic
236         LeftMargin            MMN
237         RightMargin           MMN
238         Align                 Block
239         AlignPossible         Block, Left, Right, Center
240         Labeltype             Static
241         LabelString           "Abstract:"
242         Labelsep              M
243         LabelFont
244           Series              Bold
245           Size                Small
246         EndFont
247 End
248
249 Style Keywords
250         Category              FrontMatter
251         LatexName             keywords
252         LatexType             Command
253         InTitle               1
254         Font
255           Size                Small
256         EndFont
257         Margin                Dynamic
258         LeftMargin            MMN
259         RightMargin           MMN
260         Align                 Block
261         AlignPossible         Block, Left, Right, Center
262         TopSep                0.8
263         BottomSep             0.8
264         Labeltype             Static
265         LabelString           "Keywords:"
266         Labelsep              M
267         LabelFont
268           Size                Small
269           Shape               Italic
270         EndFont
271 End
272
273 Style AuthorNote
274         Category              FrontMatter
275         LatexName             authornote
276         LatexType             Command
277         InTitle               1
278         Font
279           Size                Small
280         EndFont
281         Margin                Dynamic
282         ParSkip               0.4
283         BottomSep             1.5
284         TopSep                1.5
285         ParSep                1.5
286         Align                 Left
287         LeftMargin            MMN
288         RightMargin           MMN
289         Align                 Block
290         AlignPossible         Block, Left, Right, Center
291         Labeltype             Static
292         LabelString           "Author Note:"
293         Labelsep              M
294         LabelFont
295           Series              Bold
296           Size                Small
297         EndFont
298 End
299
300
301 Style Acknowledgments
302         ObsoletedBy           AuthorNote
303 End
304
305
306 Style Journal
307         Category              Preamble
308         LatexName             journal
309         LatexType             Command
310         InPreamble            1
311 End
312
313
314 Style Copyright
315         Category              Preamble
316         LatexName             ccoppy
317         LatexType             Command
318         InPreamble            1
319         Align                 Right
320 End
321
322
323 Style CopNum
324         Category              Preamble
325         LatexName             copnum
326         LatexType             Command
327         InPreamble            1
328         Align                 Right
329 End
330
331 Style Volume
332         Category              Preamble
333         LatexName             volume
334         LatexType             Command
335         InPreamble            1
336 End
337
338 Style ThickLine
339         LatexName             thickline
340         LatexType             Command
341         KeepEmpty             1
342 End
343
344
345
346 Input stdlayouts.inc
347
348
349 InsetLayout Caption:Centered
350         LabelString          standard
351         LaTeXType            command
352         LatexName            centeredcaption
353         NeedProtect          1
354         MultiPar             false
355         Argument 1
356                 LabelString   "Short Title|S"
357                 Tooltip       "The caption as it appears in the list of figures/tables"
358                 InsertCotext  1
359         EndArgument
360         HTMLStyle
361                 div.float-caption {
362                         text-align: center;
363                         border: 2px solid black;
364                         padding: 1ex;
365                         margin: 1ex;
366                 }
367         EndHTMLStyle
368         HTMLAttr "class='float-caption float-caption-centered'"
369 End
370
371
372 Style FitFigure
373         LatexName             fitfigure
374         LatexType             Command
375 End
376
377
378 Style FitBitmap
379         LatexName             fitbitmap
380         LatexType             Command
381 End
382
383
384 Input stdsections.inc
385 Input stdstarsections.inc
386 Input stdinsets.inc
387
388 Input stdfloats.inc
389 Input stdcounters.inc
390
391 NoStyle Part
392 NoCounter part
393 NoStyle Part*
394 NoStyle Chapter
395 NoCounter chapter
396 NoStyle Chapter*
397 NoStyle Section*
398 NoStyle Subsection*
399 NoStyle Subsubsection*
400 NoStyle Paragraph*
401 NoStyle Subparagraph*
402
403
404 Style Section
405         LabelType             No_Label
406         Align                 Center
407         Font
408           Series              Bold
409           Size                Huge
410         EndFont
411         TocLevel              1
412 End
413
414
415 Style Subsection
416         LabelType             No_Label
417         Font
418           Series              Bold
419           Size                Larger
420         EndFont
421         TocLevel              2
422 End
423
424
425 Style Subsubsection
426         LabelType             No_Label
427         Font
428           Series              Bold
429           Size                Large
430         EndFont
431         TocLevel              3
432 End
433
434
435 Style Paragraph
436         LabelType             No_Label
437         Font
438           Series              Bold
439           Size                Normal
440         EndFont
441         TocLevel              4
442 End
443
444
445 Style Subparagraph
446         LabelType             No_Label
447         Font
448           Series              Bold
449           Size                Normal
450           Shape               Italic
451         EndFont
452         TocLevel              5
453 End
454
455
456 Style Itemize
457         Category              List
458         Margin                Static
459         LatexType             Item_Environment
460         LatexName             APAitemize
461         NextNoIndent          1
462         ToggleIndent          Never
463         LeftMargin            MMN
464         LabelSep              xx
465         ItemSep               0.2
466         TopSep                0.7
467         BottomSep             0.7
468         ParSep                0.3
469         Align                 Block
470         AlignPossible         Block, Left
471         LabelType             Itemize
472         LabelString           "*"
473         Argument item:1
474                 LabelString   "Custom Item|s"
475                 Tooltip       "A customized item string"
476         EndArgument
477         Argument listpreamble:1
478                 LabelString    "List preamble"
479                 MenuString     "List Preamble"
480                 Tooltip        "LaTeX code to be inserted before the first item"
481                 PassThru       1
482                 Font
483                         Family typewriter
484                         Color latex
485                 EndFont
486         EndArgument
487         DocBookTag            itemizedlist
488         DocBookItemTag        listitem
489         DocBookItemInnerTag   para
490 End
491
492
493 Style Enumerate
494         Category              List
495         Margin                Static
496         LatexType             Item_Environment
497         LatexName             APAenumerate
498         NextNoIndent          1
499         ToggleIndent          Never
500         LeftMargin            MMN
501         LabelSep              xx
502         ParSkip               0.0
503         ItemSep               0.2
504         TopSep                0.7
505         BottomSep             0.7
506         ParSep                0.3
507         Align                 Block
508         AlignPossible         Block, Left
509         LabelType             Enumerate
510         RefPrefix             enu
511         Argument item:1
512                 LabelString   "Custom Item|s"
513                 Tooltip       "A customized item string"
514         EndArgument
515         Argument listpreamble:1
516                 LabelString    "List preamble"
517                 MenuString     "List Preamble"
518                 Tooltip        "LaTeX code to be inserted before the first item"
519                 PassThru       1
520                 Font
521                         Family typewriter
522                         Color latex
523                 EndFont
524         EndArgument
525         DocBookTag            orderedlist
526         DocBookItemTag        listitem
527         DocBookItemInnerTag   para
528 End
529
530
531 Style Seriate
532         Category              List
533         Margin                Static
534         LatexType             Item_Environment
535         LatexName             seriate
536         NextNoIndent          1
537         LeftMargin            MMN
538         LabelSep              x
539         ParSkip               0.0
540         ItemSep               0.9
541         TopSep                0.5
542         BottomSep             0.5
543         ParSep                0.0
544         Align                 Block
545         AlignPossible         Block, Left
546         LabelType             Static
547         LabelCounter          enumii
548         LabelString           "(\alph{enumii})"
549         LabelStringAppendix   "(\alph{enumii})"
550         RefPrefix             ser
551         Argument listpreamble:1
552                 LabelString    "List preamble"
553                 MenuString     "List Preamble"
554                 Tooltip        "LaTeX code to be inserted before the first item"
555                 PassThru       1
556                 Font
557                         Family typewriter
558                         Color latex
559                 EndFont
560         EndArgument
561 End
562
563 Style Course
564         Category              FrontMatter
565         InTitle               1
566         LatexName             course
567         LatexType             Command
568         Font
569           Size                Small
570         EndFont
571         Margin                Dynamic
572         LeftMargin            MMN
573         RightMargin           MMN
574         Align                 Block
575         AlignPossible         Block, Left, Right, Center
576         TopSep                0.8
577         BottomSep             0.8
578         Labeltype             Static
579         LabelString           "Course: "
580         Labelsep              M
581         LabelFont
582           Size                Small
583           Shape               Italic
584         EndFont
585 End
586
587
588 # The addORCIDlink{}{} latex command can be used in the preamble,
589 # but also inside some other style like note, paragraph etc
590 Style addORCIDlink
591         Category              FrontMatter
592         InTitle               1
593         Labeltype Static
594         LabelString           "ORCID-link: "
595         LatexName             addORCIDlink
596         LatexType             Command
597         Margin                Dynamic
598         LeftMargin            MMN
599         RightMargin           MMN
600         Align Block
601         Argument              1
602           LabelString         "Author-name"
603           Tooltip             ORCID
604           Mandatory           1
605         EndArgument
606 End
607
608
609 # To be used inside the document body
610 InsetLayout Flex:addORCIDlink
611         LabelString           "ORCID-link: "
612         LatexName             addORCIDlink
613         Decoration            none
614         LatexType             Command
615         LyxType               custom
616         Argument              1
617           LabelString         "Author-name"
618           Mandatory           1
619         AutoInsert            1
620         Decoration            none
621         EndArgument
622         Argument              2
623           LabelString         ORCID
624           AutoInsert          1
625           Mandatory           1
626           Decoration          none
627         EndArgument
628 End
629