]> git.lyx.org Git - features.git/blob - lib/layouts/stdinsets.inc
Fix bug #9101
[features.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 63
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 Note:Comment
126         LabelString           Comment
127         LatexType             environment
128         LatexName             comment
129         Requires              verbatim
130         BgColor               commentbg
131         LabelFont
132           Color               comment
133           Size                Small
134         EndFont
135         MultiPar              true
136         Display               false
137         HTMLTag               div
138         HTMLIsBlock           true
139         HTMLStyle
140         div.note_comment {
141                 display: none;
142         }
143         EndHTMLStyle
144         AddToToc              note
145         IsTocCaption          true
146 End
147
148
149 InsetLayout Note:Note
150         LabelString           Note
151         LatexType             command
152         LatexName             note
153         BgColor               notebg
154         LabelFont
155           Color               note
156           Size                Small
157         EndFont
158         MultiPar              true
159         # Not output for XHTML
160         AddToToc              note
161         IsTocCaption          true
162 End
163
164
165 InsetLayout Note:Greyedout
166         LabelString           Greyedout
167         LatexType             environment
168         LatexName             lyxgreyedout
169         Requires              color,lyxgreyedout
170         BgColor               greyedoutbg
171         Font
172           Color               greyedouttext
173         EndFont
174         LabelFont
175           Color               greyedout
176           Size                Small
177         EndFont
178         MultiPar              true
179         Display               false
180         HTMLInnerTag div
181         HTMLStyle
182                 div.note_greyedout {
183                         display: inline;
184                         color: #A0A0A0;
185                         padding-left: 1ex;
186                         padding-right: 1ex;
187                 }
188         EndHTMLStyle
189         HTMLIsBlock           false
190         AddToToc              note
191         IsTocCaption          true
192 End
193
194 InsetLayout ERT
195         LabelString           ERT
196         LatexType             none
197         Decoration            minimalistic
198         Font
199           Color               latex
200           Family              typewriter
201         EndFont
202         LabelFont
203           Color               latex
204           Size                Small
205         EndFont
206         MultiPar              true
207         CustomPars            false
208         ForcePlain            true
209         PassThru              true
210         ParbreakIsNewline     true
211         KeepEmpty             true
212         FreeSpacing           true
213         ForceLTR              true
214 End
215
216 InsetLayout Phantom
217         Decoration            minimalistic
218         Font
219           Color               phantomtext
220         EndFont
221         MultiPar              false
222         CustomPars            false
223         ForcePlain            true
224 End
225
226 InsetLayout IPADeco
227         Decoration            minimalistic
228         Font
229           Color               foreground
230         EndFont
231         MultiPar              false
232         CustomPars            false
233         ForcePlain            true
234 End
235
236 InsetLayout TOC
237   HTMLTag h2
238   HTMLStyle
239     div.toc {
240       margin: 2em 0em;
241       border-style: solid;
242       border-width: 2px 0px;
243       padding: 1em 0em;
244     }
245     h2.tochead { font-size: x-large; font-weight: bold; }
246     div.lyxtoc-0 {
247       margin: 2em 0em 0em 0em;
248       font-size: xx-large;
249       font-weight: bold;
250     }
251     div.lyxtoc-1 {
252       margin: 1em 0em 0em 0em;
253       font-size: x-large;
254       font-weight: bold;
255     }
256     div.lyxtoc-2 {
257       margin: 0em 0.1em 0em 1em;
258       font-size: large;
259       font-weight: normal;
260     }
261     div.lyxtoc-3 { margin: 0em 0.1em 0em 0.5em; font-size: medium; }
262     div.lyxtoc-4 { margin: 0em 0.1em 0em 0.5em; }
263     div.lyxtoc-5 { margin: 0em 0.1em 0em 0.5em; }
264     div.lyxtoc-6 { margin: 0em 0.1em 0em 0.5em; }
265     a.tocentry {
266       text-decoration: none;
267       color: black;
268     }
269     a.tocentry:visited { color: black; }
270   EndHTMLStyle
271 End
272
273 InsetLayout TOC:Listings
274         # We need the [[List of Listings]] context, since "Listings" is also
275         # the name of the inset and translated differently.
276         # "Listings[[List of Listings]]" is the name of the "List of listings"
277         # ("Listings" is the predefined english name) in listings.sty and
278         # minted.sty, so it must be used here as well.
279         BabelPreamble
280                 \ifx\minted\undefined
281                 \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}\else
282                 \addto\captions$$lang{\renewcommand{\listoflistingscaption}{_(Listings[[List of Listings]])}}\fi
283         EndBabelPreamble
284         # Either commands do not need to be defined in LangPreamble, since
285         # listings.sty or minted.sty do that already. However they need to be
286         # redefined in order to be used for non-english single-language
287         # documents.
288         LangPreamble
289                 \ifx\minted\undefined
290                 \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}\else
291                 \renewcommand{\listoflistingscaption}{_(Listings[[List of Listings]])}\fi
292         EndLangPreamble
293         FixedWidthPreambleEncoding true
294   HTMLTag h2
295   HTMLStyle
296     div.lyxtoc-flat {
297       margin: 0em 0em 0em 1em;
298       font-size: large;
299       font-weight: normal;
300     }
301   EndHTMLStyle
302 End
303
304 InsetLayout Include:Listings
305         BabelPreamble
306                 \ifx\minted\undefined
307                 \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}\else
308                 \addto\captions$$lang{\renewcommand{\listingscaption}{_(Listing)}}\fi
309         EndBabelPreamble
310         # Either commands do not need to be defined in LangPreamble, since
311         # listings.sty or minted.sty do that already. However they need to be
312         # redefined in order to be used for non-english single-language
313         # documents.
314         LangPreamble
315                 \ifx\minted\undefined
316                 \renewcommand{\lstlistingname}{_(Listing)}\else
317                 \renewcommand{\listingscaption}{_(Listing)}\fi
318         EndLangPreamble
319         FixedWidthPreambleEncoding true
320 End
321
322 InsetLayout Listings
323         CopyStyle Include:Listings
324         LabelString           Listings[[inset]]
325         LatexType             none
326         Decoration            minimalistic
327         Font
328           Color               foreground
329           Family              typewriter
330         EndFont
331         LabelFont
332           Color               foreground
333           Size                Small
334         EndFont
335         BgColor               listingsbg
336         MultiPar              true
337         PassThru              true
338         ParbreakIsNewline     true
339         KeepEmpty             true
340         FreeSpacing           true
341         ForceLTR              true
342         RefPrefix             lst
343         HTMLTag               pre
344         HTMLStyle
345                 div.float-listings {
346                         border: 2px solid black;
347                         padding: 1ex;
348                         margin: 1ex;
349                 }
350                 div.listings-caption {
351                         text-align: center;
352                         border: 2px solid black;
353                         padding: 1ex;
354                         margin: 1ex;
355         }
356         EndHTMLStyle
357 End
358
359 InsetLayout Branch
360         Decoration            classic
361         LabelFont
362           Color               branchlabel
363           Size                Small
364         EndFont
365         MultiPar              true
366         InToc                 true
367         HTMLIsBlock           false
368         AddToToc              branch
369         IsTocCaption          true
370 End
371
372 InsetLayout Index
373         LabelString           Idx
374         Decoration            classic
375         Font
376           Size                Small
377         EndFont
378         LabelFont
379           Color               indexlabel
380           Size                Small
381         EndFont
382         MultiPar              false
383         CustomPars            false
384         ForcePlain            true
385         ContentAsLabel        true
386         PassThruChars         @|!
387 End
388
389 InsetLayout Box
390         LabelFont
391           Color               foreground
392           Size                Small
393         EndFont
394         MultiPar              true
395 End
396
397 InsetLayout Box:Frameless
398         CopyStyle Box
399         HTMLStyle
400                 div.Frameless { margin: 1em; }
401         EndHTMLStyle
402 End
403
404 InsetLayout Box:Shaded
405         CopyStyle Box
406         BgColor shaded
407         HTMLStyle
408                 div.Shaded {
409                         background-color: gray;
410                         padding: 0.5ex;
411                 }
412         EndHTMLStyle
413 End
414
415 InsetLayout Box:Boxed
416         CopyStyle Box
417         HTMLStyle
418                 div.Boxed {
419                         border: solid thick black;
420                         padding: 0.5ex;
421                 }
422         EndHTMLStyle
423 End
424
425 InsetLayout Box:Framed
426         CopyStyle Box
427         HTMLStyle
428                 div.Framed {
429                         border: solid thick black;
430                         padding: 0.5ex;
431                 }
432         EndHTMLStyle
433 End
434
435 InsetLayout Box:ovalbox
436         CopyStyle Box
437         HTMLStyle
438                 div.ovalbox {
439                         border: groove medium black;
440                         padding: 0.5ex;
441                 }
442         EndHTMLStyle
443 End
444
445 InsetLayout Box:Ovalbox
446         CopyStyle Box
447         HTMLStyle
448                 div.Ovalbox {
449                         border: ridge thick black;
450                         padding: 0.5ex;
451                 }
452         EndHTMLStyle
453 End
454
455 InsetLayout Box:Shadowbox
456         CopyStyle Box
457         HTMLStyle
458                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
459         EndHTMLStyle
460 End
461
462 InsetLayout Box:Doublebox
463         CopyStyle Box
464         HTMLStyle
465                 div.Doublebox {
466                         border: double thick black;
467                         padding: 0.5ex;
468                 }
469         EndHTMLStyle
470 End
471
472 InsetLayout Float
473         LabelFont
474           Color               collapsable
475           Size                Small
476         EndFont
477         MultiPar              true
478         HTMLStyle
479                 div.float {
480                         border: 2px solid black;
481                         text-align: center;
482                 }
483         EndHTMLStyle
484 End
485
486 #InsetWrap requires these, independently of whether stdfloats.inc is included
487 OutlinerName table        "Tables" #no AddToToc (built-in)
488 OutlinerName figure       "Figures" #no AddToToc (built-in)
489
490 InsetLayout Wrap
491         LabelFont
492           Color               collapsable
493           Size                Small
494         EndFont
495         MultiPar              true
496         RefPrefix             wrap
497         HTMLStyle
498                 div.wrap {
499                         float: right;
500                         border: 2px solid black;
501                         padding: 1ex;
502                         margin: 1ex;
503                 }
504         EndHTMLStyle
505 End
506
507 InsetLayout "Flex:URL"
508         LyXType               standard
509         Decoration            classic
510         LabelString           URL
511         ContentAsLabel        true
512         LatexName             url
513         LatexType             command
514         Requires              url
515         MultiPar              false
516         CustomPars            false
517         ForcePlain            true
518         PassThru              true
519         FreeSpacing           true
520         ForceLTR              true
521         Font
522           Family              Typewriter
523           Color               urltext
524         EndFont
525         LabelFont
526           Family              Typewriter
527           Color               urllabel
528           Size                Small
529         EndFont
530         HTMLIsBlock           false
531 End
532
533 InsetLayout Argument
534         LabelString           Argument
535         LabelFont
536           Color               collapsable
537           Size                Small
538         EndFont
539         MultiPar              false
540         ForceLocalFontSwitch  1
541 End
542
543 InsetLayout Info
544         Decoration            conglomerate
545         HTMLStyle
546                 span.info { font-family: sans-serif; }
547         EndHTMLStyle
548         HTMLTag               span
549         MultiPar              false
550 End
551
552 InsetLayout Info:menu
553         CopyStyle             Info
554         LatexType             command
555         LatexName             menuitem
556         Preamble
557           \providecommand{\menuitem}[1]{\textsf{#1}}
558         EndPreamble
559         Decoration            conglomerate
560         Font
561           Family              sans
562         EndFont
563         HTMLAttr              "class='info menu'"
564         HTMLStyle
565                 span.menu { font-family: sans-serif; }
566         EndHTMLStyle
567 End
568
569 InsetLayout Info:shortcut
570         CopyStyle             Info
571         LatexType             command
572         LatexName             shortcut
573         Preamble
574           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
575         EndPreamble
576         Decoration            conglomerate
577         Font
578           Family              sans
579         EndFont
580         HTMLAttr              "class='info shortcut'"
581         HTMLStyle
582                 span.shortcut { font-family: sans-serif; }
583         EndHTMLStyle
584 End
585
586 InsetLayout Info:shortcuts
587         CopyStyle             Info
588         LatexType             command
589         LatexName             shortcut
590         Preamble
591           \providecommand{\shortcut}[1]{\textsf{#1}}
592         EndPreamble
593         Decoration            conglomerate
594         Font
595           Family              sans
596         EndFont
597         HTMLAttr              "class='info shortcut'"
598         HTMLStyle
599                 span.shortcuts { font-family: sans-serif; }
600         EndHTMLStyle
601 End
602
603 InsetLayout Caption:Standard
604         LabelString          standard
605         LaTeXType            command
606         LatexName            caption
607         NeedProtect          1
608         MultiPar             false
609         Argument 1
610                 LabelString   "Short Title|S"
611                 Tooltip       "The caption as it appears in the list of figures/tables"
612                 InsertCotext  1
613         EndArgument
614         HTMLStyle
615                 div.float-caption {
616                         text-align: center;
617                         border: 2px solid black;
618                         padding: 1ex;
619                         margin: 1ex;
620                 }
621         EndHTMLStyle
622         HTMLAttr "class='float-caption float-caption-standard'"
623 End
624
625
626 InsetLayout Caption:Unnumbered
627         CopyStyle            Caption:Standard
628         LabelString          unlabelled
629         LatexName            caption*
630         ResetArgs            1
631 End
632
633
634 InsetLayout Preview
635         LabelString           Preview
636         Decoration            minimalistic
637         MultiPar              true
638 End
639
640
641 InsetLayout Script
642         LatexType       command
643         MultiPar        false
644         ForcePlain      1
645         CustomPars      0
646         InToc           1
647         HTMLIsBlock     0
648 End
649
650
651 InsetLayout Script:superscript
652         CopyStyle       Script
653         LaTeXName       textsuperscript
654         HTMLTag         sup
655 End
656
657
658 InsetLayout Script:subscript
659         CopyStyle       Script
660         Requires        subscript
661         LaTeXName       textsubscript
662         HTMLTag         sub
663 End
664
665
666 InsetLayout PrintNomencl
667   HTMLTag h2
668 End
669
670 InsetLayout Tabular
671         HTMLStyle
672                 table {
673                         border-collapse: collapse;
674                         display: inline-block;
675                 }
676                 td {
677                         border: 1px solid black;
678                         padding: 0.5ex;
679                 }
680         EndHTMLStyle
681 End