]> git.lyx.org Git - lyx.git/blob - lib/layouts/acmart.layout
Update layouts
[lyx.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 103
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 textlabel1
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 textlabel1
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   DocBookTag            subtitle
172   DocBookInInfo         maybe
173 End
174
175 Style Email
176   Align Left
177   AlignPossible center
178   Category FrontMatter
179   Font
180     Family  Typewriter
181   EndFont
182   #InPreamble  1
183   InTitle 1
184   LabelString "Email address: "
185   LabelType Static
186   LabelFont
187     Color textlabel1
188     Shape Italic
189     Family Roman
190   EndFont
191   LatexType Command
192   LatexName email
193   Margin Dynamic
194 End
195
196 Style ORCID
197   CopyStyle Email
198   LabelString "ORCID: "
199   Font
200     Family Roman
201   EndFont
202   LabelFont
203     Color textlabel1
204     Shape Italic
205   EndFont
206   LatexName orcid
207 End
208
209 Style Affiliation
210   CopyStyle Email
211   Font
212     Family Roman
213   EndFont
214   LabelFont
215     Color textlabel1
216     Shape Italic
217   EndFont
218   LabelString "Affiliation: "
219   LatexName affiliation
220 End
221
222 Style Additional_Affiliation
223   CopyStyle Affiliation
224   LabelString "Additional Affiliation: "
225   LatexName additionalaffiliation
226 End
227
228 InsetLayout Flex:Position
229   LyxType custom
230   ContentAsLabel 1
231   Decoration Classic
232   LabelString "Position"
233   LatexName position
234   LatexType command
235 End
236
237 InsetLayout Flex:Institution
238   CopyStyle Flex:Position
239   LabelString "Institution"
240   LatexName institution
241   Spellcheck 0
242 End
243
244 InsetLayout Flex:Department
245   CopyStyle Flex:Position
246   LabelString "Department"
247   LatexName department
248   LatexType command
249   Spellcheck 0
250   AllowedInLayouts
251     Affiliation
252   EndAllowedInLayouts
253   AllowedOccurrences   1
254 End
255
256 InsetLayout Flex:Street_Address
257   CopyStyle Flex:Position
258   LabelString "Street Address"
259   LatexName streetaddress
260   LatexType command
261   Spellcheck 0
262   AllowedInLayouts
263     Affiliation
264   EndAllowedInLayouts
265   AllowedOccurrences   1
266 End
267
268 InsetLayout Flex:City
269   CopyStyle Flex:Position
270   LabelString "City"
271   LatexName city
272   LatexType command
273   Spellcheck 0
274   AllowedInLayouts
275     Affiliation
276   EndAllowedInLayouts
277   AllowedOccurrences   1
278 End
279
280 InsetLayout Flex:Country
281   CopyStyle Flex:Position
282   LabelString "Country"
283   LatexName country
284   LatexType command
285   Spellcheck 0
286   AllowedInLayouts
287     Affiliation
288   EndAllowedInLayouts
289   AllowedOccurrences   1
290 End
291
292 InsetLayout Flex:State
293   CopyStyle Flex:Position
294   LabelString "State"
295   LatexName state
296   LatexType command
297   Spellcheck 0
298   AllowedInLayouts
299     Affiliation
300   EndAllowedInLayouts
301   AllowedOccurrences   1
302 End
303
304 InsetLayout Flex:Postal_Code
305   CopyStyle Flex:Position
306   LabelString "Postal Code"
307   LatexName postcode
308   LatexType command
309   Spellcheck 0
310   AllowedInLayouts
311     Affiliation
312   EndAllowedInLayouts
313   AllowedOccurrences   1
314 End
315
316 Style TitleNote
317   CopyStyle Email
318   Font
319     Family Roman
320   EndFont
321   LabelFont
322     Family Roman
323     Color textlabel1
324     Shape Italic
325   EndFont
326   LabelString "Title Note: "
327   LatexName titlenote
328   TopSep 0.3
329   BottomSep 0.3
330 End
331
332 Style SubtitleNote
333   CopyStyle TitleNote
334   LabelString "Subtitle Note: "
335   LatexName subtitlenote
336 End
337
338 Style AuthorNote
339   CopyStyle TitleNote
340   LabelString "Note: "
341   LatexName authornote
342 End
343
344 Style ACM_Volume
345   CopyStyle ACM_Journal
346   LabelString "Volume: "
347   LatexName acmVolume
348 End
349
350 Style ACM_Number
351   CopyStyle ACM_Journal
352   LabelString "Number: "
353   LatexName acmNumber
354 End
355
356 Style ACM_Article
357   CopyStyle ACM_Journal
358   LabelString "Article: "
359   LatexName acmArticle
360 End
361
362 Style ACM_Year
363   CopyStyle ACM_Journal
364   LabelString "Year: "
365   LatexName acmYear
366 End
367
368 Style ACM_Month
369   CopyStyle ACM_Journal
370   LabelString "Month: "
371   LatexName acmMonth
372 End
373
374 Style ACM_Art_Seq_Num
375   CopyStyle ACM_Journal
376   LabelString "Article Sequential Number: "
377   LatexName acmArticleSeq
378 End
379
380 Style ACM_Submission_ID
381   CopyStyle ACM_Journal
382   LabelString "Submission ID: "
383   LatexName acmSubmissionID
384 End
385
386 Style ACM_Price
387   CopyStyle ACM_Journal
388   LabelString "Price: "
389   LatexName acmPrice
390 End
391
392 Style ACM_ISBN
393   CopyStyle ACM_Journal
394   LabelString "ISBN: "
395   LatexName acmISBN
396 End
397
398 Style ACM_DOI
399   CopyStyle ACM_Journal
400   LabelString "ACM DOI: "
401   LatexName acmDOI
402 End
403
404 Style ACM_Badge_R
405   CopyStyle ACM_Journal
406   LabelString "ACM Badge R: "
407   LatexName acmBadgeR
408 End
409
410 Style ACM_Badge_L
411   CopyStyle ACM_Journal
412   LabelString "ACM Badge L: "
413   LatexName acmBadgeL
414 End
415
416 Style Start_Page
417   CopyStyle ACM_Journal
418   LabelString "Start Page: "
419   LatexName startPage
420 End
421
422 Style Terms
423   CopyStyle TitleNote
424   LabelString "Terms: "
425   LatexName terms
426 End
427
428 Style Keywords
429   CopyStyle TitleNote
430   LabelString "Keywords: "
431   LatexName keywords
432 End
433
434 Style CCSXML
435   Category  FrontMatter
436   LatexName CCSXML
437   LatexType Environment
438   Font
439     Family Typewriter
440     Color textlabel1
441     Shape Italic
442   EndFont
443   FreeSpacing 1
444   InTitle 1
445   LabelString "Computing Classification Scheme (XML): "
446   LabelType Centered
447   LabelFont
448     Family Roman
449   EndFont
450   NextNoIndent 1
451   NewLine false
452   ParbreakIsNewline true
453   PassThru  true
454 End
455
456 Style CCS_Description
457   CopyStyle TitleNote
458   Argument 1
459     LabelString "Significance"
460   EndArgument
461   LabelString "Computing Classification Scheme: "
462   LatexName ccsdesc
463   Font
464     Family Typewriter
465     Color textlabel1
466     Shape Italic
467   EndFont
468   LabelFont
469     Family Roman
470   EndFont
471   PassThru  1
472 End
473
474 Style Set_Copyright
475   CopyStyle ACM_Journal
476   LabelString "Set Copyright: "
477   LatexName setcopyright
478 End
479
480 Style Copyright_Year
481   CopyStyle ACM_Journal
482   LabelString "Copyright Year: "
483   LatexName copyrightyear
484 End
485
486 Style Teaser_Figure
487   Category  FrontMatter
488   Argument 1
489     LabelString "Teaser Figure"
490   EndArgument
491   LatexType Environment
492   LatexName teaserfigure
493 End
494
495 Style Received
496   CopyStyle ACM_Journal
497   Argument 1
498     LabelString "Stage"
499     Mandatory 0
500   EndArgument
501   LabelString "Received: "
502   LatexName received
503 End
504
505 Style Abstract
506   InTitle 1
507 End
508
509 Style ShortAuthors
510   Category  FrontMatter
511   Font
512     Family Roman
513   EndFont
514   LatexType command
515   InTitle 0
516   LabelType Static
517   LabelString "Short authors: "
518   Margin Dynamic
519   LabelFont
520     Family Roman
521     Color textlabel1
522     Shape Italic
523   EndFont
524   Preamble
525     \newcommand{\redefineshortauthors}[1]{\renewcommand{\shortauthors}{#1}}
526   EndPreamble
527   LatexName redefineshortauthors
528 End
529
530
531 OutlinerName sidebar    "Sidebar" #no AddToToc
532
533 Float
534   Type                  sidebar
535   GuiName               "Sidebar (sigchi-a only)"
536   NumberWithin          none
537   Style                 plain
538   IsPredefined          true
539   UsesFloatPkg          false
540   RefPrefix             sidebar
541 End
542
543 Float
544   Type                  marginfigure
545   GuiName               "Margin figure (sigchi-a only)"
546   NumberWithin          none
547   Style                 plain
548   IsPredefined          true
549   Extension             lof
550   ListName              "List of Figures"
551   ListCommand           listoffigures
552   UsesFloatPkg          false
553   RefPrefix             mgfig
554 End
555
556 Float
557   Type                  margintable
558   GuiName               "Margin table (sigchi-a only)"
559   NumberWithin          none
560   Style                 plain
561   IsPredefined          true
562   Extension             lof
563   ListName              "List of Tables"
564   ListCommand           listoftables
565   UsesFloatPkg          false
566   RefPrefix             mgtab
567 End
568
569 OutlinerName thm "Definitions & Theorems"
570
571 Counter theorem
572         GuiName Theorem
573         Within                section
574 End
575
576 Style Theorem
577         Category              Reasoning
578         Margin                First_Dynamic
579         LatexType             Environment
580         LatexName             theorem
581         NextNoIndent          1
582         ResetArgs             1
583         AddToToc              thm
584         IsTocCaption          1
585         Argument 1
586                 LabelString    "Additional Theorem Text"
587                 Tooltip        "Additional text appended to the theorem header"
588                 IsTocCaption      1
589         EndArgument
590         LabelSep              xx
591         ParIndent             MMM
592         ParSkip               0.4
593         ItemSep               0.2
594         TopSep                0.7
595         BottomSep             0.7
596         ParSep                0.3
597         Align                 Block
598         AlignPossible         Left
599         LabelType             Static
600         LabelCounter          theorem
601         LabelString           "Theorem \thetheorem."
602         Font
603           Shape               Italic
604           Size                Normal
605         EndFont
606         LabelFont
607           Shape               SmallCaps
608         EndFont
609 End
610
611 Style Corollary
612         CopyStyle             Theorem
613         DependsOn             Theorem
614         LatexName             corollary
615         LabelString           "Corollary \thetheorem."
616 End
617
618 Style Lemma
619         CopyStyle             Theorem
620         DependsOn             Theorem
621         LatexName             lemma
622         LabelString           "Lemma \thetheorem."
623 End
624
625 Style Proposition
626         CopyStyle             Theorem
627         DependsOn             Theorem
628         LatexName             proposition
629         LabelString           "Proposition \thetheorem."
630 End
631
632 Style Conjecture
633         CopyStyle             Theorem
634         DependsOn             Theorem
635         LatexName             conjecture
636         LabelString           "Conjecture \thetheorem."
637 End
638
639 Style Definition
640         CopyStyle             Theorem
641         DependsOn             Theorem
642         LatexName             definition
643         LabelString           "Definition \thetheorem."
644         Font
645           Shape               Up
646         EndFont
647         LabelFont
648           Shape  Italic
649           Series  Medium
650         EndFont
651 End
652
653 Style Example
654         CopyStyle             Definition
655         LatexName             example
656         LabelString           "Example \thetheorem."
657 End
658
659 InsetLayout Flex:Print_Only
660   LyxType custom
661   Decoration Classic
662   Display true
663   InToc true
664   LatexName printonly
665   LatexType Environment
666   LabelString "Print version only"
667 End
668
669 InsetLayout Flex:Screen_Only
670   CopyStyle Flex:Print_Only
671   LatexName screenonly
672   LabelString "Screen version only"
673 End
674
675 InsetLayout Flex:Anonymous_Suppression
676   CopyStyle Flex:Print_Only
677   LatexName anonsuppress
678   LabelString "Non anonymous only"
679 End
680
681 Style Acknowledgments
682   Category  BackMatter
683   LatexName acks
684   LatexType   Environment
685   LabelString "Acknowledgments"
686   LabelType Above
687   TopSep                1.3
688   LabelBottomSep        0.7
689   Margin  Static
690   LabelFont
691     Series Bold
692     Size Large
693   EndFont
694   DocBookTag            para
695   DocBookWrapperTag     acknowledgements
696   DocBookSection        true
697 End
698
699 InsetLayout Flex:Grant_Sponsor
700   LyxType custom
701   ContentAsLabel 1
702   Decoration Conglomerate
703   LabelString "Grant Sponsor"
704   LatexName grantsponsor
705   LatexType command
706   Argument 1
707     LabelString "Sponsor ID"
708     Mandatory 1
709     AutoInsert 1
710   EndArgument
711   Argument 2
712     LabelString "Name"
713     Mandatory 1
714     AutoInsert 1
715     Requires 1
716   EndArgument
717   Argument 3
718     LabelString "URL"
719     Mandatory 1
720     AutoInsert 1
721     Font
722       Family  Typewriter
723     EndFont
724     Requires 2
725   EndArgument
726 End
727
728 InsetLayout Flex:Grant_Number
729   LyxType custom
730   ContentAsLabel 1
731   Decoration Conglomerate
732   LabelString "Grant Number"
733   LatexName grantnum
734   LatexType command
735   Argument 1
736     LabelString "URL"
737     Mandatory false
738     Font
739       Family  Typewriter
740     EndFont
741   EndArgument
742   Argument 2
743     LabelString "Sponsor ID"
744     Mandatory true
745     AutoInsert true
746   EndArgument
747 End
748
749 Input theorems-case.inc
750 Input theorems-proof.inc
751 Input theorems-refprefix.inc