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