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