]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
Update it.po
[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 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         ForcePlain            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         Font
557           Family              Typewriter
558           Color               urltext
559         EndFont
560         LabelFont
561           Family              Typewriter
562           Color               urllabel
563           Size                Small
564         EndFont
565         HTMLIsBlock           false
566 End
567
568 InsetLayout Argument
569         LabelString           Argument
570         LabelFont
571           Color               collapsible
572           Size                Small
573         EndFont
574         MultiPar              false
575         ForceLocalFontSwitch  1
576 End
577
578 InsetLayout Info
579         Decoration            conglomerate
580         HTMLStyle
581                 span.info { font-family: sans-serif; }
582         EndHTMLStyle
583         HTMLTag               span
584         MultiPar              false
585 End
586
587 InsetLayout Info:menu
588         CopyStyle             Info
589         LatexType             command
590         LatexName             menuitem
591         Preamble
592           \providecommand{\menuitem}[1]{\textsf{#1}}
593         EndPreamble
594         Decoration            conglomerate
595         Font
596           Family              sans
597         EndFont
598         HTMLAttr              "class='info menu'"
599         HTMLStyle
600                 span.menu { font-family: sans-serif; }
601         EndHTMLStyle
602 End
603
604 InsetLayout Info:shortcut
605         CopyStyle             Info
606         LatexType             command
607         LatexName             shortcut
608         Preamble
609           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
610         EndPreamble
611         Decoration            conglomerate
612         Font
613           Family              sans
614         EndFont
615         HTMLAttr              "class='info shortcut'"
616         HTMLStyle
617                 span.shortcut { font-family: sans-serif; }
618         EndHTMLStyle
619 End
620
621 InsetLayout Info:shortcuts
622         CopyStyle             Info
623         LatexType             command
624         LatexName             shortcut
625         Preamble
626           \providecommand{\shortcut}[1]{\textsf{#1}}
627         EndPreamble
628         Decoration            conglomerate
629         Font
630           Family              sans
631         EndFont
632         HTMLAttr              "class='info shortcut'"
633         HTMLStyle
634                 span.shortcuts { font-family: sans-serif; }
635         EndHTMLStyle
636 End
637
638 InsetLayout Caption:Standard
639         LabelString          standard
640         LaTeXType            command
641         LatexName            caption
642         NeedProtect          1
643         MultiPar             false
644         Argument 1
645                 LabelString   "Short Title|S"
646                 Tooltip       "The caption as it appears in the list of figures/tables"
647                 InsertCotext  1
648         EndArgument
649         HTMLStyle
650                 div.float-caption {
651                         text-align: center;
652                         border: 2px solid black;
653                         padding: 1ex;
654                         margin: 1ex;
655                 }
656         EndHTMLStyle
657         HTMLAttr "class='float-caption float-caption-standard'"
658 End
659
660
661 InsetLayout Caption:Unnumbered
662         CopyStyle            Caption:Standard
663         LabelString          unlabelled
664         LatexName            caption*
665         ResetArgs            1
666 End
667
668
669 InsetLayout Preview
670         LabelString           Preview
671         Decoration            minimalistic
672         MultiPar              true
673 End
674
675
676 InsetLayout Script
677         LatexType       command
678         MultiPar        false
679         ForcePlain      1
680         CustomPars      0
681         InToc           1
682         HTMLIsBlock     0
683 End
684
685
686 InsetLayout Script:superscript
687         CopyStyle       Script
688         LaTeXName       textsuperscript
689         HTMLTag         sup
690 End
691
692
693 InsetLayout Script:subscript
694         CopyStyle       Script
695         Requires        subscript
696         LaTeXName       textsubscript
697         HTMLTag         sub
698 End
699
700
701 InsetLayout PrintNomencl
702         BabelPreamble
703                 \addto\captions$$lang{%
704                         \def\eqdeclaration#1{, _(see equation[[nomencl]])\nobreakspace(#1)}%
705                         \def\pagedeclaration#1{, _(page[[nomencl]])\nobreakspace#1}%
706                         \def\nomname{_(Nomenclature[[output]])}%
707                 }
708         EndBabelPreamble
709         # The command is defined for several languages in nomencl.sty. However, we need to define
710         # it anyway for the other, non suppported languages.
711         LangPreamble
712                 \def\eqdeclaration#1{, _(see equation[[nomencl]])\nobreakspace(#1)}
713                 \def\pagedeclaration#1{, _(page[[nomencl]])\nobreakspace#1}
714                 \def\nomname{_(Nomenclature[[output]])}
715         EndLangPreamble
716         HTMLTag h2
717 End
718
719 InsetLayout Tabular
720         HTMLStyle
721                 table {
722                         border-collapse: collapse;
723                         display: inline-block;
724                 }
725                 td {
726                         border: 1px solid black;
727                         padding: 0.5ex;
728                 }
729         EndHTMLStyle
730 End