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