]> git.lyx.org Git - lyx.git/blob - lib/layouts/memoir.layout
Update layouts
[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 92
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 End
88
89
90 Style Chapter*
91         Argument 1
92                 LabelString   "Short Title (TOC)|S"
93                 Tooltip       "The chapter as it appears in the table of contents"
94                 InsertCotext   1
95         EndArgument
96 End
97
98
99 Style Section
100         Argument 1
101                 LabelString   "Short Title (TOC)|S"
102                 Tooltip       "The section as it appears in the table of contents"
103                 InsertCotext   1
104         EndArgument
105         Argument 2
106                 LabelString   "Short Title (Header)"
107                 Tooltip       "The section as it appears in the running headers"
108                 InsertCotext  1
109                 Requires      1
110         EndArgument
111 End
112
113
114 Style Subsection
115         Argument 1
116                 LabelString   "Short Title (TOC)|S"
117                 Tooltip       "The subsection as it appears in the table of contents"
118                 InsertCotext   1
119         EndArgument
120         Argument 2
121                 LabelString   "Short Title (Header)"
122                 Tooltip       "The subsection as it appears in the running headers"
123                 InsertCotext  1
124                 Requires      1
125         EndArgument
126 End
127
128
129 Style Subsubsection
130         Argument 1
131                 LabelString   "Short Title (TOC)|S"
132                 Tooltip       "The subsubsection as it appears in the table of contents"
133                 InsertCotext   1
134         EndArgument
135         Argument 2
136                 LabelString   "Short Title (Header)"
137                 Tooltip       "The subsubsection as it appears in the running headers"
138                 InsertCotext  1
139                 Requires      1
140         EndArgument
141 End
142
143
144 Style Paragraph
145         Argument 1
146                 LabelString   "Short Title (TOC)|S"
147                 Tooltip       "The paragraph as it appears in the table of contents"
148                 InsertCotext   1
149         EndArgument
150         Argument 2
151                 LabelString   "Short Title (Header)"
152                 Tooltip       "The paragraph as it appears in the running headers"
153                 InsertCotext  1
154                 Requires      1
155         EndArgument
156 End
157
158
159 Style Subparagraph
160         Argument 1
161                 LabelString   "Short Title (TOC)|S"
162                 Tooltip       "The subparagraph as it appears in the table of contents"
163                 InsertCotext   1
164         EndArgument
165         Argument 2
166                 LabelString   "Short Title (Header)"
167                 Tooltip       "The subparagraph as it appears in the running headers"
168                 InsertCotext  1
169                 Requires      1
170         EndArgument
171 End
172
173
174 Style Chapterprecis
175         Margin               Static
176         LatexType            Command
177         LatexName            chapterprecis
178         NeedProtect          1
179         NextNoIndent         1
180         LeftMargin           MM
181         LabelSep             xxx
182         ParSkip              0.4
183         TopSep               0.4
184         BottomSep            0
185         ParSep               0.4
186         Align                Block
187         Font
188           Shape              Italic
189           Size               Normal
190         EndFont
191 End
192
193 Style Epigraph
194         Category              MainText
195         Margin                Right_Address_Box
196         LatexType             Command
197         LatexName             epigraph
198         ParSkip               0.4
199         BottomSep             1.5
200         ParSep                1.5
201         Align                 Left
202         Argument post:1
203                 MenuString    "Epigraph Source|S"
204                 LabelString   "Source"
205                 Tooltip       "The source/author of this epigraph"
206                 Mandatory     1
207         EndArgument
208         HTMLStyle
209                 div.epigraph {
210                         float: right;
211                         width: 33%;
212                         font-size: small;
213                         margin: 0.5em 0em 0.5em 1em;
214                 }
215         EndHTMLStyle
216 End
217
218 Style Poemtitle
219         Category              Sectioning
220         LatexType             Command
221         LatexName             PoemTitle
222         NeedProtect           1
223         NextNoIndent          1
224         LabelSep              xxx
225         ParSkip               0.4
226         TopSep                0.4
227         ParSep                0.4
228         Align                 center
229         Argument 1
230                 LabelString   "Short Title (TOC)|S"
231                 Tooltip       "The poem title as it appears in the table of contents"
232                 InsertCotext   1
233         EndArgument
234         Argument 2
235                 LabelString   "Short Title (Header)"
236                 Tooltip       "The poem title as it appears in the running headers"
237                 InsertCotext  1
238                 Requires      1
239         EndArgument
240         Font
241            Series             Bold
242         EndFont
243 End
244
245
246 Style Poemtitle*
247         CopyStyle             Poemtitle
248         Category              Unnumbered
249         LatexName             PoemTitle*
250         Argument 1
251                 LabelString   "Short Title (TOC)|S"
252                 Tooltip       "The poem title as it appears in the table of contents"
253                 InsertCotext   1
254         EndArgument
255 End
256
257
258 Input stdtitle.inc
259
260 Style Title
261         NeedProtect          true
262 End
263
264 Style Author
265         NeedProtect          true
266 End
267
268 Input stdstruct.inc
269
270
271 Style Bibliography
272         TopSep               4
273         LabelString          "Bibliography"
274         LabelFont
275           Series             Bold
276           Size               Huge
277         EndFont
278         TocLevel             0
279 End
280
281
282 Input lyxmacros.inc
283 Input stdlayouts.inc
284
285 Style Legend
286         Category            MainText
287         LatexType           Command
288         LatexName           legend
289         NeedProtect         1
290         NextNoIndent        1
291         ParSkip             0.4
292         Align               Center
293 End
294
295 #
296 # Endnotes (called "pagenotes" in memoir)
297 #
298
299 Counter endnotes
300         GuiName Endnotes
301     PrettyFormat "Endnote ##"
302 End
303
304 InsetLayout Flex:Endnote
305    LyXType     custom
306    LatexName   pagenote
307    LatexType   command
308    Counter     endnotes
309    Decoration  classic
310    Font
311      Size Small
312    EndFont
313    MultiPar    true
314    LabelString endnote
315    Preamble
316       \makepagenote
317    EndPreamble
318    LangPreamble
319      \providecommand{\notesname}{_(Notes[[Endnotes]])}
320    EndLangPreamble
321    BabelPreamble
322      \addto\captions$$lang{\renewcommand{\notesname}{_(Notes[[Endnotes]])}}
323    EndBabelPreamble
324 End
325
326 # We are only interested in the list
327 Float
328    Type          pagenote
329    ListName      "Endnotes (all)"
330    IsPredefined  true
331    UsesFloatPkg  false
332    ListCommand   printpagenotes
333 End
334
335 Float
336    Type          pagenote*
337    ListName      "Endnotes (sectioned)"
338    IsPredefined  true
339    UsesFloatPkg  false
340    ListCommand   printpagenotes*
341 End