]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
initials.module: update module description and some whitespace
[lyx.git] / lib / layouts / stdinsets.inc
1 # Textclass definition file for LaTeX.
2 # Author : Martin vermeer <martin.vermeer@hut.fi>
3 # Inset layouts definition
4 #
5 # Detailled format description is available in the customization manual
6
7 Format 35
8
9 Provides stdinsets 1
10
11 InsetLayout Marginal
12         LabelString           margin
13         LatexType             command
14         LatexName             marginpar
15         Font
16           Size                Small
17         EndFont
18         LabelFont
19           Color               marginlabel
20           Size                Small
21         EndFont
22         MultiPar              true
23         NeedProtect           true
24         HTMLStyle
25                 div.marginal {
26                         border: 2px solid black;
27                         padding: 1ex;
28                         margin: 1ex;
29                         background-color: #F0F0F0;
30                         float:right;
31                         font-size: small;
32                         font-weight: medium;
33                         font-family: serif;
34                         font-variant: normal;
35                         font-style: normal;
36                 }
37         EndHTMLStyle
38 End
39
40 InsetLayout Foot
41         LabelString           foot
42         Counter               footnote
43         Font
44           Size                Small
45         EndFont
46         LabelFont
47           Color               footlabel
48           Size                Small
49         EndFont
50         MultiPar              true
51         RefPrefix             fn
52         HTMLLabel             \arabic{footnote}
53         HTMLInnerTag          div
54         HTMLStyle
55                 span.foot_label {
56                         vertical-align: super;
57                         font-size: smaller;
58                         font-weight: bold;
59                         text-decoration: underline;
60                 }
61                 div.foot {
62                         display: inline;
63                         font-size: small;
64                         font-weight: medium;
65                         font-family: serif;
66                         font-variant: normal;
67                         font-style: normal;
68                 }
69                 div.foot_inner { display: none; }
70                 div.foot:hover div.foot_inner {
71                         display: block;
72                         border: 1px double black;
73                         margin: 0em 1em;
74                         padding: 1em;
75                 }
76         EndHTMLStyle
77 End
78
79 InsetLayout Note:Comment
80         LabelString           Comment
81         LatexType             environment
82         LatexName             comment
83         BgColor               commentbg
84         LabelFont
85           Color               comment
86           Size                Small
87         EndFont
88         MultiPar              true
89         Display               false
90         HTMLTag               !--
91         HTMLIsBlock           false
92 End
93
94
95 InsetLayout Note:Note
96         LabelString           Note
97         LatexType             command
98         LatexName             note
99         BgColor               notebg
100         LabelFont
101           Color               note
102           Size                Small
103         EndFont
104         MultiPar              true
105         HTMLIsBlock           false
106 # FIXME HTML Need CSS
107 End
108
109
110 InsetLayout Note:Greyedout
111         LabelString           Greyedout
112         LatexType             environment
113         LatexName             lyxgreyedout
114         BgColor               greyedoutbg
115         Font
116           Color               greyedouttext
117         EndFont
118         LabelFont
119           Color               greyedout
120           Size                Small
121         EndFont
122         MultiPar              true
123         Display               false
124         HTMLStyle
125                 div.note_greyedout {
126                         display: inline;
127                         color: #A0A0A0;
128                         padding-left: 1ex;
129                         padding-right: 1ex;
130                 }
131         EndHTMLStyle
132         HTMLIsBlock           false
133 End
134
135 InsetLayout ERT
136         LabelString           ERT
137         LatexType             none
138         Decoration            minimalistic
139         Font
140           Color               latex
141           Family              typewriter
142         EndFont
143         LabelFont
144           Color               latex
145           Size                Small
146         EndFont
147         MultiPar              true
148         CustomPars            false
149         ForcePlain            true
150         PassThru              true
151         ParbreakIsNewline     true
152         KeepEmpty             true
153         FreeSpacing           true
154         ForceLTR              true
155 End
156
157 InsetLayout Phantom
158         Decoration            minimalistic
159         Font
160           Color               phantomtext
161         EndFont
162         MultiPar              false
163         CustomPars            false
164         ForcePlain            true
165 End
166
167 InsetLayout Listings
168         LabelString           Listings
169         LatexType             none
170         Decoration            minimalistic
171         Font
172           Color               foreground
173           Family              typewriter
174         EndFont
175         LabelFont
176           Color               foreground
177           Size                Small
178         EndFont
179         BgColor               listingsbg
180         MultiPar              true
181         PassThru              true
182         ParbreakIsNewline     true
183         KeepEmpty             true
184         FreeSpacing           true
185         ForceLTR              true
186         RefPrefix             lst
187 End
188
189 InsetLayout Branch
190         Decoration            classic
191         LabelFont
192           Color               branchlabel
193           Size                Small
194         EndFont
195         MultiPar              true
196         InToc                 true
197         HTMLIsBlock           false
198 End
199
200 InsetLayout Index
201         LabelString           Idx
202         Decoration            classic
203         Font
204           Size                Small
205         EndFont
206         LabelFont
207           Color               indexlabel
208           Size                Small
209         EndFont
210         MultiPar              false
211         CustomPars            false
212         ForcePlain            true
213         ContentAsLabel        true
214 End
215
216 InsetLayout Box
217         LabelFont
218           Color               foreground
219           Size                Small
220         EndFont
221         MultiPar              true
222 End
223
224 InsetLayout Box:Frameless
225         CopyStyle Box
226         HTMLStyle
227                 div.Frameless { margin: 1em; }
228         EndHTMLStyle
229 End
230
231 InsetLayout Box:Shaded
232         CopyStyle Box
233         BgColor shaded
234         HTMLStyle
235                 div.Shaded {
236                         background-color: gray;
237                         padding: 0.5ex;
238                 }
239         EndHTMLStyle
240 End
241
242 InsetLayout Box:Boxed
243         CopyStyle Box
244         HTMLStyle
245                 div.Boxed {
246                         border: solid thick black;
247                         padding: 0.5ex;
248                 }
249         EndHTMLStyle
250 End
251
252 InsetLayout Box:Framed
253         CopyStyle Box
254         HTMLStyle
255                 div.Framed {
256                         border: solid thick black;
257                         padding: 0.5ex;
258                 }
259         EndHTMLStyle
260 End
261
262 InsetLayout Box:ovalbox
263         CopyStyle Box
264         HTMLStyle
265                 div.ovalbox {
266                         border: groove medium black;
267                         padding: 0.5ex;
268                 }
269         EndHTMLStyle
270 End
271
272 InsetLayout Box:Ovalbox
273         CopyStyle Box
274         HTMLStyle
275                 div.Ovalbox {
276                         border: ridge thick black;
277                         padding: 0.5ex;
278                 }
279         EndHTMLStyle
280 End
281
282 InsetLayout Box:Shadowbox
283         CopyStyle Box
284         HTMLStyle
285                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
286         EndHTMLStyle
287 End
288
289 InsetLayout Box:Doublebox
290         CopyStyle Box
291         HTMLStyle
292                 div.Doublebox {
293                         border: double thick black;
294                         padding: 0.5ex;
295                 }
296         EndHTMLStyle
297 End
298
299 InsetLayout Float
300         LabelFont
301           Color               collapsable
302           Size                Small
303         EndFont
304         MultiPar              true
305         HTMLStyle
306                 div.float {
307                         border: 2px solid black;
308                         text-align: center;
309                 }
310         EndHTMLStyle
311 End
312
313 InsetLayout Wrap
314         LabelFont
315           Color               collapsable
316           Size                Small
317         EndFont
318         MultiPar              true
319         RefPrefix             wrap
320         HTMLStyle
321                 div.wrap {
322                         float: right;
323                         border: 2px solid black;
324                         padding: 1ex;
325                         margin: 1ex;
326                 }
327         EndHTMLStyle
328 End
329
330 InsetLayout "Flex:URL"
331         LyXType               standard
332         Decoration            classic
333         LabelString           URL
334         ContentAsLabel        true
335         LatexName             url
336         LatexType             command
337         Requires              url
338         MultiPar              false
339         CustomPars            false
340         ForcePlain            true
341         PassThru              true
342         FreeSpacing           true
343         ForceLTR              true
344         Font
345           Family              Typewriter
346           Color               urltext
347         EndFont
348         LabelFont
349           Family              Typewriter
350           Color               urllabel
351           Size                Small
352         EndFont
353         HTMLIsBlock           false
354 End
355
356 InsetLayout Argument
357         LabelString           opt
358         LabelFont
359           Color               collapsable
360           Size                Small
361         EndFont
362         MultiPar              false
363 End
364
365 InsetLayout Info
366         Decoration            conglomerate
367         HTMLStyle
368                 span.info { font-family: sans-serif; }
369         EndHTMLStyle
370         HTMLTag               span
371         MultiPar              false
372 End
373
374 InsetLayout Info:menu
375         CopyStyle             Info
376         LatexType             command
377         LatexName             menuitem
378         Preamble
379           \providecommand{\menuitem}[1]{\textsf{#1}}
380         EndPreamble
381         Decoration            conglomerate
382         Font
383           Family              sans
384         EndFont
385         HTMLAttr              "class='info menu'"
386         HTMLStyle
387                 span.menu { font-family: sans-serif; }
388         EndHTMLStyle
389 End
390
391 InsetLayout Info:shortcut
392         CopyStyle             Info
393         LatexType             command
394         LatexName             shortcut
395         Preamble
396           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
397         EndPreamble
398         Decoration            conglomerate
399         Font
400           Family              sans
401         EndFont
402         HTMLAttr              "class='info shortcut'"
403         HTMLStyle
404                 span.shortcut { font-family: sans-serif; }
405         EndHTMLStyle
406 End
407
408 InsetLayout Info:shortcuts
409         CopyStyle             Info
410         LatexType             command
411         LatexName             shortcut
412         Preamble
413           \providecommand{\shortcut}[1]{\textsf{#1}}
414         EndPreamble
415         Decoration            conglomerate
416         Font
417           Family              sans
418         EndFont
419         HTMLAttr              "class='info shortcut'"
420         HTMLStyle
421                 span.shortcuts { font-family: sans-serif; }
422         EndHTMLStyle
423 End
424
425 InsetLayout Caption
426         HTMLStyle
427                 div.float-caption {
428                         text-align: center;
429                         border: 2px solid black;
430                         padding: 1ex;
431                         margin: 1ex;
432                 }
433         EndHTMLStyle
434 End
435
436
437 InsetLayout Preview
438         LabelString           Preview
439         Decoration            minimalistic
440         MultiPar              true
441 End