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