]> git.lyx.org Git - lyx.git/blob - lib/layouts/memoir.layout
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[lyx.git] / lib / layouts / memoir.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[memoir]{Memoir}
3 #  \DeclareCategory{Books}
4 # Memoir textclass definition file
5 # Author: Jürgen Spitzmüller <spitz@lyx.org>
6 # Improvements by: Bennett Helm <bennett.helm@fandm.edu>
7 # feel free to contribute missing features!
8
9
10 Format 99
11 Columns            1
12 Sides              2
13 SecNumDepth        1
14 TocDepth           1
15 DefaultStyle       Standard
16 PageStyle          Headings
17 PageSize           letter
18 Provides makeidx   1
19 Provides framed    1
20 Provides subscript 1
21 # Geometry is supported, but the package options and paper sizes
22 # are ignored
23 Provides geometry-light  1
24 # Memoir has support for line spacing, but uses different names from
25 # what setspace.sty does.  
26 Provides SetSpace  1
27
28
29 ClassOptions
30         FontSize             9|10|11|12|14|17
31         PageSize             a3|a4|a5|a6|b3|b4|b5|b6|executive|legal|letter
32         PageStyle            empty|plain|headings|myheadings|ruled|Ruled|companion
33         Other                oldfontcommands
34 End
35
36
37 Style Standard
38         Category              MainText
39         Margin                Static
40         LatexType             Paragraph
41         LatexName             dummy
42         ParIndent             MM
43         ParSkip               0.4
44         Align                 Block
45         AlignPossible         Block, Left, Right, Center
46         LabelType             No_Label
47         HTMLStyle
48                 div.standard {
49                         margin-bottom: 2ex;
50                         text-align: left;
51                 }
52         EndHTMLStyle
53         DocBookTag            para
54 End
55
56
57 Input stdinsets.inc
58 Input stdlists.inc
59 Input stdcounters.inc
60 Input stdfloats.inc
61 Input stdsections.inc
62 Input stdstarsections.inc
63 Input numreport.inc
64
65
66 Style Part
67         Argument 1
68                 LabelString   "Short Title|S"
69                 Tooltip       "The part as it appears in the table of contents/running headers"
70                 InsertCotext   1
71         EndArgument
72 End
73
74
75 Style Chapter
76         Argument 1
77                 LabelString   "Short Title (TOC)|S"
78                 Tooltip       "The chapter as it appears in the table of contents"
79                 InsertCotext   1
80         EndArgument
81         Argument 2
82                 LabelString   "Short Title (Header)"
83                 Tooltip       "The chapter as it appears in the running headers"
84                 InsertCotext  1
85                 Requires      1
86         EndArgument
87         TocLevel 0
88 End
89
90
91 Style Chapter*
92         Argument 1
93                 LabelString   "Short Title (TOC)|S"
94                 Tooltip       "The chapter as it appears in the table of contents"
95                 InsertCotext   1
96         EndArgument
97 End
98
99
100 Style Section
101         Argument 1
102                 LabelString   "Short Title (TOC)|S"
103                 Tooltip       "The section as it appears in the table of contents"
104                 InsertCotext   1
105         EndArgument
106         Argument 2
107                 LabelString   "Short Title (Header)"
108                 Tooltip       "The section as it appears in the running headers"
109                 InsertCotext  1
110                 Requires      1
111         EndArgument
112         TocLevel 1
113 End
114
115
116 Style Subsection
117         Argument 1
118                 LabelString   "Short Title (TOC)|S"
119                 Tooltip       "The subsection as it appears in the table of contents"
120                 InsertCotext   1
121         EndArgument
122         Argument 2
123                 LabelString   "Short Title (Header)"
124                 Tooltip       "The subsection as it appears in the running headers"
125                 InsertCotext  1
126                 Requires      1
127         EndArgument
128         TocLevel 2
129 End
130
131
132 Style Subsubsection
133         Argument 1
134                 LabelString   "Short Title (TOC)|S"
135                 Tooltip       "The subsubsection as it appears in the table of contents"
136                 InsertCotext   1
137         EndArgument
138         Argument 2
139                 LabelString   "Short Title (Header)"
140                 Tooltip       "The subsubsection as it appears in the running headers"
141                 InsertCotext  1
142                 Requires      1
143         EndArgument
144         TocLevel 3
145 End
146
147
148 Style Paragraph
149         Argument 1
150                 LabelString   "Short Title (TOC)|S"
151                 Tooltip       "The paragraph as it appears in the table of contents"
152                 InsertCotext   1
153         EndArgument
154         Argument 2
155                 LabelString   "Short Title (Header)"
156                 Tooltip       "The paragraph as it appears in the running headers"
157                 InsertCotext  1
158                 Requires      1
159         EndArgument
160         TocLevel 4
161 End
162
163
164 Style Subparagraph
165         Argument 1
166                 LabelString   "Short Title (TOC)|S"
167                 Tooltip       "The subparagraph as it appears in the table of contents"
168                 InsertCotext   1
169         EndArgument
170         Argument 2
171                 LabelString   "Short Title (Header)"
172                 Tooltip       "The subparagraph as it appears in the running headers"
173                 InsertCotext  1
174                 Requires      1
175         EndArgument
176         TocLevel 5
177 End
178
179
180 Style Chapterprecis
181         Margin               Static
182         LatexType            Command
183         LatexName            chapterprecis
184         NeedProtect          1
185         NextNoIndent         1
186         LeftMargin           MM
187         LabelSep             xxx
188         ParSkip              0.4
189         TopSep               0.4
190         BottomSep            0
191         ParSep               0.4
192         Align                Block
193         Font
194           Shape              Italic
195           Size               Normal
196         EndFont
197 End
198
199 Style Epigraph
200         Category              MainText
201         Margin                Right_Address_Box
202         LatexType             Command
203         LatexName             epigraph
204         ParSkip               0.4
205         BottomSep             1.5
206         ParSep                1.5
207         Align                 Left
208         Argument post:1
209                 MenuString    "Epigraph Source|S"
210                 LabelString   "Source"
211                 Tooltip       "The source/author of this epigraph"
212                 Mandatory     1
213         EndArgument
214         HTMLStyle
215                 div.epigraph {
216                         float: right;
217                         width: 33%;
218                         font-size: small;
219                         margin: 0.5em 0em 0.5em 1em;
220                 }
221         EndHTMLStyle
222 End
223
224 Style Poemtitle
225         Category              Sectioning
226         LatexType             Command
227         LatexName             PoemTitle
228         NeedProtect           1
229         NextNoIndent          1
230         LabelSep              xxx
231         ParSkip               0.4
232         TopSep                0.4
233         ParSep                0.4
234         Align                 center
235         Argument 1
236                 LabelString   "Short Title (TOC)|S"
237                 Tooltip       "The poem title as it appears in the table of contents"
238                 InsertCotext   1
239         EndArgument
240         Argument 2
241                 LabelString   "Short Title (Header)"
242                 Tooltip       "The poem title as it appears in the running headers"
243                 InsertCotext  1
244                 Requires      1
245         EndArgument
246         Font
247            Series             Bold
248         EndFont
249 End
250
251
252 Style Poemtitle*
253         CopyStyle             Poemtitle
254         Category              Unnumbered
255         LatexName             PoemTitle*
256         Argument 1
257                 LabelString   "Short Title (TOC)|S"
258                 Tooltip       "The poem title as it appears in the table of contents"
259                 InsertCotext   1
260         EndArgument
261 End
262
263
264 Input stdtitle.inc
265
266 Style Title
267         NeedProtect          true
268 End
269
270 Style Author
271         NeedProtect          true
272 End
273
274 Input stdstruct.inc
275
276
277 Style Bibliography
278         TopSep               4
279         LabelString          "Bibliography"
280         LabelFont
281           Series             Bold
282           Size               Huge
283         EndFont
284         TocLevel             0
285 End
286
287
288 Input lyxmacros.inc
289 Input stdlayouts.inc
290
291 Style Legend
292         Category            MainText
293         LatexType           Command
294         LatexName           legend
295         NeedProtect         1
296         NextNoIndent        1
297         ParSkip             0.4
298         Align               Center
299 End
300
301 #
302 # Endnotes (called "pagenotes" in memoir)
303 #
304
305 Counter endnotes
306         GuiName Endnotes
307     PrettyFormat "Endnote ##"
308 End
309
310 InsetLayout Flex:Endnote
311    LyXType     custom
312    LatexName   pagenote
313    LatexType   command
314    Counter     endnotes
315    Decoration  classic
316    Font
317      Size Small
318    EndFont
319    MultiPar    true
320    LabelString endnote
321    Preamble
322       \makepagenote
323    EndPreamble
324    LangPreamble
325      \providecommand{\notesname}{_(Notes[[Endnotes]])}
326    EndLangPreamble
327    BabelPreamble
328      \addto\captions$$lang{\renewcommand{\notesname}{_(Notes[[Endnotes]])}}
329    EndBabelPreamble
330 End
331
332 # We are only interested in the list
333 Float
334    Type          pagenote
335    ListName      "Endnotes (all)"
336    IsPredefined  true
337    UsesFloatPkg  false
338    ListCommand   printpagenotes
339 End
340
341 Float
342    Type          pagenote*
343    ListName      "Endnotes (sectioned)"
344    IsPredefined  true
345    UsesFloatPkg  false
346    ListCommand   printpagenotes*
347 End