]> git.lyx.org Git - lyx.git/blob - lib/layouts/memoir.layout
LyXHTML: add explicit HTMLTag for titles.
[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     HTMLTag               h2
250 End
251
252
253 Style Poemtitle*
254         CopyStyle             Poemtitle
255         Category              Unnumbered
256         LatexName             PoemTitle*
257         Argument 1
258                 LabelString   "Short Title (TOC)|S"
259                 Tooltip       "The poem title as it appears in the table of contents"
260                 InsertCotext   1
261         EndArgument
262 End
263
264
265 Input stdtitle.inc
266
267 Style Title
268         NeedProtect          true
269 End
270
271 Style Author
272         NeedProtect          true
273 End
274
275 Input stdstruct.inc
276
277
278 Style Bibliography
279         TopSep               4
280         LabelString          "Bibliography"
281         LabelFont
282           Series             Bold
283           Size               Huge
284         EndFont
285         TocLevel             0
286 End
287
288
289 Input lyxmacros.inc
290 Input stdlayouts.inc
291
292 Style Legend
293         Category            MainText
294         LatexType           Command
295         LatexName           legend
296         NeedProtect         1
297         NextNoIndent        1
298         ParSkip             0.4
299         Align               Center
300 End
301
302 #
303 # Endnotes (called "pagenotes" in memoir)
304 #
305
306 Counter endnotes
307         GuiName Endnotes
308     PrettyFormat "Endnote ##"
309 End
310
311 InsetLayout Flex:Endnote
312    LyXType     custom
313    LatexName   pagenote
314    LatexType   command
315    Counter     endnotes
316    Decoration  classic
317    Font
318      Size Small
319    EndFont
320    MultiPar    true
321    LabelString endnote
322    Preamble
323       \makepagenote
324    EndPreamble
325    LangPreamble
326      \providecommand{\notesname}{_(Notes[[Endnotes]])}
327    EndLangPreamble
328    BabelPreamble
329      \addto\captions$$lang{\renewcommand{\notesname}{_(Notes[[Endnotes]])}}
330    EndBabelPreamble
331 End
332
333 # We are only interested in the list
334 Float
335    Type          pagenote
336    ListName      "Endnotes (all)"
337    IsPredefined  true
338    UsesFloatPkg  false
339    ListCommand   printpagenotes
340 End
341
342 Float
343    Type          pagenote*
344    ListName      "Endnotes (sectioned)"
345    IsPredefined  true
346    UsesFloatPkg  false
347    ListCommand   printpagenotes*
348 End