]> git.lyx.org Git - lyx.git/blob - lib/layouts/acmart.layout
Fix display of counters for included listings.
[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 104
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         RefFormat thm "Theorem \arabic{theorem}"
575         RefFormat cor "Corollary \arabic{theorem}"
576         RefFormat lem "Lemma \arabic{theorem}"
577         RefFormat prop "Proposition \arabic{theorem}"
578         RefFormat conj "Conjecture \arabic{theorem}"
579         RefFormat def "Definition \arabic{theorem}"
580         RefFormat exa "Example \arabic{theorem}"
581 End
582
583 Style Theorem
584         Category              Reasoning
585         Margin                First_Dynamic
586         LatexType             Environment
587         LatexName             theorem
588         NextNoIndent          1
589         ResetArgs             1
590         AddToToc              thm
591         IsTocCaption          1
592         Argument 1
593                 LabelString    "Additional Theorem Text"
594                 Tooltip        "Additional text appended to the theorem header"
595                 IsTocCaption      1
596         EndArgument
597         LabelSep              xx
598         ParIndent             MMM
599         ParSkip               0.4
600         ItemSep               0.2
601         TopSep                0.7
602         BottomSep             0.7
603         ParSep                0.3
604         Align                 Block
605         AlignPossible         Left
606         LabelType             Static
607         LabelCounter          theorem
608         LabelString           "Theorem \thetheorem."
609         Font
610           Shape               Italic
611           Size                Normal
612         EndFont
613         LabelFont
614           Shape               SmallCaps
615         EndFont
616 End
617
618 Style Corollary
619         CopyStyle             Theorem
620         DependsOn             Theorem
621         LatexName             corollary
622         LabelString           "Corollary \thetheorem."
623 End
624
625 Style Lemma
626         CopyStyle             Theorem
627         DependsOn             Theorem
628         LatexName             lemma
629         LabelString           "Lemma \thetheorem."
630 End
631
632 Style Proposition
633         CopyStyle             Theorem
634         DependsOn             Theorem
635         LatexName             proposition
636         LabelString           "Proposition \thetheorem."
637 End
638
639 Style Conjecture
640         CopyStyle             Theorem
641         DependsOn             Theorem
642         LatexName             conjecture
643         LabelString           "Conjecture \thetheorem."
644 End
645
646 Style Definition
647         CopyStyle             Theorem
648         DependsOn             Theorem
649         LatexName             definition
650         LabelString           "Definition \thetheorem."
651         Font
652           Shape               Up
653         EndFont
654         LabelFont
655           Shape  Italic
656           Series  Medium
657         EndFont
658 End
659
660 Style Example
661         CopyStyle             Definition
662         LatexName             example
663         LabelString           "Example \thetheorem."
664 End
665
666 InsetLayout Flex:Print_Only
667   LyxType custom
668   Decoration Classic
669   Display true
670   InToc true
671   LatexName printonly
672   LatexType Environment
673   LabelString "Print version only"
674 End
675
676 InsetLayout Flex:Screen_Only
677   CopyStyle Flex:Print_Only
678   LatexName screenonly
679   LabelString "Screen version only"
680 End
681
682 InsetLayout Flex:Anonymous_Suppression
683   CopyStyle Flex:Print_Only
684   LatexName anonsuppress
685   LabelString "Non anonymous only"
686 End
687
688 Style Acknowledgments
689   Category  BackMatter
690   LatexName acks
691   LatexType   Environment
692   LabelString "Acknowledgments"
693   LabelType Above
694   TopSep                1.3
695   LabelBottomSep        0.7
696   Margin  Static
697   LabelFont
698     Series Bold
699     Size Large
700   EndFont
701   DocBookTag            para
702   DocBookWrapperTag     acknowledgements
703   DocBookSection        true
704 End
705
706 InsetLayout Flex:Grant_Sponsor
707   LyxType custom
708   ContentAsLabel 1
709   Decoration Conglomerate
710   LabelString "Grant Sponsor"
711   LatexName grantsponsor
712   LatexType command
713   Argument 1
714     LabelString "Sponsor ID"
715     Mandatory 1
716     AutoInsert 1
717   EndArgument
718   Argument 2
719     LabelString "Name"
720     Mandatory 1
721     AutoInsert 1
722     Requires 1
723   EndArgument
724   Argument 3
725     LabelString "URL"
726     Mandatory 1
727     AutoInsert 1
728     Font
729       Family  Typewriter
730     EndFont
731     Requires 2
732   EndArgument
733 End
734
735 InsetLayout Flex:Grant_Number
736   LyxType custom
737   ContentAsLabel 1
738   Decoration Conglomerate
739   LabelString "Grant Number"
740   LatexName grantnum
741   LatexType command
742   Argument 1
743     LabelString "URL"
744     Mandatory false
745     Font
746       Family  Typewriter
747     EndFont
748   EndArgument
749   Argument 2
750     LabelString "Sponsor ID"
751     Mandatory true
752     AutoInsert true
753   EndArgument
754 End
755
756 Input theorems-case.inc
757 Input theorems-proof.inc
758 Input theorems-refprefix.inc