]> git.lyx.org Git - lyx.git/blob - lib/layouts/maa-monthly.layout
DocBook: implement Mathematical Monthly.
[lyx.git] / lib / layouts / maa-monthly.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[article,maa-monthly.sty]{Mathematical Monthly article}
3 #  \DeclareCategory{Articles}
4 #
5 # Layout for typesetting articles for the MAA Monthly.
6 #
7 # Author : John Perry <john.perry@usm.edu>
8
9 Format 85
10
11 Provides amscls 1
12 Provides amsmath 1
13 Provides amssymb 1
14 Provides amsthm 1
15 Provides graphics 1
16 Provides hyperref 1
17 Provides url 1
18 Provides times 1
19 Provides pifont 1
20 Provides color 1
21
22 # Input general definitions
23 Input stdclass.inc
24 Input stdcounters.inc
25
26 Preamble
27   \usepackage{maa-monthly}
28 EndPreamble
29
30 ClassOptions
31   FontSize              12
32 End
33
34 Style Abstract
35   Font
36     Size     Normal
37   EndFont
38   LabelType  Static
39   LabelFont
40     Size     Normal
41     Series   Bold
42   EndFont
43   LabelString      "Abstract:"
44   LabelSep         " "
45   Margin           Dynamic
46   DocBookTag       para
47   DocBookAbstract  true
48 End
49
50 Style Standard
51         Category              MainText
52         Margin                Static
53         LatexType             Paragraph
54         LatexName             dummy
55         ParIndent             MM
56         ParSkip               0.4
57         Align                 Block
58         AlignPossible         Block Center
59         LabelType             No_Label
60         DocBookTag            para
61 End
62
63 Style Author
64   Align   Center
65 End
66
67 Style Abbreviated_Title
68   CopyStyle   Title
69   LatexType   command
70   LatexName   markright
71   Font
72     Size      Large
73   EndFont
74   Align       Center
75   DocBookTag  titleabbrev
76 End
77
78 Style Biographies
79   Align Left
80   Category    BackMatter
81   LabelString "Biographies"
82   LabelType   Centered
83   LabelFont
84     Color  Blue
85     Shape  Italic
86     Family Roman
87   EndFont
88   LatexType Environment
89   LatexName biog
90   KeepEmpty 1
91   # Cannot work properly, as toclevel is set to NOT_IN_TOC.
92   DocBookSection     true
93   # DocBookSectionTag  section
94   DocBookTag         title
95   DocBookTagType     paragraph
96   DocBookWrapperTag  section
97 End
98
99 Style Author_Biography
100   Align    Left
101   Category BackMatter
102   Argument 1
103     LabelString "Name"
104     Mandatory   0
105         DocBookTag  emphasis
106         DocBookAttr role='name'
107   EndArgument
108   LabelString "Author Biography"
109   LabelSep    " "
110   LabelType   Static
111   LabelFont
112     Color  Blue
113     Shape  Italic
114     Family Roman
115   EndFont
116   LatexType  Command
117   LatexName  item
118   Margin     Dynamic
119   DocBookTag         para
120   DocBookWrapperTag  section
121   DocBookWrapperMergeWithPrevious  true
122 End
123
124 Style Affiliation
125   Align Left
126   Category BackMatter
127   LabelString "Affiliation (include email):"
128   LabelSep " "
129   LabelType Static
130   LabelFont
131     Color Blue
132     Shape Italic
133     Family Roman
134   EndFont
135   LatexType Environment
136   LatexName affil
137   Margin Dynamic
138   DocBookTag         para
139   DocBookAttr        role='affiliation'
140   DocBookWrapperTag  section
141   DocBookWrapperMergeWithPrevious  true
142 End
143
144 Style Acknowledgments
145   Category       BackMatter
146   Argument 1
147     LabelString  "Title of acknowledgment"
148     Mandatory    1
149   EndArgument
150   LabelString    "Acknowledgments"
151   LabelType      Static
152   LabelSep       " "
153   LabelFont
154     Series       Bold
155     Size         Large
156   EndFont
157   LatexName      acknowledgment
158   LatexType      Environment
159   Margin         Dynamic
160   DocBookTag            para
161   DocBookWrapperTag     acknowledgements
162   DocBookSection        true
163 End
164
165 InsetLayout Flex:URL
166   LyxType custom
167   ContentAsLabel 1
168   Decoration Conglomerate
169   LabelString "URL"
170   LatexType command
171   LatexName url
172 End
173
174 Input theorems.inc
175 Input theorems-case.inc
176 Input theorems-proof.inc
177 Input theorems-refprefix.inc
178 Input theorems-starred.inc
179
180 # the Monthly wants its remarks to look like definitions
181 Style Remark*
182   Preamble
183     \theoremstyle{definition}
184     \newtheorem*{rem*}{\protect\remarkname}
185   EndPreamble
186 End
187