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