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