]> git.lyx.org Git - features.git/blob - lib/layouts/apax.inc
DocBook: ensure that <info>-related insets in the abstract are not generated in the...
[features.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 End
328
329
330 Style Acknowledgments
331         ObsoletedBy           AuthorNote
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         HTMLAttr "class='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 End
558
559
560 Style Seriate
561         Category              List
562         Margin                Static
563         LatexType             Item_Environment
564         LatexName             seriate
565         NextNoIndent          1
566         LeftMargin            MMN
567         LabelSep              x
568         ParSkip               0.0
569         ItemSep               0.9
570         TopSep                0.5
571         BottomSep             0.5
572         ParSep                0.0
573         Align                 Block
574         AlignPossible         Block, Left
575         LabelType             Static
576         LabelCounter          enumii
577         LabelString           "(\alph{enumii})"
578         LabelStringAppendix   "(\alph{enumii})"
579         RefPrefix             ser
580         Argument listpreamble:1
581                 LabelString    "List preamble"
582                 MenuString     "List Preamble"
583                 Tooltip        "LaTeX code to be inserted before the first item"
584                 PassThru       1
585                 Font
586                         Family typewriter
587                         Color latex
588                 EndFont
589         EndArgument
590 End
591
592 Style Course
593         Category              FrontMatter
594         InTitle               1
595         LatexName             course
596         LatexType             Command
597         Font
598           Size                Small
599         EndFont
600         Margin                Dynamic
601         LeftMargin            MMN
602         RightMargin           MMN
603         Align                 Block
604         AlignPossible         Block, Left, Right, Center
605         TopSep                0.8
606         BottomSep             0.8
607         Labeltype             Static
608         LabelString           "Course: "
609         Labelsep              M
610         LabelFont
611           Size                Small
612           Shape               Italic
613         EndFont
614 End
615
616
617 # The addORCIDlink{}{} latex command can be used in the preamble,
618 # but also inside some other style like note, paragraph etc
619 Style addORCIDlink
620         Category              FrontMatter
621         InTitle               1
622         Labeltype Static
623         LabelString           "ORCID-link: "
624         LatexName             addORCIDlink
625         LatexType             Command
626         Margin                Dynamic
627         LeftMargin            MMN
628         RightMargin           MMN
629         Align Block
630         Argument              1
631           LabelString         "Author-name"
632           Tooltip             ORCID
633           Mandatory           1
634         EndArgument
635 End
636
637
638 # To be used inside the document body
639 InsetLayout Flex:addORCIDlink
640         LabelString           "ORCID-link: "
641         LatexName             addORCIDlink
642         Decoration            none
643         LatexType             Command
644         LyxType               custom
645         Argument              1
646           LabelString         "Author-name"
647           Mandatory           1
648         AutoInsert            1
649         Decoration            none
650         EndArgument
651         Argument              2
652           LabelString         ORCID
653           AutoInsert          1
654           Mandatory           1
655           Decoration          none
656         EndArgument
657 End
658