]> git.lyx.org Git - lyx.git/blob - lib/layouts/apax.inc
Update layouts
[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 105
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         DocBookTag            authorinitials
158         DocBookAttr           role='left-header'
159         DocBookTagType        paragraph
160         DocBookInInfo         maybe
161 End
162
163
164 Style Affiliation
165         Category              FrontMatter
166         LatexName             affiliation
167         LatexType             Command
168         InTitle               1
169         Margin                Dynamic
170         ParSkip               0.4
171         BottomSep             1.0
172         TopSep                1.5
173         ParSep                1.5
174         Align                 Left
175         AlignPossible         Block, Left, Right, Center
176         LabelType             Static
177         LabelString           "Affiliation:"
178         Labelsep              M
179         LabelFont
180           Series              Bold
181           Size                Small
182         EndFont
183         DocBookTag                        affiliation
184         DocBookWrapperTag                 author
185         DocBookWrapperMergeWithPrevious   true
186         DocBookItemTag                    orgname
187         DocBookItemTagType                paragraph
188         DocBookInInfo                     always
189 End
190
191 Style TwoAffiliations
192         Category              FrontMatter
193         LatexName             twoaffiliations
194         LatexType             Command
195         InTitle               1
196 End
197
198 Style ThreeAffiliations
199         Category              FrontMatter
200         LatexName             threeaffiliations
201         LatexType             Command
202         InTitle               1
203 End
204
205 Style FourAffiliations
206         Category              FrontMatter
207         LatexName             fouraffiliations
208         LatexType             Command
209         InTitle               1
210 End
211
212 Style FiveAffiliations
213         Category              FrontMatter
214         LatexName             fiveaffiliations
215         LatexType             Command
216         InTitle               1
217 End
218
219 Style SixAffiliations
220         Category              FrontMatter
221         LatexName             sixaffiliations
222         LatexType             Command
223         InTitle               1
224 End
225
226
227 Style Note
228         Category              FrontMatter
229         LatexName             note
230         LatexType             Command
231         InTitle               1
232         Margin                Dynamic
233         ParSkip               0.4
234         BottomSep             1.5
235         TopSep                1.5
236         ParSep                1.5
237         Align                 Left
238         AlignPossible         Block, Left, Right, Center
239         LabelType             Static
240         LabelString           "Note:"
241         Labelsep              M
242         LabelFont
243           Series              Bold
244           Size                Small
245         EndFont
246 End
247
248
249 Style Abstract
250         Category              FrontMatter
251         LatexName             abstract
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         Labeltype             Static
263         LabelString           "Abstract:"
264         Labelsep              M
265         LabelFont
266           Series              Bold
267           Size                Small
268         EndFont
269         DocBookAbstract       true
270         DocBookInInfo         always
271         DocBookWrapperTag     abstract
272         DocBookWrapperMergeWithPrevious    true
273         DocBookTag            para
274 End
275
276 Style Keywords
277         Category              FrontMatter
278         LatexName             keywords
279         LatexType             Command
280         InTitle               1
281         Font
282           Size                Small
283         EndFont
284         Margin                Dynamic
285         LeftMargin            MMN
286         RightMargin           MMN
287         Align                 Block
288         AlignPossible         Block, Left, Right, Center
289         TopSep                0.8
290         BottomSep             0.8
291         Labeltype             Static
292         LabelString           "Keywords:"
293         Labelsep              M
294         LabelFont
295           Size                Small
296           Shape               Italic
297         EndFont
298         DocBookTag          keyword
299         DocBookTagType      paragraph
300         DocBookWrapperTag   keywordset
301         DocBookInInfo       always
302 End
303
304 Style AuthorNote
305         Category              FrontMatter
306         LatexName             authornote
307         LatexType             Command
308         InTitle               1
309         Font
310           Size                Small
311         EndFont
312         Margin                Dynamic
313         ParSkip               0.4
314         BottomSep             1.5
315         TopSep                1.5
316         ParSep                1.5
317         Align                 Left
318         LeftMargin            MMN
319         RightMargin           MMN
320         Align                 Block
321         AlignPossible         Block, Left, Right, Center
322         Labeltype             Static
323         LabelString           "Author Note:"
324         Labelsep              M
325         LabelFont
326           Series              Bold
327           Size                Small
328         EndFont
329         DocBookTag            para
330         DocBookWrapperTag     acknowledgements
331         DocBookSection        true
332 End
333
334
335 Style Journal
336         Category              Preamble
337         LatexName             journal
338         LatexType             Command
339         InPreamble            1
340 End
341
342
343 Style Copyright
344         Category              Preamble
345         LatexName             ccoppy
346         LatexType             Command
347         InPreamble            1
348         Align                 Right
349 End
350
351
352 Style CopNum
353         Category              Preamble
354         LatexName             copnum
355         LatexType             Command
356         InPreamble            1
357         Align                 Right
358 End
359
360 Style Volume
361         Category              Preamble
362         LatexName             volume
363         LatexType             Command
364         InPreamble            1
365 End
366
367 Style ThickLine
368         LatexName             thickline
369         LatexType             Command
370         KeepEmpty             1
371 End
372
373
374
375 Input stdlayouts.inc
376
377
378 InsetLayout Caption:Centered
379         LabelString          standard
380         LaTeXType            command
381         LatexName            centeredcaption
382         NeedProtect          1
383         MultiPar             false
384         Argument 1
385                 LabelString   "Short Title|S"
386                 Tooltip       "The caption as it appears in the list of figures/tables"
387                 InsertCotext  1
388         EndArgument
389         HTMLStyle
390                 div.float-caption {
391                         text-align: center;
392                         border: 2px solid black;
393                         padding: 1ex;
394                         margin: 1ex;
395                 }
396         EndHTMLStyle
397         HTMLClass   "float-caption float-caption-centered"
398 End
399
400
401 Style FitFigure
402         LatexName             fitfigure
403         LatexType             Command
404 End
405
406
407 Style FitBitmap
408         LatexName             fitbitmap
409         LatexType             Command
410 End
411
412
413 Input stdsections.inc
414 Input stdstarsections.inc
415 Input stdinsets.inc
416
417 Input stdfloats.inc
418 Input stdcounters.inc
419
420 NoStyle Part
421 NoCounter part
422 NoStyle Part*
423 NoStyle Chapter
424 NoCounter chapter
425 NoStyle Chapter*
426 NoStyle Section*
427 NoStyle Subsection*
428 NoStyle Subsubsection*
429 NoStyle Paragraph*
430 NoStyle Subparagraph*
431
432
433 Style Section
434         LabelType             No_Label
435         Align                 Center
436         Font
437           Series              Bold
438           Size                Huge
439         EndFont
440         TocLevel              1
441 End
442
443
444 Style Subsection
445         LabelType             No_Label
446         Font
447           Series              Bold
448           Size                Larger
449         EndFont
450         TocLevel              2
451 End
452
453
454 Style Subsubsection
455         LabelType             No_Label
456         Font
457           Series              Bold
458           Size                Large
459         EndFont
460         TocLevel              3
461 End
462
463
464 Style Paragraph
465         LabelType             No_Label
466         Font
467           Series              Bold
468           Size                Normal
469         EndFont
470         TocLevel              4
471 End
472
473
474 Style Subparagraph
475         LabelType             No_Label
476         Font
477           Series              Bold
478           Size                Normal
479           Shape               Italic
480         EndFont
481         TocLevel              5
482 End
483
484
485 Style Itemize
486         Category              List
487         Margin                Static
488         LatexType             Item_Environment
489         LatexName             APAitemize
490         NextNoIndent          1
491         ToggleIndent          Never
492         LeftMargin            MMN
493         LabelSep              xx
494         ItemSep               0.2
495         TopSep                0.7
496         BottomSep             0.7
497         ParSep                0.3
498         Align                 Block
499         AlignPossible         Block, Left
500         LabelType             Itemize
501         LabelString           "*"
502         Argument item:1
503                 LabelString   "Custom Item|s"
504                 Tooltip       "A customized item string"
505         EndArgument
506         Argument listpreamble:1
507                 LabelString    "List preamble"
508                 MenuString     "List Preamble"
509                 Tooltip        "LaTeX code to be inserted before the first item"
510                 PassThru       1
511                 Font
512                         Family typewriter
513                         Color latex
514                 EndFont
515         EndArgument
516         DocBookTag            itemizedlist
517         DocBookItemTag        listitem
518         DocBookItemInnerTag   para
519 End
520
521
522 Style Enumerate
523         Category              List
524         Margin                Static
525         LatexType             Item_Environment
526         LatexName             APAenumerate
527         NextNoIndent          1
528         ToggleIndent          Never
529         LeftMargin            MMN
530         LabelSep              xx
531         ParSkip               0.0
532         ItemSep               0.2
533         TopSep                0.7
534         BottomSep             0.7
535         ParSep                0.3
536         Align                 Block
537         AlignPossible         Block, Left
538         LabelType             Enumerate
539         RefPrefix             enu
540         Argument item:1
541                 LabelString   "Custom Item|s"
542                 Tooltip       "A customized item string"
543         EndArgument
544         Argument listpreamble:1
545                 LabelString    "List preamble"
546                 MenuString     "List Preamble"
547                 Tooltip        "LaTeX code to be inserted before the first item"
548                 PassThru       1
549                 Font
550                         Family typewriter
551                         Color latex
552                 EndFont
553         EndArgument
554         DocBookTag            orderedlist
555         DocBookItemTag        listitem
556         DocBookItemInnerTag   para
557         HTMLStyle
558                 ol.enumi   { list-style-type: decimal; }
559                 ol.enumii  { list-style-type: lower-latin; }
560                 ol.enumiii { list-style-type: lower-roman; }
561                 ol.enumiv  { list-style-type: upper-latin; }
562         EndHTMLStyle
563 End
564
565
566 Style Seriate
567         Category              List
568         Margin                Static
569         LatexType             Item_Environment
570         LatexName             seriate
571         NextNoIndent          1
572         LeftMargin            MMN
573         LabelSep              x
574         ParSkip               0.0
575         ItemSep               0.9
576         TopSep                0.5
577         BottomSep             0.5
578         ParSep                0.0
579         Align                 Block
580         AlignPossible         Block, Left
581         LabelType             Itemize
582         LabelCounter          enumii
583         LabelString           "(\alph{enumii})"
584         LabelStringAppendix   "(\alph{enumii})"
585         RefPrefix             ser
586         Argument listpreamble:1
587                 LabelString    "List preamble"
588                 MenuString     "List Preamble"
589                 Tooltip        "LaTeX code to be inserted before the first item"
590                 PassThru       1
591                 Font
592                         Family typewriter
593                         Color latex
594                 EndFont
595         EndArgument
596 End
597
598 Style Course
599         Category              FrontMatter
600         InTitle               1
601         LatexName             course
602         LatexType             Command
603         Font
604           Size                Small
605         EndFont
606         Margin                Dynamic
607         LeftMargin            MMN
608         RightMargin           MMN
609         Align                 Block
610         AlignPossible         Block, Left, Right, Center
611         TopSep                0.8
612         BottomSep             0.8
613         Labeltype             Static
614         LabelString           "Course: "
615         Labelsep              M
616         LabelFont
617           Size                Small
618           Shape               Italic
619         EndFont
620         DocBookTag            releaseinfo
621         DocBookAttr           role='course'
622         DocBookInInfo         always
623 End
624
625
626 # The addORCIDlink{}{} latex command can be used in the preamble,
627 # but also inside some other style like note, paragraph etc
628 Style addORCIDlink
629         Category              FrontMatter
630         InTitle               1
631         Labeltype Static
632         LabelString           "ORCID-link: "
633         LatexName             addORCIDlink
634         LatexType             Command
635         Margin                Dynamic
636         LeftMargin            MMN
637         RightMargin           MMN
638         Align Block
639         Argument              1
640           LabelString         "Author-name"
641           Tooltip             ORCID
642           Mandatory           1
643           DocBookTag          phrase
644           DocBookAttr         role='author-name'
645         EndArgument
646         # TODO: for DocBook, this won't work outside the preamble.
647         DocBookTag            personblurb
648         DocBookAttr           role='orcid'
649         DocBookTagType        paragraph
650         DocBookInInfo         maybe
651 End
652
653
654 # To be used inside the document body
655 InsetLayout Flex:addORCIDlink
656         LabelString           "ORCID-link: "
657         LatexName             addORCIDlink
658         Decoration            none
659         LatexType             Command
660         LyxType               custom
661         Argument              1
662           LabelString         "Author-name"
663           Mandatory           1
664         AutoInsert            1
665         Decoration            none
666         EndArgument
667         Argument              2
668           LabelString         ORCID
669           AutoInsert          1
670           Mandatory           1
671           Decoration          none
672         EndArgument
673 End
674