]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
layout files: add the new AllowedPlacement
[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 54
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         FixedWidthPreambleEncoding true
271   HTMLTag h2
272   HTMLStyle
273     div.lyxtoc-flat {
274       margin: 0em 0em 0em 1em;
275       font-size: large;
276       font-weight: normal;
277     }
278   EndHTMLStyle
279 End
280
281 InsetLayout Include:Listings
282         BabelPreamble
283                 \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
284         EndBabelPreamble
285         # The command does not need to be defined in LangPreamble, since
286         # listings.sty does that already. However it needs to be redefined
287         # in order to be used for non-english single-language documents.
288         LangPreamble
289                 \renewcommand{\lstlistingname}{_(Listing)}
290         EndLangPreamble
291         FixedWidthPreambleEncoding true
292 End
293
294 InsetLayout Listings
295         CopyStyle Include:Listings
296         LabelString           Listings[[inset]]
297         LatexType             none
298         Decoration            minimalistic
299         Font
300           Color               foreground
301           Family              typewriter
302         EndFont
303         LabelFont
304           Color               foreground
305           Size                Small
306         EndFont
307         BgColor               listingsbg
308         MultiPar              true
309         PassThru              true
310         ParbreakIsNewline     true
311         KeepEmpty             true
312         FreeSpacing           true
313         ForceLTR              true
314         RefPrefix             lst
315         HTMLTag               pre
316 End
317
318 InsetLayout Branch
319         Decoration            classic
320         LabelFont
321           Color               branchlabel
322           Size                Small
323         EndFont
324         MultiPar              true
325         InToc                 true
326         HTMLIsBlock           false
327 End
328
329 InsetLayout Index
330         LabelString           Idx
331         Decoration            classic
332         Font
333           Size                Small
334         EndFont
335         LabelFont
336           Color               indexlabel
337           Size                Small
338         EndFont
339         MultiPar              false
340         CustomPars            false
341         ForcePlain            true
342         ContentAsLabel        true
343 End
344
345 InsetLayout Box
346         LabelFont
347           Color               foreground
348           Size                Small
349         EndFont
350         MultiPar              true
351 End
352
353 InsetLayout Box:Frameless
354         CopyStyle Box
355         HTMLStyle
356                 div.Frameless { margin: 1em; }
357         EndHTMLStyle
358 End
359
360 InsetLayout Box:Shaded
361         CopyStyle Box
362         BgColor shaded
363         HTMLStyle
364                 div.Shaded {
365                         background-color: gray;
366                         padding: 0.5ex;
367                 }
368         EndHTMLStyle
369 End
370
371 InsetLayout Box:Boxed
372         CopyStyle Box
373         HTMLStyle
374                 div.Boxed {
375                         border: solid thick black;
376                         padding: 0.5ex;
377                 }
378         EndHTMLStyle
379 End
380
381 InsetLayout Box:Framed
382         CopyStyle Box
383         HTMLStyle
384                 div.Framed {
385                         border: solid thick black;
386                         padding: 0.5ex;
387                 }
388         EndHTMLStyle
389 End
390
391 InsetLayout Box:ovalbox
392         CopyStyle Box
393         HTMLStyle
394                 div.ovalbox {
395                         border: groove medium black;
396                         padding: 0.5ex;
397                 }
398         EndHTMLStyle
399 End
400
401 InsetLayout Box:Ovalbox
402         CopyStyle Box
403         HTMLStyle
404                 div.Ovalbox {
405                         border: ridge thick black;
406                         padding: 0.5ex;
407                 }
408         EndHTMLStyle
409 End
410
411 InsetLayout Box:Shadowbox
412         CopyStyle Box
413         HTMLStyle
414                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
415         EndHTMLStyle
416 End
417
418 InsetLayout Box:Doublebox
419         CopyStyle Box
420         HTMLStyle
421                 div.Doublebox {
422                         border: double thick black;
423                         padding: 0.5ex;
424                 }
425         EndHTMLStyle
426 End
427
428 InsetLayout Float
429         LabelFont
430           Color               collapsable
431           Size                Small
432         EndFont
433         MultiPar              true
434         HTMLStyle
435                 div.float {
436                         border: 2px solid black;
437                         text-align: center;
438                 }
439         EndHTMLStyle
440 End
441
442 InsetLayout Wrap
443         LabelFont
444           Color               collapsable
445           Size                Small
446         EndFont
447         MultiPar              true
448         RefPrefix             wrap
449         HTMLStyle
450                 div.wrap {
451                         float: right;
452                         border: 2px solid black;
453                         padding: 1ex;
454                         margin: 1ex;
455                 }
456         EndHTMLStyle
457 End
458
459 InsetLayout "Flex:URL"
460         LyXType               standard
461         Decoration            classic
462         LabelString           URL
463         ContentAsLabel        true
464         LatexName             url
465         LatexType             command
466         Requires              url
467         MultiPar              false
468         CustomPars            false
469         ForcePlain            true
470         PassThru              true
471         FreeSpacing           true
472         ForceLTR              true
473         Font
474           Family              Typewriter
475           Color               urltext
476         EndFont
477         LabelFont
478           Family              Typewriter
479           Color               urllabel
480           Size                Small
481         EndFont
482         HTMLIsBlock           false
483 End
484
485 InsetLayout Argument
486         LabelString           Argument
487         LabelFont
488           Color               collapsable
489           Size                Small
490         EndFont
491         MultiPar              false
492         ForceLocalFontSwitch  1
493 End
494
495 InsetLayout Info
496         Decoration            conglomerate
497         HTMLStyle
498                 span.info { font-family: sans-serif; }
499         EndHTMLStyle
500         HTMLTag               span
501         MultiPar              false
502 End
503
504 InsetLayout Info:menu
505         CopyStyle             Info
506         LatexType             command
507         LatexName             menuitem
508         Preamble
509           \providecommand{\menuitem}[1]{\textsf{#1}}
510         EndPreamble
511         Decoration            conglomerate
512         Font
513           Family              sans
514         EndFont
515         HTMLAttr              "class='info menu'"
516         HTMLStyle
517                 span.menu { font-family: sans-serif; }
518         EndHTMLStyle
519 End
520
521 InsetLayout Info:shortcut
522         CopyStyle             Info
523         LatexType             command
524         LatexName             shortcut
525         Preamble
526           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
527         EndPreamble
528         Decoration            conglomerate
529         Font
530           Family              sans
531         EndFont
532         HTMLAttr              "class='info shortcut'"
533         HTMLStyle
534                 span.shortcut { font-family: sans-serif; }
535         EndHTMLStyle
536 End
537
538 InsetLayout Info:shortcuts
539         CopyStyle             Info
540         LatexType             command
541         LatexName             shortcut
542         Preamble
543           \providecommand{\shortcut}[1]{\textsf{#1}}
544         EndPreamble
545         Decoration            conglomerate
546         Font
547           Family              sans
548         EndFont
549         HTMLAttr              "class='info shortcut'"
550         HTMLStyle
551                 span.shortcuts { font-family: sans-serif; }
552         EndHTMLStyle
553 End
554
555 InsetLayout Caption:Standard
556         LabelString          standard
557         LaTeXType            command
558         LatexName            caption
559         NeedProtect          1
560         MultiPar             false
561         Argument 1
562                 LabelString   "Short Title|S"
563                 Tooltip       "The caption as it appears in the list of figures/tables"
564                 InsertCotext  1
565         EndArgument
566         HTMLStyle
567                 div.float-caption {
568                         text-align: center;
569                         border: 2px solid black;
570                         padding: 1ex;
571                         margin: 1ex;
572                 }
573         EndHTMLStyle
574         HTMLAttr "class='float-caption float-caption-standard'"
575 End
576
577
578 InsetLayout Caption:LongTableNoNumber
579         CopyStyle            Caption:Standard
580         LabelString          unlabelled
581         LatexName            caption*
582         ResetArgs            1
583 End
584
585
586 InsetLayout Preview
587         LabelString           Preview
588         Decoration            minimalistic
589         MultiPar              true
590 End
591
592
593 InsetLayout Script
594         LatexType       command
595         MultiPar        false
596         ForcePlain      1
597         CustomPars      0
598         InToc           1
599         HTMLIsBlock     0
600 End
601
602
603 InsetLayout Script:superscript
604         CopyStyle       Script
605         LaTeXName       textsuperscript
606         HTMLTag         sup
607 End
608
609
610 InsetLayout Script:subscript
611         CopyStyle       Script
612         Requires        subscript
613         LaTeXName       textsubscript
614         HTMLTag         sub
615 End
616
617
618 InsetLayout PrintNomencl
619   HTMLTag h2
620 End