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