]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
a902912e93f2c06efa1730c128a41046ea9514d3
[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 # Detailed format description is available in the customization manual
6
7 Format 45
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               div
91         HTMLIsBlock           true
92   HTMLStyle
93     div.note_comment {
94       display: none;
95     }
96   EndHTMLStyle
97 End
98
99
100 InsetLayout Note:Note
101         LabelString           Note
102         LatexType             command
103         LatexName             note
104         BgColor               notebg
105         LabelFont
106           Color               note
107           Size                Small
108         EndFont
109         MultiPar              true
110         HTMLIsBlock           false
111 # FIXME HTML Need CSS
112 End
113
114
115 InsetLayout Note:Greyedout
116         LabelString           Greyedout
117         LatexType             environment
118         LatexName             lyxgreyedout
119         BgColor               greyedoutbg
120         Font
121           Color               greyedouttext
122         EndFont
123         LabelFont
124           Color               greyedout
125           Size                Small
126         EndFont
127         MultiPar              true
128         Display               false
129         HTMLInnerTag div
130         HTMLStyle
131                 div.note_greyedout {
132                         display: inline;
133                         color: #A0A0A0;
134                         padding-left: 1ex;
135                         padding-right: 1ex;
136                 }
137         EndHTMLStyle
138         HTMLIsBlock           false
139 End
140
141 InsetLayout ERT
142         LabelString           ERT
143         LatexType             none
144         Decoration            minimalistic
145         Font
146           Color               latex
147           Family              typewriter
148         EndFont
149         LabelFont
150           Color               latex
151           Size                Small
152         EndFont
153         MultiPar              true
154         CustomPars            false
155         ForcePlain            true
156         PassThru              true
157         ParbreakIsNewline     true
158         KeepEmpty             true
159         FreeSpacing           true
160         ForceLTR              true
161 End
162
163 InsetLayout Phantom
164         Decoration            minimalistic
165         Font
166           Color               phantomtext
167         EndFont
168         MultiPar              false
169         CustomPars            false
170         ForcePlain            true
171 End
172
173 InsetLayout IPADeco
174         Decoration            minimalistic
175         Font
176           Color               foreground
177         EndFont
178         MultiPar              false
179         CustomPars            false
180         ForcePlain            true
181 End
182
183 InsetLayout TOC
184   HTMLTag h2
185   HTMLStyle
186     div.toc {
187       margin: 2em 0em;
188       border-style: solid;
189       border-width: 2px 0px;
190       padding: 1em 0em;
191     }
192     h2.tochead { font-size: x-large; font-weight: bold; }
193     div.lyxtoc-0 {
194       margin: 2em 0em 0em 0em;
195       font-size: xx-large;
196       font-weight: bold;
197     }
198     div.lyxtoc-1 {
199       margin: 1em 0em 0em 0em;
200       font-size: x-large;
201       font-weight: bold;
202     }
203     div.lyxtoc-2 {
204       margin: 0em 0.1em 0em 1em;
205       font-size: large;
206       font-weight: normal;
207     }
208     div.lyxtoc-3 { margin: 0em 0.1em 0em 0.5em; font-size: medium; }
209     div.lyxtoc-4 { margin: 0em 0.1em 0em 0.5em; }
210     div.lyxtoc-5 { margin: 0em 0.1em 0em 0.5em; }
211     div.lyxtoc-6 { margin: 0em 0.1em 0em 0.5em; }
212     a.tocentry {
213       text-decoration: none;
214       color: black;
215     }
216     a.tocentry:visited { color: black; }
217   EndHTMLStyle
218 End
219
220 InsetLayout TOC:Listings
221         # We need the [[List of Listings]] context, since "Listings" is also
222         # the name of the inset and translated differently.
223         # "Listings[[List of Listings]]" is the name of the "List of listings"
224         # ("Listings" is the predefined english name) in listings.sty, so it
225         # must be used here as well.
226         BabelPreamble
227                 \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}
228         EndBabelPreamble
229         # The command does not need to be defined in LangPreamble, since
230         # listings.sty does that already. However it needs to be redefined
231         # in order to be used for non-english single-language documents.
232         LangPreamble
233                 \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
234         EndLangPreamble
235   HTMLTag h2
236   HTMLStyle
237     div.lyxtoc-flat {
238       margin: 0em 0em 0em 1em;
239       font-size: large;
240       font-weight: normal;
241     }
242   EndHTMLStyle
243 End
244
245 InsetLayout Include:Listings
246         BabelPreamble
247                 \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
248         EndBabelPreamble
249         # The command does not need to be defined in LangPreamble, since
250         # listings.sty does that already. However it needs to be redefined
251         # in order to be used for non-english single-language documents.
252         LangPreamble
253                 \renewcommand{\lstlistingname}{_(Listing)}
254         EndLangPreamble
255 End
256
257 InsetLayout Listings
258         CopyStyle Include:Listings
259         LabelString           Listings[[inset]]
260         LatexType             none
261         Decoration            minimalistic
262         Font
263           Color               foreground
264           Family              typewriter
265         EndFont
266         LabelFont
267           Color               foreground
268           Size                Small
269         EndFont
270         BgColor               listingsbg
271         MultiPar              true
272         PassThru              true
273         ParbreakIsNewline     true
274         KeepEmpty             true
275         FreeSpacing           true
276         ForceLTR              true
277         RefPrefix             lst
278         HTMLTag               pre
279 End
280
281 InsetLayout Branch
282         Decoration            classic
283         LabelFont
284           Color               branchlabel
285           Size                Small
286         EndFont
287         MultiPar              true
288         InToc                 true
289         HTMLIsBlock           false
290 End
291
292 InsetLayout Index
293         LabelString           Idx
294         Decoration            classic
295         Font
296           Size                Small
297         EndFont
298         LabelFont
299           Color               indexlabel
300           Size                Small
301         EndFont
302         MultiPar              false
303         CustomPars            false
304         ForcePlain            true
305         ContentAsLabel        true
306 End
307
308 InsetLayout Box
309         LabelFont
310           Color               foreground
311           Size                Small
312         EndFont
313         MultiPar              true
314 End
315
316 InsetLayout Box:Frameless
317         CopyStyle Box
318         HTMLStyle
319                 div.Frameless { margin: 1em; }
320         EndHTMLStyle
321 End
322
323 InsetLayout Box:Shaded
324         CopyStyle Box
325         BgColor shaded
326         HTMLStyle
327                 div.Shaded {
328                         background-color: gray;
329                         padding: 0.5ex;
330                 }
331         EndHTMLStyle
332 End
333
334 InsetLayout Box:Boxed
335         CopyStyle Box
336         HTMLStyle
337                 div.Boxed {
338                         border: solid thick black;
339                         padding: 0.5ex;
340                 }
341         EndHTMLStyle
342 End
343
344 InsetLayout Box:Framed
345         CopyStyle Box
346         HTMLStyle
347                 div.Framed {
348                         border: solid thick black;
349                         padding: 0.5ex;
350                 }
351         EndHTMLStyle
352 End
353
354 InsetLayout Box:ovalbox
355         CopyStyle Box
356         HTMLStyle
357                 div.ovalbox {
358                         border: groove medium black;
359                         padding: 0.5ex;
360                 }
361         EndHTMLStyle
362 End
363
364 InsetLayout Box:Ovalbox
365         CopyStyle Box
366         HTMLStyle
367                 div.Ovalbox {
368                         border: ridge thick black;
369                         padding: 0.5ex;
370                 }
371         EndHTMLStyle
372 End
373
374 InsetLayout Box:Shadowbox
375         CopyStyle Box
376         HTMLStyle
377                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
378         EndHTMLStyle
379 End
380
381 InsetLayout Box:Doublebox
382         CopyStyle Box
383         HTMLStyle
384                 div.Doublebox {
385                         border: double thick black;
386                         padding: 0.5ex;
387                 }
388         EndHTMLStyle
389 End
390
391 InsetLayout Float
392         LabelFont
393           Color               collapsable
394           Size                Small
395         EndFont
396         MultiPar              true
397         HTMLStyle
398                 div.float {
399                         border: 2px solid black;
400                         text-align: center;
401                 }
402         EndHTMLStyle
403 End
404
405 InsetLayout Wrap
406         LabelFont
407           Color               collapsable
408           Size                Small
409         EndFont
410         MultiPar              true
411         RefPrefix             wrap
412         HTMLStyle
413                 div.wrap {
414                         float: right;
415                         border: 2px solid black;
416                         padding: 1ex;
417                         margin: 1ex;
418                 }
419         EndHTMLStyle
420 End
421
422 InsetLayout "Flex:URL"
423         LyXType               standard
424         Decoration            classic
425         LabelString           URL
426         ContentAsLabel        true
427         LatexName             url
428         LatexType             command
429         Requires              url
430         MultiPar              false
431         CustomPars            false
432         ForcePlain            true
433         PassThru              true
434         FreeSpacing           true
435         ForceLTR              true
436         ResetsFont            false
437         Font
438           Family              Typewriter
439           Color               urltext
440         EndFont
441         LabelFont
442           Family              Typewriter
443           Color               urllabel
444           Size                Small
445         EndFont
446         HTMLIsBlock           false
447 End
448
449 InsetLayout Argument
450         LabelString           Argument
451         LabelFont
452           Color               collapsable
453           Size                Small
454         EndFont
455         MultiPar              false
456         ForceLocalFontSwitch  1
457 End
458
459 InsetLayout Info
460         Decoration            conglomerate
461         HTMLStyle
462                 span.info { font-family: sans-serif; }
463         EndHTMLStyle
464         HTMLTag               span
465         MultiPar              false
466 End
467
468 InsetLayout Info:menu
469         CopyStyle             Info
470         LatexType             command
471         LatexName             menuitem
472         Preamble
473           \providecommand{\menuitem}[1]{\textsf{#1}}
474         EndPreamble
475         Decoration            conglomerate
476         Font
477           Family              sans
478         EndFont
479         HTMLAttr              "class='info menu'"
480         HTMLStyle
481                 span.menu { font-family: sans-serif; }
482         EndHTMLStyle
483 End
484
485 InsetLayout Info:shortcut
486         CopyStyle             Info
487         LatexType             command
488         LatexName             shortcut
489         Preamble
490           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
491         EndPreamble
492         Decoration            conglomerate
493         Font
494           Family              sans
495         EndFont
496         HTMLAttr              "class='info shortcut'"
497         HTMLStyle
498                 span.shortcut { font-family: sans-serif; }
499         EndHTMLStyle
500 End
501
502 InsetLayout Info:shortcuts
503         CopyStyle             Info
504         LatexType             command
505         LatexName             shortcut
506         Preamble
507           \providecommand{\shortcut}[1]{\textsf{#1}}
508         EndPreamble
509         Decoration            conglomerate
510         Font
511           Family              sans
512         EndFont
513         HTMLAttr              "class='info shortcut'"
514         HTMLStyle
515                 span.shortcuts { font-family: sans-serif; }
516         EndHTMLStyle
517 End
518
519 InsetLayout Caption:Standard
520         LabelString          standard
521         LaTeXType            command
522         LatexName            caption
523         Argument 1
524                 LabelString   "Short Title|S"
525                 Tooltip       "The caption as it appears in the list of figures/tables"
526         EndArgument
527         HTMLStyle
528                 div.float-caption {
529                         text-align: center;
530                         border: 2px solid black;
531                         padding: 1ex;
532                         margin: 1ex;
533                 }
534         EndHTMLStyle
535         HTMLAttr "class='float-caption float-caption-standard'"
536 End
537
538
539 InsetLayout Caption:LongTableNoNumber
540         CopyStyle            Caption:Standard
541         LatexName            caption*
542         Argument 1
543                 LabelString   "Long Table Caption (unnumbered)"
544                 Tooltip       "The caption as it appears in the list of tables"
545         EndArgument
546 End
547
548
549 InsetLayout Preview
550         LabelString           Preview
551         Decoration            minimalistic
552         MultiPar              true
553 End
554
555
556 InsetLayout Script
557         LatexType       command
558         MultiPar        false
559         ForcePlain      1
560         CustomPars      0
561         InToc           1
562         HTMLIsBlock     0
563 End
564
565
566 InsetLayout Script:superscript
567         CopyStyle       Script
568         LaTeXName       textsuperscript
569         HTMLTag         sup
570 End
571
572
573 InsetLayout Script:subscript
574         CopyStyle       Script
575         Requires        subscript
576         LaTeXName       textsubscript
577         HTMLTag         sub
578 End
579
580
581 InsetLayout PrintNomencl
582   HTMLTag h2
583 End