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