]> git.lyx.org Git - lyx.git/blob - lib/layouts/acmart.layout
Honor trailing spaces in LabelString and friends
[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 64
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 Counter theorem
540         Within                section
541 End
542
543 Style Theorem
544         Category              Reasoning
545         Margin                First_Dynamic
546         LatexType             Environment
547         LatexName             theorem
548         NextNoIndent          1
549         ResetArgs             1
550         AddToToc              thm
551         IsTocCaption          1
552         Argument 1
553                 LabelString    "Additional Theorem Text"
554                 Tooltip        "Additional text appended to the theorem header"
555                 IsTocCaption      1
556         EndArgument
557         LabelSep              xx
558         ParIndent             MMM
559         ParSkip               0.4
560         ItemSep               0.2
561         TopSep                0.7
562         BottomSep             0.7
563         ParSep                0.3
564         Align                 Block
565         AlignPossible         Left
566         LabelType             Static
567         LabelCounter          theorem
568         LabelString           "Theorem \thetheorem."
569         Font
570           Shape               Italic
571           Size                Normal
572         EndFont
573         LabelFont
574           Shape               SmallCaps
575         EndFont
576 End
577
578 Style Corollary
579         CopyStyle             Theorem
580         DependsOn             Theorem
581         LatexName             corollary
582         LabelString           "Corollary \thetheorem."
583 End
584
585 Style Lemma
586         CopyStyle             Theorem
587         DependsOn             Theorem
588         LatexName             lemma
589         LabelString           "Lemma \thetheorem."
590 End
591
592 Style Proposition
593         CopyStyle             Theorem
594         DependsOn             Theorem
595         LatexName             proposition
596         LabelString           "Proposition \thetheorem."
597 End
598
599 Style Conjecture
600         CopyStyle             Theorem
601         DependsOn             Theorem
602         LatexName             conjecture
603         LabelString           "Conjecture \thetheorem."
604 End
605
606 Style Definition
607         CopyStyle             Theorem
608         DependsOn             Theorem
609         LatexName             definition
610         LabelString           "Definition \thetheorem."
611         Font
612           Shape               Up
613         EndFont
614         LabelFont
615           Shape  Italic
616           Series  Medium
617         EndFont
618 End
619
620 Style Example
621         CopyStyle             Definition
622         LatexName             example
623         LabelString           "Example \thetheorem."
624 End
625
626 InsetLayout Flex:Print_Only
627   LyxType custom
628   Decoration Classic
629   Display true
630   InToc true
631   LatexName printonly
632   LatexType Environment
633   LabelString "Print version only"
634 End
635
636 InsetLayout Flex:Screen_Only
637   CopyStyle Flex:Print_Only
638   LatexName screenonly
639   LabelString "Screen version only"
640 End
641
642 InsetLayout Flex:Anonymous_Suppression
643   CopyStyle Flex:Print_Only
644   LatexName anonsuppress
645   LabelString "Non anonymous only"
646 End
647
648 Style Acknowledgments
649   Category  BackMatter
650   LatexName acks
651   LatexType   Environment
652   LabelString "Acknowledgments"
653   LabelType Above
654   TopSep                1.3
655   LabelBottomSep        0.7
656   Margin  Static
657   LabelFont
658     Series Bold
659     Size Large
660   EndFont
661 End
662
663 InsetLayout Flex:Grant_Sponsor
664   LyxType custom
665   ContentAsLabel 1
666   Decoration Conglomerate
667   LabelString "Grant Sponsor"
668   LatexName grantsponsor
669   LatexType command
670   Argument 1
671     LabelString "Sponsor ID"
672     Mandatory 1
673     AutoInsert 1
674   EndArgument
675   Argument 2
676     LabelString "Name"
677     Mandatory 1
678     AutoInsert 1
679     Requires 1
680   EndArgument
681   Argument 3
682     LabelString "URL"
683     Mandatory 1
684     AutoInsert 1
685     Font
686       Family  Typewriter
687     EndFont
688     Requires 2
689   EndArgument
690 End
691
692 InsetLayout Flex:Grant_Number
693   LyxType custom
694   ContentAsLabel 1
695   Decoration Conglomerate
696   LabelString "Grant Number"
697   LatexName grantnum
698   LatexType command
699   Argument 1
700     LabelString "URL"
701     Mandatory false
702     Font
703       Family  Typewriter
704     EndFont
705   EndArgument
706   Argument 2
707     LabelString "Sponsor ID"
708     Mandatory true
709     AutoInsert true
710   EndArgument
711 End
712
713 Input theorems-case.inc
714 Input theorems-proof.inc
715 Input theorems-refprefix.inc