]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
Catalan mathed.lyx: move outdated file to attic/ca/mathed.lyx
[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 65
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, so it
278         # must be used here as well.
279         BabelPreamble
280                 \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}
281         EndBabelPreamble
282         # The command does not need to be defined in LangPreamble, since
283         # listings.sty does that already. However it needs to be redefined
284         # in order to be used for non-english single-language documents.
285         LangPreamble
286                 \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
287         EndLangPreamble
288         FixedWidthPreambleEncoding true
289   HTMLTag h2
290   HTMLStyle
291     div.lyxtoc-flat {
292       margin: 0em 0em 0em 1em;
293       font-size: large;
294       font-weight: normal;
295     }
296   EndHTMLStyle
297 End
298
299 InsetLayout TOC:MintedListings
300         # "List of Listings" is the name of the "List of listings"
301         # in minted.sty so it must be used here as well.
302         BabelPreamble
303                 \addto\captions$$lang{\renewcommand{\listoflistingscaption}{_(List of Listings)}}
304         EndBabelPreamble
305         # The command does not need to be defined in LangPreamble, since
306         # minted.sty does that already. However it needs to be redefined
307         # in order to be used for non-english single-language documents.
308         LangPreamble
309                 \renewcommand{\listoflistingscaption}{_(List of Listings)}
310         EndLangPreamble
311         FixedWidthPreambleEncoding false
312   HTMLTag h2
313   HTMLStyle
314     div.lyxtoc-flat {
315       margin: 0em 0em 0em 1em;
316       font-size: large;
317       font-weight: normal;
318     }
319   EndHTMLStyle
320 End
321
322 InsetLayout Include:Listings
323         BabelPreamble
324                 \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
325         EndBabelPreamble
326         # The command does not need to be defined in LangPreamble, since
327         # listings.sty does that already. However it needs to be redefined
328         # in order to be used for non-english single-language documents.
329         LangPreamble
330                 \renewcommand{\lstlistingname}{_(Listing)}
331         EndLangPreamble
332         FixedWidthPreambleEncoding true
333 End
334
335 InsetLayout Listings
336         CopyStyle Include:Listings
337         LabelString           Listings[[inset]]
338         LatexType             none
339         Decoration            minimalistic
340         Font
341           Color               foreground
342           Family              typewriter
343         EndFont
344         LabelFont
345           Color               foreground
346           Size                Small
347         EndFont
348         BgColor               listingsbg
349         MultiPar              true
350         PassThru              true
351         ParbreakIsNewline     true
352         KeepEmpty             true
353         FreeSpacing           true
354         ForceLTR              true
355         RefPrefix             lst
356         HTMLTag               pre
357         HTMLStyle
358                 div.float-listings {
359                         border: 2px solid black;
360                         padding: 1ex;
361                         margin: 1ex;
362                 }
363                 div.listings-caption {
364                         text-align: center;
365                         border: 2px solid black;
366                         padding: 1ex;
367                         margin: 1ex;
368         }
369         EndHTMLStyle
370 End
371
372 InsetLayout MintedListings
373         CopyStyle Listings
374         BabelPreamble
375                 \addto\captions$$lang{\renewcommand{\listingscaption}{_(Listing)}}
376         EndBabelPreamble
377         # The command does not need to be defined in LangPreamble, since
378         # minted.sty does that already. However it needs to be redefined
379         # in order to be used for non-english single-language documents.
380         LangPreamble
381                 \renewcommand{\listingscaption}{_(Listing)}
382         EndLangPreamble
383         FixedWidthPreambleEncoding false
384 End
385
386 InsetLayout Branch
387         Decoration            classic
388         LabelFont
389           Color               branchlabel
390           Size                Small
391         EndFont
392         MultiPar              true
393         InToc                 true
394         HTMLIsBlock           false
395         AddToToc              branch
396         IsTocCaption          true
397 End
398
399 InsetLayout Index
400         LabelString           Idx
401         Decoration            classic
402         Font
403           Size                Small
404         EndFont
405         LabelFont
406           Color               indexlabel
407           Size                Small
408         EndFont
409         MultiPar              false
410         CustomPars            false
411         ForcePlain            true
412         ContentAsLabel        true
413         PassThruChars         @|!
414 End
415
416 InsetLayout Box
417         LabelFont
418           Color               foreground
419           Size                Small
420         EndFont
421         MultiPar              true
422 End
423
424 InsetLayout Box:Frameless
425         CopyStyle Box
426         HTMLStyle
427                 div.Frameless { margin: 1em; }
428         EndHTMLStyle
429 End
430
431 InsetLayout Box:Shaded
432         CopyStyle Box
433         BgColor shaded
434         HTMLStyle
435                 div.Shaded {
436                         background-color: gray;
437                         padding: 0.5ex;
438                 }
439         EndHTMLStyle
440 End
441
442 InsetLayout Box:Boxed
443         CopyStyle Box
444         HTMLStyle
445                 div.Boxed {
446                         border: solid thick black;
447                         padding: 0.5ex;
448                 }
449         EndHTMLStyle
450 End
451
452 InsetLayout Box:Framed
453         CopyStyle Box
454         HTMLStyle
455                 div.Framed {
456                         border: solid thick black;
457                         padding: 0.5ex;
458                 }
459         EndHTMLStyle
460 End
461
462 InsetLayout Box:ovalbox
463         CopyStyle Box
464         HTMLStyle
465                 div.ovalbox {
466                         border: groove medium black;
467                         padding: 0.5ex;
468                 }
469         EndHTMLStyle
470 End
471
472 InsetLayout Box:Ovalbox
473         CopyStyle Box
474         HTMLStyle
475                 div.Ovalbox {
476                         border: ridge thick black;
477                         padding: 0.5ex;
478                 }
479         EndHTMLStyle
480 End
481
482 InsetLayout Box:Shadowbox
483         CopyStyle Box
484         HTMLStyle
485                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
486         EndHTMLStyle
487 End
488
489 InsetLayout Box:Doublebox
490         CopyStyle Box
491         HTMLStyle
492                 div.Doublebox {
493                         border: double thick black;
494                         padding: 0.5ex;
495                 }
496         EndHTMLStyle
497 End
498
499 InsetLayout Float
500         LabelFont
501           Color               collapsible
502           Size                Small
503         EndFont
504         MultiPar              true
505         HTMLStyle
506                 div.float {
507                         border: 2px solid black;
508                         text-align: center;
509                 }
510         EndHTMLStyle
511 End
512
513 #InsetWrap requires these, independently of whether stdfloats.inc is included
514 OutlinerName table        "Tables" #no AddToToc (built-in)
515 OutlinerName figure       "Figures" #no AddToToc (built-in)
516
517 InsetLayout Wrap
518         LabelFont
519           Color               collapsible
520           Size                Small
521         EndFont
522         MultiPar              true
523         RefPrefix             wrap
524         HTMLStyle
525                 div.wrap {
526                         float: right;
527                         border: 2px solid black;
528                         padding: 1ex;
529                         margin: 1ex;
530                 }
531         EndHTMLStyle
532 End
533
534 InsetLayout "Flex:URL"
535         LyXType               standard
536         Decoration            classic
537         LabelString           URL
538         ContentAsLabel        true
539         LatexName             url
540         LatexType             command
541         Requires              url
542         MultiPar              false
543         CustomPars            false
544         ForcePlain            true
545         PassThru              true
546         FreeSpacing           true
547         ForceLTR              true
548         Font
549           Family              Typewriter
550           Color               urltext
551         EndFont
552         LabelFont
553           Family              Typewriter
554           Color               urllabel
555           Size                Small
556         EndFont
557         HTMLIsBlock           false
558 End
559
560 InsetLayout Argument
561         LabelString           Argument
562         LabelFont
563           Color               collapsible
564           Size                Small
565         EndFont
566         MultiPar              false
567         ForceLocalFontSwitch  1
568 End
569
570 InsetLayout Info
571         Decoration            conglomerate
572         HTMLStyle
573                 span.info { font-family: sans-serif; }
574         EndHTMLStyle
575         HTMLTag               span
576         MultiPar              false
577 End
578
579 InsetLayout Info:menu
580         CopyStyle             Info
581         LatexType             command
582         LatexName             menuitem
583         Preamble
584           \providecommand{\menuitem}[1]{\textsf{#1}}
585         EndPreamble
586         Decoration            conglomerate
587         Font
588           Family              sans
589         EndFont
590         HTMLAttr              "class='info menu'"
591         HTMLStyle
592                 span.menu { font-family: sans-serif; }
593         EndHTMLStyle
594 End
595
596 InsetLayout Info:shortcut
597         CopyStyle             Info
598         LatexType             command
599         LatexName             shortcut
600         Preamble
601           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
602         EndPreamble
603         Decoration            conglomerate
604         Font
605           Family              sans
606         EndFont
607         HTMLAttr              "class='info shortcut'"
608         HTMLStyle
609                 span.shortcut { font-family: sans-serif; }
610         EndHTMLStyle
611 End
612
613 InsetLayout Info:shortcuts
614         CopyStyle             Info
615         LatexType             command
616         LatexName             shortcut
617         Preamble
618           \providecommand{\shortcut}[1]{\textsf{#1}}
619         EndPreamble
620         Decoration            conglomerate
621         Font
622           Family              sans
623         EndFont
624         HTMLAttr              "class='info shortcut'"
625         HTMLStyle
626                 span.shortcuts { font-family: sans-serif; }
627         EndHTMLStyle
628 End
629
630 InsetLayout Caption:Standard
631         LabelString          standard
632         LaTeXType            command
633         LatexName            caption
634         NeedProtect          1
635         MultiPar             false
636         Argument 1
637                 LabelString   "Short Title|S"
638                 Tooltip       "The caption as it appears in the list of figures/tables"
639                 InsertCotext  1
640         EndArgument
641         HTMLStyle
642                 div.float-caption {
643                         text-align: center;
644                         border: 2px solid black;
645                         padding: 1ex;
646                         margin: 1ex;
647                 }
648         EndHTMLStyle
649         HTMLAttr "class='float-caption float-caption-standard'"
650 End
651
652
653 InsetLayout Caption:Unnumbered
654         CopyStyle            Caption:Standard
655         LabelString          unlabelled
656         LatexName            caption*
657         ResetArgs            1
658 End
659
660
661 InsetLayout Preview
662         LabelString           Preview
663         Decoration            minimalistic
664         MultiPar              true
665 End
666
667
668 InsetLayout Script
669         LatexType       command
670         MultiPar        false
671         ForcePlain      1
672         CustomPars      0
673         InToc           1
674         HTMLIsBlock     0
675 End
676
677
678 InsetLayout Script:superscript
679         CopyStyle       Script
680         LaTeXName       textsuperscript
681         HTMLTag         sup
682 End
683
684
685 InsetLayout Script:subscript
686         CopyStyle       Script
687         Requires        subscript
688         LaTeXName       textsubscript
689         HTMLTag         sub
690 End
691
692
693 InsetLayout PrintNomencl
694   HTMLTag h2
695 End
696
697 InsetLayout Tabular
698         HTMLStyle
699                 table {
700                         border-collapse: collapse;
701                         display: inline-block;
702                 }
703                 td {
704                         border: 1px solid black;
705                         padding: 0.5ex;
706                 }
707         EndHTMLStyle
708 End