]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
31f53c585adac3f56733adcf2b893dfdabf92282
[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 66
8
9 Provides stdinsets 1
10
11 OutlinerName marginalnote "Marginal notes"
12 OutlinerName footnote     "Footnotes"
13 OutlinerName note         "Notes"
14 OutlinerName branch       "Branches"
15 OutlinerName index        "Index Entries" #no AddToToc (built-in)
16 OutlinerName listing      "Listings" #no AddToToc (built-in)
17
18 InsetLayout Marginal
19         LabelString           margin
20         LatexType             command
21         LatexName             marginpar
22         Font
23           Size                Small
24         EndFont
25         LabelFont
26           Color               marginlabel
27           Size                Small
28         EndFont
29         MultiPar              true
30         NeedProtect           true
31         HTMLStyle
32                 div.marginal {
33                         border: 2px solid black;
34                         padding: 1ex;
35                         margin: 1ex;
36                         background-color: #F0F0F0;
37                         float:right;
38                         font-size: small;
39                         font-weight: medium;
40                         font-family: serif;
41                         font-variant: normal;
42                         font-style: normal;
43                 }
44         EndHTMLStyle
45         AddToToc              marginalnote
46         IsTocCaption          true
47 End
48
49 InsetLayout Foot
50         LabelString           foot
51         LatexType             Command
52         LatexName             footnote
53         Counter               footnote
54         Font
55           Size                Small
56         EndFont
57         LabelFont
58           Color               footlabel
59           Size                Small
60         EndFont
61         MultiPar              true
62         RefPrefix             fn
63         HTMLLabel             \arabic{footnote}
64         HTMLInnerTag          div
65         HTMLStyle
66                 span.foot_label {
67                         vertical-align: super;
68                         font-size: smaller;
69                         font-weight: bold;
70                         text-decoration: underline;
71                 }
72                 div.foot {
73                         display: inline;
74                         font-size: small;
75                         font-weight: medium;
76                         font-family: serif;
77                         font-variant: normal;
78                         font-style: normal;
79                 }
80                 div.foot_inner { display: none; }
81                 div.foot:hover div.foot_inner {
82                         display: block;
83                         border: 1px double black;
84                         margin: 0em 1em;
85                         padding: 1em;
86                 }
87         EndHTMLStyle
88         AddToToc              footnote
89         IsTocCaption          true
90 End
91
92 InsetLayout Foot:InTitle
93         CopyStyle             Foot
94         LatexName             thanks
95         NeedProtect           true
96         Counter               thanks
97         MultiPar              false
98         HTMLLabel             \fnsymbol{thanks}
99         HTMLInnerTag          span
100         HTMLStyle
101                 span.foot_intitle_label {
102                         vertical-align: super;
103                         font-size: smaller;
104                         font-weight: bold;
105                         text-decoration: underline;
106                 }
107                 span.foot_intitle {
108                         display: inline;
109                         font-size: small;
110                         font-weight: medium;
111                         font-family: serif;
112                         font-variant: normal;
113                         font-style: normal;
114                 }
115                 span.foot_intitle_inner { display: none; }
116                 span.foot_intitle:hover span.foot_intitle_inner {
117                         display: block;
118                         border: 1px double black;
119                         margin: 0em 1em;
120                         padding: 1em;
121                 }
122         EndHTMLStyle
123 End
124
125 InsetLayout Foot:InFloatTable
126         CopyStyle             Foot
127         LatexName             tablefootnote
128         Requires              tablefootnote
129 End
130
131
132 InsetLayout Note:Comment
133         LabelString           Comment
134         LatexType             environment
135         LatexName             comment
136         Requires              verbatim
137         BgColor               commentbg
138         LabelFont
139           Color               comment
140           Size                Small
141         EndFont
142         MultiPar              true
143         Display               false
144         HTMLTag               div
145         HTMLIsBlock           true
146         HTMLStyle
147         div.note_comment {
148                 display: none;
149         }
150         EndHTMLStyle
151         AddToToc              note
152         IsTocCaption          true
153         NeedCProtect          true
154 End
155
156
157 InsetLayout Note:Note
158         LabelString           Note
159         LatexType             command
160         LatexName             note
161         BgColor               notebg
162         LabelFont
163           Color               note
164           Size                Small
165         EndFont
166         MultiPar              true
167         # Not output for XHTML
168         AddToToc              note
169         IsTocCaption          true
170 End
171
172
173 InsetLayout Note:Greyedout
174         LabelString           Greyedout
175         LatexType             environment
176         LatexName             lyxgreyedout
177         Requires              color,lyxgreyedout
178         BgColor               greyedoutbg
179         Font
180           Color               greyedouttext
181         EndFont
182         LabelFont
183           Color               greyedout
184           Size                Small
185         EndFont
186         MultiPar              true
187         Display               false
188         HTMLInnerTag div
189         HTMLStyle
190                 div.note_greyedout {
191                         display: inline;
192                         color: #A0A0A0;
193                         padding-left: 1ex;
194                         padding-right: 1ex;
195                 }
196         EndHTMLStyle
197         HTMLIsBlock           false
198         AddToToc              note
199         IsTocCaption          true
200 End
201
202 InsetLayout ERT
203         LabelString           ERT
204         LatexType             none
205         Decoration            minimalistic
206         Font
207           Color               latex
208           Family              typewriter
209         EndFont
210         LabelFont
211           Color               latex
212           Size                Small
213         EndFont
214         MultiPar              true
215         CustomPars            false
216         ForcePlain            true
217         PassThru              true
218         ParbreakIsNewline     true
219         KeepEmpty             true
220         FreeSpacing           true
221         ForceLTR              true
222 End
223
224 InsetLayout Phantom
225         Decoration            minimalistic
226         Font
227           Color               phantomtext
228         EndFont
229         MultiPar              false
230         CustomPars            false
231         ForcePlain            true
232 End
233
234 InsetLayout IPADeco
235         Decoration            minimalistic
236         Font
237           Color               foreground
238         EndFont
239         MultiPar              false
240         CustomPars            false
241         ForcePlain            true
242 End
243
244 InsetLayout TOC
245   HTMLTag h2
246   HTMLStyle
247     div.toc {
248       margin: 2em 0em;
249       border-style: solid;
250       border-width: 2px 0px;
251       padding: 1em 0em;
252     }
253     h2.tochead { font-size: x-large; font-weight: bold; }
254     div.lyxtoc-0 {
255       margin: 2em 0em 0em 0em;
256       font-size: xx-large;
257       font-weight: bold;
258     }
259     div.lyxtoc-1 {
260       margin: 1em 0em 0em 0em;
261       font-size: x-large;
262       font-weight: bold;
263     }
264     div.lyxtoc-2 {
265       margin: 0em 0.1em 0em 1em;
266       font-size: large;
267       font-weight: normal;
268     }
269     div.lyxtoc-3 { margin: 0em 0.1em 0em 0.5em; font-size: medium; }
270     div.lyxtoc-4 { margin: 0em 0.1em 0em 0.5em; }
271     div.lyxtoc-5 { margin: 0em 0.1em 0em 0.5em; }
272     div.lyxtoc-6 { margin: 0em 0.1em 0em 0.5em; }
273     a.tocentry {
274       text-decoration: none;
275       color: black;
276     }
277     a.tocentry:visited { color: black; }
278   EndHTMLStyle
279 End
280
281 InsetLayout TOC:Listings
282         # We need the [[List of Listings]] context, since "Listings" is also
283         # the name of the inset and translated differently.
284         # "Listings[[List of Listings]]" is the name of the "List of listings"
285         # ("Listings" is the predefined english name) in listings.sty, so it
286         # must be used here as well.
287         BabelPreamble
288                 \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}
289         EndBabelPreamble
290         # The command does not need to be defined in LangPreamble, since
291         # listings.sty does that already. However it needs to be redefined
292         # in order to be used for non-english single-language documents.
293         LangPreamble
294                 \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
295         EndLangPreamble
296         FixedWidthPreambleEncoding true
297   HTMLTag h2
298   HTMLStyle
299     div.lyxtoc-flat {
300       margin: 0em 0em 0em 1em;
301       font-size: large;
302       font-weight: normal;
303     }
304   EndHTMLStyle
305 End
306
307 InsetLayout TOC:MintedListings
308         # "List of Listings" is the name of the "List of listings"
309         # in minted.sty so it must be used here as well.
310         BabelPreamble
311                 \addto\captions$$lang{\renewcommand{\listoflistingscaption}{_(List of Listings)}}
312         EndBabelPreamble
313         # The command does not need to be defined in LangPreamble, since
314         # minted.sty does that already. However it needs to be redefined
315         # in order to be used for non-english single-language documents.
316         LangPreamble
317                 \renewcommand{\listoflistingscaption}{_(List of Listings)}
318         EndLangPreamble
319         FixedWidthPreambleEncoding false
320   HTMLTag h2
321   HTMLStyle
322     div.lyxtoc-flat {
323       margin: 0em 0em 0em 1em;
324       font-size: large;
325       font-weight: normal;
326     }
327   EndHTMLStyle
328 End
329
330 InsetLayout Include:Listings
331         BabelPreamble
332                 \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
333         EndBabelPreamble
334         # The command does not need to be defined in LangPreamble, since
335         # listings.sty does that already. However it needs to be redefined
336         # in order to be used for non-english single-language documents.
337         LangPreamble
338                 \renewcommand{\lstlistingname}{_(Listing)}
339         EndLangPreamble
340         FixedWidthPreambleEncoding true
341 End
342
343 InsetLayout Listings
344         CopyStyle Include:Listings
345         LabelString           Listings[[inset]]
346         LatexType             none
347         Decoration            minimalistic
348         Font
349           Color               foreground
350           Family              typewriter
351         EndFont
352         LabelFont
353           Color               foreground
354           Size                Small
355         EndFont
356         BgColor               listingsbg
357         MultiPar              true
358         PassThru              true
359         ParbreakIsNewline     true
360         KeepEmpty             true
361         FreeSpacing           true
362         ForceLTR              true
363         RefPrefix             lst
364         HTMLTag               pre
365         HTMLStyle
366                 div.float-listings {
367                         border: 2px solid black;
368                         padding: 1ex;
369                         margin: 1ex;
370                 }
371                 div.listings-caption {
372                         text-align: center;
373                         border: 2px solid black;
374                         padding: 1ex;
375                         margin: 1ex;
376         }
377         EndHTMLStyle
378 End
379
380 InsetLayout MintedListings
381         CopyStyle Listings
382         BabelPreamble
383                 \addto\captions$$lang{\renewcommand{\listingscaption}{_(Listing)}}
384         EndBabelPreamble
385         # The command does not need to be defined in LangPreamble, since
386         # minted.sty does that already. However it needs to be redefined
387         # in order to be used for non-english single-language documents.
388         LangPreamble
389                 \renewcommand{\listingscaption}{_(Listing)}
390         EndLangPreamble
391         FixedWidthPreambleEncoding false
392 End
393
394 InsetLayout Branch
395         Decoration            classic
396         LabelFont
397           Color               branchlabel
398           Size                Small
399         EndFont
400         MultiPar              true
401         InToc                 true
402         HTMLIsBlock           false
403         AddToToc              branch
404         IsTocCaption          true
405 End
406
407 InsetLayout Index
408         LabelString           Idx
409         Decoration            classic
410         Font
411           Size                Small
412         EndFont
413         LabelFont
414           Color               indexlabel
415           Size                Small
416         EndFont
417         MultiPar              false
418         CustomPars            false
419         ForcePlain            true
420         ContentAsLabel        true
421         PassThruChars         @|!
422 End
423
424 InsetLayout Box
425         LabelFont
426           Color               foreground
427           Size                Small
428         EndFont
429         MultiPar              true
430 End
431
432 InsetLayout Box:Frameless
433         CopyStyle Box
434         HTMLStyle
435                 div.Frameless { margin: 1em; }
436         EndHTMLStyle
437 End
438
439 InsetLayout Box:Shaded
440         CopyStyle Box
441         BgColor shaded
442         HTMLStyle
443                 div.Shaded {
444                         background-color: gray;
445                         padding: 0.5ex;
446                 }
447         EndHTMLStyle
448 End
449
450 InsetLayout Box:Boxed
451         CopyStyle Box
452         HTMLStyle
453                 div.Boxed {
454                         border: solid thick black;
455                         padding: 0.5ex;
456                 }
457         EndHTMLStyle
458 End
459
460 InsetLayout Box:Framed
461         CopyStyle Box
462         HTMLStyle
463                 div.Framed {
464                         border: solid thick black;
465                         padding: 0.5ex;
466                 }
467         EndHTMLStyle
468 End
469
470 InsetLayout Box:ovalbox
471         CopyStyle Box
472         HTMLStyle
473                 div.ovalbox {
474                         border: groove medium black;
475                         padding: 0.5ex;
476                 }
477         EndHTMLStyle
478 End
479
480 InsetLayout Box:Ovalbox
481         CopyStyle Box
482         HTMLStyle
483                 div.Ovalbox {
484                         border: ridge thick black;
485                         padding: 0.5ex;
486                 }
487         EndHTMLStyle
488 End
489
490 InsetLayout Box:Shadowbox
491         CopyStyle Box
492         HTMLStyle
493                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
494         EndHTMLStyle
495 End
496
497 InsetLayout Box:Doublebox
498         CopyStyle Box
499         HTMLStyle
500                 div.Doublebox {
501                         border: double thick black;
502                         padding: 0.5ex;
503                 }
504         EndHTMLStyle
505 End
506
507 InsetLayout Float
508         LabelFont
509           Color               collapsible
510           Size                Small
511         EndFont
512         MultiPar              true
513         HTMLStyle
514                 div.float {
515                         border: 2px solid black;
516                         text-align: center;
517                 }
518         EndHTMLStyle
519 End
520
521 #InsetWrap requires these, independently of whether stdfloats.inc is included
522 OutlinerName table        "Tables" #no AddToToc (built-in)
523 OutlinerName figure       "Figures" #no AddToToc (built-in)
524
525 InsetLayout Wrap
526         LabelFont
527           Color               collapsible
528           Size                Small
529         EndFont
530         MultiPar              true
531         RefPrefix             wrap
532         HTMLStyle
533                 div.wrap {
534                         float: right;
535                         border: 2px solid black;
536                         padding: 1ex;
537                         margin: 1ex;
538                 }
539         EndHTMLStyle
540 End
541
542 InsetLayout "Flex:URL"
543         LyXType               standard
544         Decoration            classic
545         LabelString           URL
546         ContentAsLabel        true
547         LatexName             url
548         LatexType             command
549         Requires              url
550         MultiPar              false
551         CustomPars            false
552         ForcePlain            true
553         PassThru              true
554         FreeSpacing           true
555         ForceLTR              true
556         NeedCProtect          true
557         Font
558           Family              Typewriter
559           Color               urltext
560         EndFont
561         LabelFont
562           Family              Typewriter
563           Color               urllabel
564           Size                Small
565         EndFont
566         HTMLIsBlock           false
567 End
568
569 InsetLayout Argument
570         LabelString           Argument
571         LabelFont
572           Color               collapsible
573           Size                Small
574         EndFont
575         MultiPar              false
576         ForceLocalFontSwitch  1
577 End
578
579 InsetLayout Info
580         Decoration            conglomerate
581         HTMLStyle
582                 span.info { font-family: sans-serif; }
583         EndHTMLStyle
584         HTMLTag               span
585         MultiPar              false
586 End
587
588 InsetLayout Info:menu
589         CopyStyle             Info
590         LatexType             command
591         LatexName             menuitem
592         Preamble
593           \providecommand{\menuitem}[1]{\textsf{#1}}
594         EndPreamble
595         Decoration            conglomerate
596         Font
597           Family              sans
598         EndFont
599         HTMLAttr              "class='info menu'"
600         HTMLStyle
601                 span.menu { font-family: sans-serif; }
602         EndHTMLStyle
603 End
604
605 InsetLayout Info:shortcut
606         CopyStyle             Info
607         LatexType             command
608         LatexName             shortcut
609         Preamble
610           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
611         EndPreamble
612         Decoration            conglomerate
613         Font
614           Family              sans
615         EndFont
616         HTMLAttr              "class='info shortcut'"
617         HTMLStyle
618                 span.shortcut { font-family: sans-serif; }
619         EndHTMLStyle
620 End
621
622 InsetLayout Info:shortcuts
623         CopyStyle             Info
624         LatexType             command
625         LatexName             shortcut
626         Preamble
627           \providecommand{\shortcut}[1]{\textsf{#1}}
628         EndPreamble
629         Decoration            conglomerate
630         Font
631           Family              sans
632         EndFont
633         HTMLAttr              "class='info shortcut'"
634         HTMLStyle
635                 span.shortcuts { font-family: sans-serif; }
636         EndHTMLStyle
637 End
638
639 InsetLayout Caption:Standard
640         LabelString          standard
641         LaTeXType            command
642         LatexName            caption
643         NeedProtect          1
644         MultiPar             false
645         Argument 1
646                 LabelString   "Short Title|S"
647                 Tooltip       "The caption as it appears in the list of figures/tables"
648                 InsertCotext  1
649         EndArgument
650         HTMLStyle
651                 div.float-caption {
652                         text-align: center;
653                         border: 2px solid black;
654                         padding: 1ex;
655                         margin: 1ex;
656                 }
657         EndHTMLStyle
658         HTMLAttr "class='float-caption float-caption-standard'"
659 End
660
661
662 InsetLayout Caption:Unnumbered
663         CopyStyle            Caption:Standard
664         LabelString          unlabelled
665         LatexName            caption*
666         ResetArgs            1
667 End
668
669
670 InsetLayout Preview
671         LabelString           Preview
672         Decoration            minimalistic
673         MultiPar              true
674 End
675
676
677 InsetLayout Script
678         LatexType       command
679         MultiPar        false
680         ForcePlain      1
681         CustomPars      0
682         InToc           1
683         HTMLIsBlock     0
684 End
685
686
687 InsetLayout Script:superscript
688         CopyStyle       Script
689         LaTeXName       textsuperscript
690         HTMLTag         sup
691 End
692
693
694 InsetLayout Script:subscript
695         CopyStyle       Script
696         Requires        subscript
697         LaTeXName       textsubscript
698         HTMLTag         sub
699 End
700
701
702 InsetLayout PrintNomencl
703         BabelPreamble
704                 \addto\captions$$lang{%
705                         \def\eqdeclaration#1{, _(see equation[[nomencl]])\nobreakspace(#1)}%
706                         \def\pagedeclaration#1{, _(page[[nomencl]])\nobreakspace#1}%
707                         \def\nomname{_(Nomenclature[[output]])}%
708                 }
709         EndBabelPreamble
710         # The command is defined for several languages in nomencl.sty. However, we need to define
711         # it anyway for the other, non suppported languages.
712         LangPreamble
713                 \def\eqdeclaration#1{, _(see equation[[nomencl]])\nobreakspace(#1)}
714                 \def\pagedeclaration#1{, _(page[[nomencl]])\nobreakspace#1}
715                 \def\nomname{_(Nomenclature[[output]])}
716         EndLangPreamble
717         HTMLTag h2
718 End
719
720 InsetLayout Tabular
721         HTMLStyle
722                 table {
723                         border-collapse: collapse;
724                         display: inline-block;
725                 }
726                 td {
727                         border: 1px solid black;
728                         padding: 0.5ex;
729                 }
730         EndHTMLStyle
731 End