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