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