]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
c247f13b77c55681fc48b3977b34a24f852b290f
[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   EndHTMLStyle
217 End
218
219 InsetLayout TOC:Listings
220         # We need the [[List of Listings]] context, since "Listings" is also
221         # the name of the inset and translated differently.
222         # "Listings[[List of Listings]]" is the name of the "List of listings"
223         # ("Listings" is the predefined english name) in listings.sty, so it
224         # must be used here as well.
225         BabelPreamble
226                 \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}
227         EndBabelPreamble
228         # The command does not need to be defined in LangPreamble, since
229         # listings.sty does that already. However it needs to be redefined
230         # in order to be used for non-english single-language documents.
231         LangPreamble
232                 \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
233         EndLangPreamble
234   HTMLStyle
235     div.lyxtoc-flat {
236       margin: 0em 0em 0em 1em;
237       font-size: large;
238       font-weight: normal;
239     }
240   EndHTMLStyle
241 End
242
243 InsetLayout Include:Listings
244         BabelPreamble
245                 \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
246         EndBabelPreamble
247         # The command does not need to be defined in LangPreamble, since
248         # listings.sty does that already. However it needs to be redefined
249         # in order to be used for non-english single-language documents.
250         LangPreamble
251                 \renewcommand{\lstlistingname}{_(Listing)}
252         EndLangPreamble
253 End
254
255 InsetLayout Listings
256         CopyStyle Include:Listings
257         LabelString           Listings[[inset]]
258         LatexType             none
259         Decoration            minimalistic
260         Font
261           Color               foreground
262           Family              typewriter
263         EndFont
264         LabelFont
265           Color               foreground
266           Size                Small
267         EndFont
268         BgColor               listingsbg
269         MultiPar              true
270         PassThru              true
271         ParbreakIsNewline     true
272         KeepEmpty             true
273         FreeSpacing           true
274         ForceLTR              true
275         RefPrefix             lst
276         HTMLTag               pre
277 End
278
279 InsetLayout Branch
280         Decoration            classic
281         LabelFont
282           Color               branchlabel
283           Size                Small
284         EndFont
285         MultiPar              true
286         InToc                 true
287         HTMLIsBlock           false
288 End
289
290 InsetLayout Index
291         LabelString           Idx
292         Decoration            classic
293         Font
294           Size                Small
295         EndFont
296         LabelFont
297           Color               indexlabel
298           Size                Small
299         EndFont
300         MultiPar              false
301         CustomPars            false
302         ForcePlain            true
303         ContentAsLabel        true
304 End
305
306 InsetLayout Box
307         LabelFont
308           Color               foreground
309           Size                Small
310         EndFont
311         MultiPar              true
312 End
313
314 InsetLayout Box:Frameless
315         CopyStyle Box
316         HTMLStyle
317                 div.Frameless { margin: 1em; }
318         EndHTMLStyle
319 End
320
321 InsetLayout Box:Shaded
322         CopyStyle Box
323         BgColor shaded
324         HTMLStyle
325                 div.Shaded {
326                         background-color: gray;
327                         padding: 0.5ex;
328                 }
329         EndHTMLStyle
330 End
331
332 InsetLayout Box:Boxed
333         CopyStyle Box
334         HTMLStyle
335                 div.Boxed {
336                         border: solid thick black;
337                         padding: 0.5ex;
338                 }
339         EndHTMLStyle
340 End
341
342 InsetLayout Box:Framed
343         CopyStyle Box
344         HTMLStyle
345                 div.Framed {
346                         border: solid thick black;
347                         padding: 0.5ex;
348                 }
349         EndHTMLStyle
350 End
351
352 InsetLayout Box:ovalbox
353         CopyStyle Box
354         HTMLStyle
355                 div.ovalbox {
356                         border: groove medium black;
357                         padding: 0.5ex;
358                 }
359         EndHTMLStyle
360 End
361
362 InsetLayout Box:Ovalbox
363         CopyStyle Box
364         HTMLStyle
365                 div.Ovalbox {
366                         border: ridge thick black;
367                         padding: 0.5ex;
368                 }
369         EndHTMLStyle
370 End
371
372 InsetLayout Box:Shadowbox
373         CopyStyle Box
374         HTMLStyle
375                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
376         EndHTMLStyle
377 End
378
379 InsetLayout Box:Doublebox
380         CopyStyle Box
381         HTMLStyle
382                 div.Doublebox {
383                         border: double thick black;
384                         padding: 0.5ex;
385                 }
386         EndHTMLStyle
387 End
388
389 InsetLayout Float
390         LabelFont
391           Color               collapsable
392           Size                Small
393         EndFont
394         MultiPar              true
395         HTMLStyle
396                 div.float {
397                         border: 2px solid black;
398                         text-align: center;
399                 }
400         EndHTMLStyle
401 End
402
403 InsetLayout Wrap
404         LabelFont
405           Color               collapsable
406           Size                Small
407         EndFont
408         MultiPar              true
409         RefPrefix             wrap
410         HTMLStyle
411                 div.wrap {
412                         float: right;
413                         border: 2px solid black;
414                         padding: 1ex;
415                         margin: 1ex;
416                 }
417         EndHTMLStyle
418 End
419
420 InsetLayout "Flex:URL"
421         LyXType               standard
422         Decoration            classic
423         LabelString           URL
424         ContentAsLabel        true
425         LatexName             url
426         LatexType             command
427         Requires              url
428         MultiPar              false
429         CustomPars            false
430         ForcePlain            true
431         PassThru              true
432         FreeSpacing           true
433         ForceLTR              true
434         ResetsFont            false
435         Font
436           Family              Typewriter
437           Color               urltext
438         EndFont
439         LabelFont
440           Family              Typewriter
441           Color               urllabel
442           Size                Small
443         EndFont
444         HTMLIsBlock           false
445 End
446
447 InsetLayout Argument
448         LabelString           Argument
449         LabelFont
450           Color               collapsable
451           Size                Small
452         EndFont
453         MultiPar              false
454         ForceLocalFontSwitch  1
455 End
456
457 InsetLayout Info
458         Decoration            conglomerate
459         HTMLStyle
460                 span.info { font-family: sans-serif; }
461         EndHTMLStyle
462         HTMLTag               span
463         MultiPar              false
464 End
465
466 InsetLayout Info:menu
467         CopyStyle             Info
468         LatexType             command
469         LatexName             menuitem
470         Preamble
471           \providecommand{\menuitem}[1]{\textsf{#1}}
472         EndPreamble
473         Decoration            conglomerate
474         Font
475           Family              sans
476         EndFont
477         HTMLAttr              "class='info menu'"
478         HTMLStyle
479                 span.menu { font-family: sans-serif; }
480         EndHTMLStyle
481 End
482
483 InsetLayout Info:shortcut
484         CopyStyle             Info
485         LatexType             command
486         LatexName             shortcut
487         Preamble
488           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
489         EndPreamble
490         Decoration            conglomerate
491         Font
492           Family              sans
493         EndFont
494         HTMLAttr              "class='info shortcut'"
495         HTMLStyle
496                 span.shortcut { font-family: sans-serif; }
497         EndHTMLStyle
498 End
499
500 InsetLayout Info:shortcuts
501         CopyStyle             Info
502         LatexType             command
503         LatexName             shortcut
504         Preamble
505           \providecommand{\shortcut}[1]{\textsf{#1}}
506         EndPreamble
507         Decoration            conglomerate
508         Font
509           Family              sans
510         EndFont
511         HTMLAttr              "class='info shortcut'"
512         HTMLStyle
513                 span.shortcuts { font-family: sans-serif; }
514         EndHTMLStyle
515 End
516
517 InsetLayout Caption:Standard
518         LabelString          standard
519         LaTeXType            command
520         LatexName            caption
521         Argument 1
522                 LabelString   "Short Title|S"
523                 Tooltip       "The caption as it appears in the list of figures/tables"
524         EndArgument
525         HTMLStyle
526                 div.float-caption {
527                         text-align: center;
528                         border: 2px solid black;
529                         padding: 1ex;
530                         margin: 1ex;
531                 }
532         EndHTMLStyle
533         HTMLAttr "class='float-caption float-caption-standard'"
534 End
535
536
537 InsetLayout Caption:LongTableNoNumber
538         CopyStyle            Caption:Standard
539         LatexName            caption*
540         Argument 1
541                 LabelString   "Long Table Caption (unnumbered)"
542                 Tooltip       "The caption as it appears in the list of tables"
543         EndArgument
544 End
545
546
547 InsetLayout Preview
548         LabelString           Preview
549         Decoration            minimalistic
550         MultiPar              true
551 End
552
553
554 InsetLayout Script
555         LatexType       command
556         MultiPar        false
557         ForcePlain      1
558         CustomPars      0
559         InToc           1
560         HTMLIsBlock     0
561 End
562
563
564 InsetLayout Script:superscript
565         CopyStyle       Script
566         LaTeXName       textsuperscript
567         HTMLTag         sup
568 End
569
570 InsetLayout Script:subscript
571         CopyStyle       Script
572         Requires        subscript
573         LaTeXName       textsubscript
574         HTMLTag         sub
575 End