]> git.lyx.org Git - features.git/blob - lib/layouts/acmart.layout
DocBook: implement title for layouts that previously missed it.
[features.git] / lib / layouts / acmart.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[acmart]{Association for Computing Machinery (ACM)}
3 #  \DeclareCategory{Articles}
4 #
5 # Layout for typesetting publications of the Association for Computing Machinery.
6 #
7 # Author : John Perry <john.perry@usm.edu>
8 #          Guillaume Munch-Maccagnoni <gm@lyx.org>
9 # Reviewed following tickets #10722 & #10723
10 #          by Jean-Pierre Chrétien <jpc@lyx.org>
11
12 Format 85
13
14 Provides amscls 1
15 Provides amsmath 1
16 Provides amstext 1
17 Provides binhex 1
18 Provides caption 1
19 Provides comment 1
20 Provides cm-super 1
21 Provides cmap 1
22 Provides draftwatermark 1
23 Provides environ 1
24 Provides fancyhdr 1
25 Provides float 1
26 Provides fontaxes 1
27 Provides geometry 1
28 Provides graphics 1
29 Provides hyperref 1
30 Provides ifluatex 1
31 Provides ifxetex 1
32 Provides inconsolata 1
33 Provides latex-tools 1
34 Provides libertine 1
35 Provides makeidx 1
36 Provides manyfoot 1
37 Provides microtype 1
38 Provides mmap 1
39 Provides ms 1
40 Provides mweights 1
41 Provides natbib 1
42 Provides nccfoots 1
43 Provides newtx 1
44 Provides oberdiek 1
45 Provides pdftex-def 1
46 Provides totpages 1
47 Provides trimspaces 1
48 Provides setspace 1
49 Provides upquote 1
50 Provides url 1
51 Provides xcolor 1
52 Provides xkeyval 1
53
54 # Input general definitions
55 Input stdclass.inc
56 Input stdcounters.inc
57
58 ClassOptions
59   FontSize              9|10|11|12
60   Other   "format=manuscript,authordraft"
61 End
62
63 Style Standard
64         Category              MainText
65         Margin                Static
66         LatexType             Paragraph
67         LatexName             dummy
68         ParIndent             MM
69         ParSkip               0.4
70         Align                 Block
71         AlignPossible         Block, Left, Right, Center
72         LabelType             No_Label
73         # FIXME This ought to be set dynamically.
74         HTMLStyle
75                 div.standard {
76                         margin-bottom: 2ex;
77                 }
78         EndHTMLStyle
79 End
80
81 Style Author
82   Align   Left
83   InTitle 1
84 End
85
86 Style Thanks
87   Category  FrontMatter
88   InTitle 1
89   Align Left
90   AlignPossible Left
91   Font
92     Family Roman
93   EndFont
94   LabelFont
95     Color Blue
96     Shape Italic
97     Family Roman
98   EndFont
99   LabelType Static
100   LabelString "Thanks: "
101   LatexType command
102   LatexName thanks
103   Margin Dynamic
104 End
105
106 Style ACM_Journal
107   Align left
108   AlignPossible left
109   Category Preamble
110   InPreamble  1
111   LabelString "Journal's Short Name: "
112   LabelType Static
113   LabelFont
114     Color Blue
115     Shape Italic
116   EndFont
117   LatexName acmJournal
118   LatexType Command
119   Margin Dynamic
120 End
121
122 Style ACM_Conference
123   CopyStyle ACM_Journal
124   Argument 1
125     LabelString "Short name"
126     Mandatory 0
127   EndArgument
128   Argument 2
129     LabelString "Full name"
130     Mandatory 1
131   EndArgument
132   Argument 3
133     LabelString "Date"
134     Mandatory 1
135   EndArgument
136   Argument 4
137     LabelString "Venue"
138     Mandatory 1
139   EndArgument
140   LabelString "Conference Name: "
141   LatexName acmConference
142   Margin Dynamic
143 End
144
145 Style Title
146   Argument 1
147     LabelString "Short title"
148     Mandatory 0
149         # TODO: In DocBook, output it in a titleabbrev outside this title.
150   EndArgument
151   Font
152     Size Largest
153   EndFont
154   DependsOn Abstract
155   DocBookTag      title
156   DocBookTagType  paragraph
157   DocBookInInfo   maybe
158 End
159
160 Style Subtitle
161   Category  FrontMatter
162   Align Center
163   AlignPossible Center
164   InTitle 1
165   LatexType Command
166   LatexName subtitle
167   Font
168     Size Larger
169     Family Roman
170   EndFont
171 End
172
173 Style Email
174   Align Left
175   AlignPossible center
176   Category FrontMatter
177   Font
178     Family  Typewriter
179   EndFont
180   #InPreamble  1
181   InTitle 1
182   LabelString "Email address: "
183   LabelType Static
184   LabelFont
185     Color Blue
186     Shape Italic
187     Family Roman
188   EndFont
189   LatexType Command
190   LatexName email
191   Margin Dynamic
192 End
193
194 Style ORCID
195   CopyStyle Email
196   LabelString "ORCID: "
197   Font
198     Family Roman
199   EndFont
200   LabelFont
201     Color Blue
202     Shape Italic
203   EndFont
204   LatexName orcid
205 End
206
207 Style Affiliation
208   CopyStyle Email
209   Font
210     Family Roman
211   EndFont
212   LabelFont
213     Color Blue
214     Shape Italic
215   EndFont
216   LabelString "Affiliation: "
217   LatexName affiliation
218 End
219
220 Style Additional_Affiliation
221   CopyStyle Affiliation
222   LabelString "Additional Affiliation: "
223   LatexName additionalaffiliation
224 End
225
226 InsetLayout Flex:Position
227   LyxType custom
228   ContentAsLabel 1
229   Decoration Classic
230   LabelString "Position"
231   LatexName position
232   LatexType command
233 End
234
235 InsetLayout Flex:Institution
236   CopyStyle Flex:Position
237   LabelString "Institution"
238   LatexName institution
239   Spellcheck 0
240 End
241
242 InsetLayout Flex:Department
243   CopyStyle Flex:Position
244   LabelString "Department"
245   LatexName department
246   LatexType command
247   Spellcheck 0
248 End
249
250 InsetLayout Flex:Street_Address
251   CopyStyle Flex:Position
252   LabelString "Street Address"
253   LatexName streetaddress
254   LatexType command
255   Spellcheck 0
256 End
257
258 InsetLayout Flex:City
259   CopyStyle Flex:Position
260   LabelString "City"
261   LatexName city
262   LatexType command
263   Spellcheck 0
264 End
265
266 InsetLayout Flex:Country
267   CopyStyle Flex:Position
268   LabelString "Country"
269   LatexName country
270   LatexType command
271   Spellcheck 0
272 End
273
274 InsetLayout Flex:State
275   CopyStyle Flex:Position
276   LabelString "State"
277   LatexName state
278   LatexType command
279   Spellcheck 0
280 End
281
282 InsetLayout Flex:Postal_Code
283   CopyStyle Flex:Position
284   LabelString "Postal Code"
285   LatexName postcode
286   LatexType command
287   Spellcheck 0
288 End
289
290 Style TitleNote
291   CopyStyle Email
292   Font
293     Family Roman
294   EndFont
295   LabelFont
296     Family Roman
297     Color Blue
298     Shape Italic
299   EndFont
300   LabelString "Title Note: "
301   LatexName titlenote
302   TopSep 0.3
303   BottomSep 0.3
304 End
305
306 Style SubtitleNote
307   CopyStyle TitleNote
308   LabelString "Subtitle Note: "
309   LatexName subtitlenote
310 End
311
312 Style AuthorNote
313   CopyStyle TitleNote
314   LabelString "Note: "
315   LatexName authornote
316 End
317
318 Style ACM_Volume
319   CopyStyle ACM_Journal
320   LabelString "Volume: "
321   LatexName acmVolume
322 End
323
324 Style ACM_Number
325   CopyStyle ACM_Journal
326   LabelString "Number: "
327   LatexName acmNumber
328 End
329
330 Style ACM_Article
331   CopyStyle ACM_Journal
332   LabelString "Article: "
333   LatexName acmArticle
334 End
335
336 Style ACM_Year
337   CopyStyle ACM_Journal
338   LabelString "Year: "
339   LatexName acmYear
340 End
341
342 Style ACM_Month
343   CopyStyle ACM_Journal
344   LabelString "Month: "
345   LatexName acmMonth
346 End
347
348 Style ACM_Art_Seq_Num
349   CopyStyle ACM_Journal
350   LabelString "Article Sequential Number: "
351   LatexName acmArticleSeq
352 End
353
354 Style ACM_Submission_ID
355   CopyStyle ACM_Journal
356   LabelString "Submission ID: "
357   LatexName acmSubmissionID
358 End
359
360 Style ACM_Price
361   CopyStyle ACM_Journal
362   LabelString "Price: "
363   LatexName acmPrice
364 End
365
366 Style ACM_ISBN
367   CopyStyle ACM_Journal
368   LabelString "ISBN: "
369   LatexName acmISBN
370 End
371
372 Style ACM_DOI
373   CopyStyle ACM_Journal
374   LabelString "ACM DOI: "
375   LatexName acmDOI
376 End
377
378 Style ACM_Badge_R
379   CopyStyle ACM_Journal
380   LabelString "ACM Badge R: "
381   LatexName acmBadgeR
382 End
383
384 Style ACM_Badge_L
385   CopyStyle ACM_Journal
386   LabelString "ACM Badge L: "
387   LatexName acmBadgeL
388 End
389
390 Style Start_Page
391   CopyStyle ACM_Journal
392   LabelString "Start Page: "
393   LatexName startPage
394 End
395
396 Style Terms
397   CopyStyle TitleNote
398   LabelString "Terms: "
399   LatexName terms
400 End
401
402 Style Keywords
403   CopyStyle TitleNote
404   LabelString "Keywords: "
405   LatexName keywords
406 End
407
408 Style CCSXML
409   Category  FrontMatter
410   LatexName CCSXML
411   LatexType Environment
412   Font
413     Family Typewriter
414     Color blue
415     Shape Italic
416   EndFont
417   FreeSpacing 1
418   InTitle 1
419   LabelString "Computing Classification Scheme (XML): "
420   LabelType Centered
421   LabelFont
422     Family Roman
423   EndFont
424   NextNoIndent 1
425   NewLine false
426   ParbreakIsNewline true
427   PassThru  true
428 End
429
430 Style CCS_Description
431   CopyStyle TitleNote
432   Argument 1
433     LabelString "Significance"
434   EndArgument
435   LabelString "Computing Classification Scheme: "
436   LatexName ccsdesc
437   Font
438     Family Typewriter
439     Color Blue
440     Shape Italic
441   EndFont
442   LabelFont
443     Family Roman
444   EndFont
445   PassThru  1
446 End
447
448 Style Set_Copyright
449   CopyStyle ACM_Journal
450   LabelString "Set Copyright: "
451   LatexName setcopyright
452 End
453
454 Style Copyright_Year
455   CopyStyle ACM_Journal
456   LabelString "Copyright Year: "
457   LatexName copyrightyear
458 End
459
460 Style Teaser_Figure
461   Category  FrontMatter
462   Argument 1
463     LabelString "Teaser Figure"
464   EndArgument
465   LatexType Environment
466   LatexName teaserfigure
467 End
468
469 Style Received
470   CopyStyle ACM_Journal
471   Argument 1
472     LabelString "Stage"
473     Mandatory 0
474   EndArgument
475   LabelString "Received: "
476   LatexName received
477 End
478
479 Style Abstract
480   InTitle 1
481 End
482
483 Style ShortAuthors
484   Category  FrontMatter
485   Font
486     Family Roman
487   EndFont
488   LatexType command
489   InTitle 0
490   LabelType Static
491   LabelString "Short authors: "
492   Margin Dynamic
493   LabelFont
494     Family Roman
495     Color blue
496     Shape Italic
497   EndFont
498   Preamble
499     \newcommand{\redefineshortauthors}[1]{\renewcommand{\shortauthors}{#1}}
500   EndPreamble
501   LatexName redefineshortauthors
502 End
503
504
505 OutlinerName sidebar    "Sidebar" #no AddToToc
506
507 Float
508   Type                  sidebar
509   GuiName               "Sidebar (sigchi-a only)"
510   NumberWithin          none
511   Style                 plain
512   IsPredefined          true
513   UsesFloatPkg          false
514   RefPrefix             sidebar
515 End
516
517 Float
518   Type                  marginfigure
519   GuiName               "Margin figure (sigchi-a only)"
520   NumberWithin          none
521   Style                 plain
522   IsPredefined          true
523   Extension             lof
524   ListName              "List of Figures"
525   ListCommand           listoffigures
526   UsesFloatPkg          false
527   RefPrefix             mgfig
528 End
529
530 Float
531   Type                  margintable
532   GuiName               "Margin table (sigchi-a only)"
533   NumberWithin          none
534   Style                 plain
535   IsPredefined          true
536   Extension             lof
537   ListName              "List of Tables"
538   ListCommand           listoftables
539   UsesFloatPkg          false
540   RefPrefix             mgtab
541 End
542
543 OutlinerName thm "Definitions & Theorems"
544
545 Counter theorem
546         GuiName Theorem
547         Within                section
548 End
549
550 Style Theorem
551         Category              Reasoning
552         Margin                First_Dynamic
553         LatexType             Environment
554         LatexName             theorem
555         NextNoIndent          1
556         ResetArgs             1
557         AddToToc              thm
558         IsTocCaption          1
559         Argument 1
560                 LabelString    "Additional Theorem Text"
561                 Tooltip        "Additional text appended to the theorem header"
562                 IsTocCaption      1
563         EndArgument
564         LabelSep              xx
565         ParIndent             MMM
566         ParSkip               0.4
567         ItemSep               0.2
568         TopSep                0.7
569         BottomSep             0.7
570         ParSep                0.3
571         Align                 Block
572         AlignPossible         Left
573         LabelType             Static
574         LabelCounter          theorem
575         LabelString           "Theorem \thetheorem."
576         Font
577           Shape               Italic
578           Size                Normal
579         EndFont
580         LabelFont
581           Shape               SmallCaps
582         EndFont
583 End
584
585 Style Corollary
586         CopyStyle             Theorem
587         DependsOn             Theorem
588         LatexName             corollary
589         LabelString           "Corollary \thetheorem."
590 End
591
592 Style Lemma
593         CopyStyle             Theorem
594         DependsOn             Theorem
595         LatexName             lemma
596         LabelString           "Lemma \thetheorem."
597 End
598
599 Style Proposition
600         CopyStyle             Theorem
601         DependsOn             Theorem
602         LatexName             proposition
603         LabelString           "Proposition \thetheorem."
604 End
605
606 Style Conjecture
607         CopyStyle             Theorem
608         DependsOn             Theorem
609         LatexName             conjecture
610         LabelString           "Conjecture \thetheorem."
611 End
612
613 Style Definition
614         CopyStyle             Theorem
615         DependsOn             Theorem
616         LatexName             definition
617         LabelString           "Definition \thetheorem."
618         Font
619           Shape               Up
620         EndFont
621         LabelFont
622           Shape  Italic
623           Series  Medium
624         EndFont
625 End
626
627 Style Example
628         CopyStyle             Definition
629         LatexName             example
630         LabelString           "Example \thetheorem."
631 End
632
633 InsetLayout Flex:Print_Only
634   LyxType custom
635   Decoration Classic
636   Display true
637   InToc true
638   LatexName printonly
639   LatexType Environment
640   LabelString "Print version only"
641 End
642
643 InsetLayout Flex:Screen_Only
644   CopyStyle Flex:Print_Only
645   LatexName screenonly
646   LabelString "Screen version only"
647 End
648
649 InsetLayout Flex:Anonymous_Suppression
650   CopyStyle Flex:Print_Only
651   LatexName anonsuppress
652   LabelString "Non anonymous only"
653 End
654
655 Style Acknowledgments
656   Category  BackMatter
657   LatexName acks
658   LatexType   Environment
659   LabelString "Acknowledgments"
660   LabelType Above
661   TopSep                1.3
662   LabelBottomSep        0.7
663   Margin  Static
664   LabelFont
665     Series Bold
666     Size Large
667   EndFont
668   DocBookTag            para
669   DocBookWrapperTag     acknowledgements
670   DocBookSection        true
671 End
672
673 InsetLayout Flex:Grant_Sponsor
674   LyxType custom
675   ContentAsLabel 1
676   Decoration Conglomerate
677   LabelString "Grant Sponsor"
678   LatexName grantsponsor
679   LatexType command
680   Argument 1
681     LabelString "Sponsor ID"
682     Mandatory 1
683     AutoInsert 1
684   EndArgument
685   Argument 2
686     LabelString "Name"
687     Mandatory 1
688     AutoInsert 1
689     Requires 1
690   EndArgument
691   Argument 3
692     LabelString "URL"
693     Mandatory 1
694     AutoInsert 1
695     Font
696       Family  Typewriter
697     EndFont
698     Requires 2
699   EndArgument
700 End
701
702 InsetLayout Flex:Grant_Number
703   LyxType custom
704   ContentAsLabel 1
705   Decoration Conglomerate
706   LabelString "Grant Number"
707   LatexName grantnum
708   LatexType command
709   Argument 1
710     LabelString "URL"
711     Mandatory false
712     Font
713       Family  Typewriter
714     EndFont
715   EndArgument
716   Argument 2
717     LabelString "Sponsor ID"
718     Mandatory true
719     AutoInsert true
720   EndArgument
721 End
722
723 Input theorems-case.inc
724 Input theorems-proof.inc
725 Input theorems-refprefix.inc