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