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