]> git.lyx.org Git - lyx.git/blob - lib/layouts/apax.inc
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[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 99
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 Acknowledgments
336         ObsoletedBy           AuthorNote
337 End
338
339
340 Style Journal
341         Category              Preamble
342         LatexName             journal
343         LatexType             Command
344         InPreamble            1
345 End
346
347
348 Style Copyright
349         Category              Preamble
350         LatexName             ccoppy
351         LatexType             Command
352         InPreamble            1
353         Align                 Right
354 End
355
356
357 Style CopNum
358         Category              Preamble
359         LatexName             copnum
360         LatexType             Command
361         InPreamble            1
362         Align                 Right
363 End
364
365 Style Volume
366         Category              Preamble
367         LatexName             volume
368         LatexType             Command
369         InPreamble            1
370 End
371
372 Style ThickLine
373         LatexName             thickline
374         LatexType             Command
375         KeepEmpty             1
376 End
377
378
379
380 Input stdlayouts.inc
381
382
383 InsetLayout Caption:Centered
384         LabelString          standard
385         LaTeXType            command
386         LatexName            centeredcaption
387         NeedProtect          1
388         MultiPar             false
389         Argument 1
390                 LabelString   "Short Title|S"
391                 Tooltip       "The caption as it appears in the list of figures/tables"
392                 InsertCotext  1
393         EndArgument
394         HTMLStyle
395                 div.float-caption {
396                         text-align: center;
397                         border: 2px solid black;
398                         padding: 1ex;
399                         margin: 1ex;
400                 }
401         EndHTMLStyle
402         HTMLClass   "float-caption float-caption-centered"
403 End
404
405
406 Style FitFigure
407         LatexName             fitfigure
408         LatexType             Command
409 End
410
411
412 Style FitBitmap
413         LatexName             fitbitmap
414         LatexType             Command
415 End
416
417
418 Input stdsections.inc
419 Input stdstarsections.inc
420 Input stdinsets.inc
421
422 Input stdfloats.inc
423 Input stdcounters.inc
424
425 NoStyle Part
426 NoCounter part
427 NoStyle Part*
428 NoStyle Chapter
429 NoCounter chapter
430 NoStyle Chapter*
431 NoStyle Section*
432 NoStyle Subsection*
433 NoStyle Subsubsection*
434 NoStyle Paragraph*
435 NoStyle Subparagraph*
436
437
438 Style Section
439         LabelType             No_Label
440         Align                 Center
441         Font
442           Series              Bold
443           Size                Huge
444         EndFont
445         TocLevel              1
446 End
447
448
449 Style Subsection
450         LabelType             No_Label
451         Font
452           Series              Bold
453           Size                Larger
454         EndFont
455         TocLevel              2
456 End
457
458
459 Style Subsubsection
460         LabelType             No_Label
461         Font
462           Series              Bold
463           Size                Large
464         EndFont
465         TocLevel              3
466 End
467
468
469 Style Paragraph
470         LabelType             No_Label
471         Font
472           Series              Bold
473           Size                Normal
474         EndFont
475         TocLevel              4
476 End
477
478
479 Style Subparagraph
480         LabelType             No_Label
481         Font
482           Series              Bold
483           Size                Normal
484           Shape               Italic
485         EndFont
486         TocLevel              5
487 End
488
489
490 Style Itemize
491         Category              List
492         Margin                Static
493         LatexType             Item_Environment
494         LatexName             APAitemize
495         NextNoIndent          1
496         ToggleIndent          Never
497         LeftMargin            MMN
498         LabelSep              xx
499         ItemSep               0.2
500         TopSep                0.7
501         BottomSep             0.7
502         ParSep                0.3
503         Align                 Block
504         AlignPossible         Block, Left
505         LabelType             Itemize
506         LabelString           "*"
507         Argument item:1
508                 LabelString   "Custom Item|s"
509                 Tooltip       "A customized item string"
510         EndArgument
511         Argument listpreamble:1
512                 LabelString    "List preamble"
513                 MenuString     "List Preamble"
514                 Tooltip        "LaTeX code to be inserted before the first item"
515                 PassThru       1
516                 Font
517                         Family typewriter
518                         Color latex
519                 EndFont
520         EndArgument
521         DocBookTag            itemizedlist
522         DocBookItemTag        listitem
523         DocBookItemInnerTag   para
524 End
525
526
527 Style Enumerate
528         Category              List
529         Margin                Static
530         LatexType             Item_Environment
531         LatexName             APAenumerate
532         NextNoIndent          1
533         ToggleIndent          Never
534         LeftMargin            MMN
535         LabelSep              xx
536         ParSkip               0.0
537         ItemSep               0.2
538         TopSep                0.7
539         BottomSep             0.7
540         ParSep                0.3
541         Align                 Block
542         AlignPossible         Block, Left
543         LabelType             Enumerate
544         RefPrefix             enu
545         Argument item:1
546                 LabelString   "Custom Item|s"
547                 Tooltip       "A customized item string"
548         EndArgument
549         Argument listpreamble:1
550                 LabelString    "List preamble"
551                 MenuString     "List Preamble"
552                 Tooltip        "LaTeX code to be inserted before the first item"
553                 PassThru       1
554                 Font
555                         Family typewriter
556                         Color latex
557                 EndFont
558         EndArgument
559         DocBookTag            orderedlist
560         DocBookItemTag        listitem
561         DocBookItemInnerTag   para
562         HTMLStyle
563                 ol.enumi   { list-style-type: decimal; }
564                 ol.enumii  { list-style-type: lower-latin; }
565                 ol.enumiii { list-style-type: lower-roman; }
566                 ol.enumiv  { list-style-type: upper-latin; }
567         EndHTMLStyle
568 End
569
570
571 Style Seriate
572         Category              List
573         Margin                Static
574         LatexType             Item_Environment
575         LatexName             seriate
576         NextNoIndent          1
577         LeftMargin            MMN
578         LabelSep              x
579         ParSkip               0.0
580         ItemSep               0.9
581         TopSep                0.5
582         BottomSep             0.5
583         ParSep                0.0
584         Align                 Block
585         AlignPossible         Block, Left
586         LabelType             Itemize
587         LabelCounter          enumii
588         LabelString           "(\alph{enumii})"
589         LabelStringAppendix   "(\alph{enumii})"
590         RefPrefix             ser
591         Argument listpreamble:1
592                 LabelString    "List preamble"
593                 MenuString     "List Preamble"
594                 Tooltip        "LaTeX code to be inserted before the first item"
595                 PassThru       1
596                 Font
597                         Family typewriter
598                         Color latex
599                 EndFont
600         EndArgument
601 End
602
603 Style Course
604         Category              FrontMatter
605         InTitle               1
606         LatexName             course
607         LatexType             Command
608         Font
609           Size                Small
610         EndFont
611         Margin                Dynamic
612         LeftMargin            MMN
613         RightMargin           MMN
614         Align                 Block
615         AlignPossible         Block, Left, Right, Center
616         TopSep                0.8
617         BottomSep             0.8
618         Labeltype             Static
619         LabelString           "Course: "
620         Labelsep              M
621         LabelFont
622           Size                Small
623           Shape               Italic
624         EndFont
625         DocBookTag            releaseinfo
626         DocBookAttr           role='course'
627         DocBookInInfo         always
628 End
629
630
631 # The addORCIDlink{}{} latex command can be used in the preamble,
632 # but also inside some other style like note, paragraph etc
633 Style addORCIDlink
634         Category              FrontMatter
635         InTitle               1
636         Labeltype Static
637         LabelString           "ORCID-link: "
638         LatexName             addORCIDlink
639         LatexType             Command
640         Margin                Dynamic
641         LeftMargin            MMN
642         RightMargin           MMN
643         Align Block
644         Argument              1
645           LabelString         "Author-name"
646           Tooltip             ORCID
647           Mandatory           1
648           DocBookTag          phrase
649           DocBookAttr         role='author-name'
650         EndArgument
651         # TODO: for DocBook, this won't work outside the preamble.
652         DocBookTag            personblurb
653         DocBookAttr           role='orcid'
654         DocBookTagType        paragraph
655         DocBookInInfo         maybe
656 End
657
658
659 # To be used inside the document body
660 InsetLayout Flex:addORCIDlink
661         LabelString           "ORCID-link: "
662         LatexName             addORCIDlink
663         Decoration            none
664         LatexType             Command
665         LyxType               custom
666         Argument              1
667           LabelString         "Author-name"
668           Mandatory           1
669         AutoInsert            1
670         Decoration            none
671         EndArgument
672         Argument              2
673           LabelString         ORCID
674           AutoInsert          1
675           Mandatory           1
676           Decoration          none
677         EndArgument
678 End
679