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