]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
Revert "Fix Ticket #9741 misleading name for font-encoding setting "default"."
[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 End
358
359 InsetLayout Box
360         LabelFont
361           Color               foreground
362           Size                Small
363         EndFont
364         MultiPar              true
365 End
366
367 InsetLayout Box:Frameless
368         CopyStyle Box
369         HTMLStyle
370                 div.Frameless { margin: 1em; }
371         EndHTMLStyle
372 End
373
374 InsetLayout Box:Shaded
375         CopyStyle Box
376         BgColor shaded
377         HTMLStyle
378                 div.Shaded {
379                         background-color: gray;
380                         padding: 0.5ex;
381                 }
382         EndHTMLStyle
383 End
384
385 InsetLayout Box:Boxed
386         CopyStyle Box
387         HTMLStyle
388                 div.Boxed {
389                         border: solid thick black;
390                         padding: 0.5ex;
391                 }
392         EndHTMLStyle
393 End
394
395 InsetLayout Box:Framed
396         CopyStyle Box
397         HTMLStyle
398                 div.Framed {
399                         border: solid thick black;
400                         padding: 0.5ex;
401                 }
402         EndHTMLStyle
403 End
404
405 InsetLayout Box:ovalbox
406         CopyStyle Box
407         HTMLStyle
408                 div.ovalbox {
409                         border: groove medium black;
410                         padding: 0.5ex;
411                 }
412         EndHTMLStyle
413 End
414
415 InsetLayout Box:Ovalbox
416         CopyStyle Box
417         HTMLStyle
418                 div.Ovalbox {
419                         border: ridge thick black;
420                         padding: 0.5ex;
421                 }
422         EndHTMLStyle
423 End
424
425 InsetLayout Box:Shadowbox
426         CopyStyle Box
427         HTMLStyle
428                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
429         EndHTMLStyle
430 End
431
432 InsetLayout Box:Doublebox
433         CopyStyle Box
434         HTMLStyle
435                 div.Doublebox {
436                         border: double thick black;
437                         padding: 0.5ex;
438                 }
439         EndHTMLStyle
440 End
441
442 InsetLayout Float
443         LabelFont
444           Color               collapsable
445           Size                Small
446         EndFont
447         MultiPar              true
448         HTMLStyle
449                 div.float {
450                         border: 2px solid black;
451                         text-align: center;
452                 }
453         EndHTMLStyle
454 End
455
456 InsetLayout Wrap
457         LabelFont
458           Color               collapsable
459           Size                Small
460         EndFont
461         MultiPar              true
462         RefPrefix             wrap
463         HTMLStyle
464                 div.wrap {
465                         float: right;
466                         border: 2px solid black;
467                         padding: 1ex;
468                         margin: 1ex;
469                 }
470         EndHTMLStyle
471 End
472
473 InsetLayout "Flex:URL"
474         LyXType               standard
475         Decoration            classic
476         LabelString           URL
477         ContentAsLabel        true
478         LatexName             url
479         LatexType             command
480         Requires              url
481         MultiPar              false
482         CustomPars            false
483         ForcePlain            true
484         PassThru              true
485         FreeSpacing           true
486         ForceLTR              true
487         Font
488           Family              Typewriter
489           Color               urltext
490         EndFont
491         LabelFont
492           Family              Typewriter
493           Color               urllabel
494           Size                Small
495         EndFont
496         HTMLIsBlock           false
497 End
498
499 InsetLayout Argument
500         LabelString           Argument
501         LabelFont
502           Color               collapsable
503           Size                Small
504         EndFont
505         MultiPar              false
506         ForceLocalFontSwitch  1
507 End
508
509 InsetLayout Info
510         Decoration            conglomerate
511         HTMLStyle
512                 span.info { font-family: sans-serif; }
513         EndHTMLStyle
514         HTMLTag               span
515         MultiPar              false
516 End
517
518 InsetLayout Info:menu
519         CopyStyle             Info
520         LatexType             command
521         LatexName             menuitem
522         Preamble
523           \providecommand{\menuitem}[1]{\textsf{#1}}
524         EndPreamble
525         Decoration            conglomerate
526         Font
527           Family              sans
528         EndFont
529         HTMLAttr              "class='info menu'"
530         HTMLStyle
531                 span.menu { font-family: sans-serif; }
532         EndHTMLStyle
533 End
534
535 InsetLayout Info:shortcut
536         CopyStyle             Info
537         LatexType             command
538         LatexName             shortcut
539         Preamble
540           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
541         EndPreamble
542         Decoration            conglomerate
543         Font
544           Family              sans
545         EndFont
546         HTMLAttr              "class='info shortcut'"
547         HTMLStyle
548                 span.shortcut { font-family: sans-serif; }
549         EndHTMLStyle
550 End
551
552 InsetLayout Info:shortcuts
553         CopyStyle             Info
554         LatexType             command
555         LatexName             shortcut
556         Preamble
557           \providecommand{\shortcut}[1]{\textsf{#1}}
558         EndPreamble
559         Decoration            conglomerate
560         Font
561           Family              sans
562         EndFont
563         HTMLAttr              "class='info shortcut'"
564         HTMLStyle
565                 span.shortcuts { font-family: sans-serif; }
566         EndHTMLStyle
567 End
568
569 InsetLayout Caption:Standard
570         LabelString          standard
571         LaTeXType            command
572         LatexName            caption
573         NeedProtect          1
574         MultiPar             false
575         Argument 1
576                 LabelString   "Short Title|S"
577                 Tooltip       "The caption as it appears in the list of figures/tables"
578                 InsertCotext  1
579         EndArgument
580         HTMLStyle
581                 div.float-caption {
582                         text-align: center;
583                         border: 2px solid black;
584                         padding: 1ex;
585                         margin: 1ex;
586                 }
587         EndHTMLStyle
588         HTMLAttr "class='float-caption float-caption-standard'"
589 End
590
591
592 InsetLayout Caption:Unnumbered
593         CopyStyle            Caption:Standard
594         LabelString          unlabelled
595         LatexName            caption*
596         ResetArgs            1
597 End
598
599
600 InsetLayout Preview
601         LabelString           Preview
602         Decoration            minimalistic
603         MultiPar              true
604 End
605
606
607 InsetLayout Script
608         LatexType       command
609         MultiPar        false
610         ForcePlain      1
611         CustomPars      0
612         InToc           1
613         HTMLIsBlock     0
614 End
615
616
617 InsetLayout Script:superscript
618         CopyStyle       Script
619         LaTeXName       textsuperscript
620         HTMLTag         sup
621 End
622
623
624 InsetLayout Script:subscript
625         CopyStyle       Script
626         Requires        subscript
627         LaTeXName       textsubscript
628         HTMLTag         sub
629 End
630
631
632 InsetLayout PrintNomencl
633   HTMLTag h2
634 End
635
636 InsetLayout Tabular
637         HTMLStyle
638                 table {
639                         border-collapse: collapse;
640                         display: inline-block;
641                 }
642                 td {
643                         border: 1px solid black;
644                         padding: 0.5ex;
645                 }
646         EndHTMLStyle
647 End