]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
Remove debugging code.
[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 60
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         HTMLStyle
317                 div.float-listings {
318                         border: 2px solid black;
319                         padding: 1ex;
320                         margin: 1ex;
321                 }
322                 div.listings-caption {
323                         text-align: center;
324                         border: 2px solid black;
325                         padding: 1ex;
326                         margin: 1ex;
327         }
328         EndHTMLStyle
329 End
330
331 InsetLayout Branch
332         Decoration            classic
333         LabelFont
334           Color               branchlabel
335           Size                Small
336         EndFont
337         MultiPar              true
338         InToc                 true
339         HTMLIsBlock           false
340 End
341
342 InsetLayout Index
343         LabelString           Idx
344         Decoration            classic
345         Font
346           Size                Small
347         EndFont
348         LabelFont
349           Color               indexlabel
350           Size                Small
351         EndFont
352         MultiPar              false
353         CustomPars            false
354         ForcePlain            true
355         ContentAsLabel        true
356 End
357
358 InsetLayout Box
359         LabelFont
360           Color               foreground
361           Size                Small
362         EndFont
363         MultiPar              true
364 End
365
366 InsetLayout Box:Frameless
367         CopyStyle Box
368         HTMLStyle
369                 div.Frameless { margin: 1em; }
370         EndHTMLStyle
371 End
372
373 InsetLayout Box:Shaded
374         CopyStyle Box
375         BgColor shaded
376         HTMLStyle
377                 div.Shaded {
378                         background-color: gray;
379                         padding: 0.5ex;
380                 }
381         EndHTMLStyle
382 End
383
384 InsetLayout Box:Boxed
385         CopyStyle Box
386         HTMLStyle
387                 div.Boxed {
388                         border: solid thick black;
389                         padding: 0.5ex;
390                 }
391         EndHTMLStyle
392 End
393
394 InsetLayout Box:Framed
395         CopyStyle Box
396         HTMLStyle
397                 div.Framed {
398                         border: solid thick black;
399                         padding: 0.5ex;
400                 }
401         EndHTMLStyle
402 End
403
404 InsetLayout Box:ovalbox
405         CopyStyle Box
406         HTMLStyle
407                 div.ovalbox {
408                         border: groove medium black;
409                         padding: 0.5ex;
410                 }
411         EndHTMLStyle
412 End
413
414 InsetLayout Box:Ovalbox
415         CopyStyle Box
416         HTMLStyle
417                 div.Ovalbox {
418                         border: ridge thick black;
419                         padding: 0.5ex;
420                 }
421         EndHTMLStyle
422 End
423
424 InsetLayout Box:Shadowbox
425         CopyStyle Box
426         HTMLStyle
427                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
428         EndHTMLStyle
429 End
430
431 InsetLayout Box:Doublebox
432         CopyStyle Box
433         HTMLStyle
434                 div.Doublebox {
435                         border: double thick black;
436                         padding: 0.5ex;
437                 }
438         EndHTMLStyle
439 End
440
441 InsetLayout Float
442         LabelFont
443           Color               collapsable
444           Size                Small
445         EndFont
446         MultiPar              true
447         HTMLStyle
448                 div.float {
449                         border: 2px solid black;
450                         text-align: center;
451                 }
452         EndHTMLStyle
453 End
454
455 InsetLayout Wrap
456         LabelFont
457           Color               collapsable
458           Size                Small
459         EndFont
460         MultiPar              true
461         RefPrefix             wrap
462         HTMLStyle
463                 div.wrap {
464                         float: right;
465                         border: 2px solid black;
466                         padding: 1ex;
467                         margin: 1ex;
468                 }
469         EndHTMLStyle
470 End
471
472 InsetLayout "Flex:URL"
473         LyXType               standard
474         Decoration            classic
475         LabelString           URL
476         ContentAsLabel        true
477         LatexName             url
478         LatexType             command
479         Requires              url
480         MultiPar              false
481         CustomPars            false
482         ForcePlain            true
483         PassThru              true
484         FreeSpacing           true
485         ForceLTR              true
486         Font
487           Family              Typewriter
488           Color               urltext
489         EndFont
490         LabelFont
491           Family              Typewriter
492           Color               urllabel
493           Size                Small
494         EndFont
495         HTMLIsBlock           false
496 End
497
498 InsetLayout Argument
499         LabelString           Argument
500         LabelFont
501           Color               collapsable
502           Size                Small
503         EndFont
504         MultiPar              false
505         ForceLocalFontSwitch  1
506 End
507
508 InsetLayout Info
509         Decoration            conglomerate
510         HTMLStyle
511                 span.info { font-family: sans-serif; }
512         EndHTMLStyle
513         HTMLTag               span
514         MultiPar              false
515 End
516
517 InsetLayout Info:menu
518         CopyStyle             Info
519         LatexType             command
520         LatexName             menuitem
521         Preamble
522           \providecommand{\menuitem}[1]{\textsf{#1}}
523         EndPreamble
524         Decoration            conglomerate
525         Font
526           Family              sans
527         EndFont
528         HTMLAttr              "class='info menu'"
529         HTMLStyle
530                 span.menu { font-family: sans-serif; }
531         EndHTMLStyle
532 End
533
534 InsetLayout Info:shortcut
535         CopyStyle             Info
536         LatexType             command
537         LatexName             shortcut
538         Preamble
539           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
540         EndPreamble
541         Decoration            conglomerate
542         Font
543           Family              sans
544         EndFont
545         HTMLAttr              "class='info shortcut'"
546         HTMLStyle
547                 span.shortcut { font-family: sans-serif; }
548         EndHTMLStyle
549 End
550
551 InsetLayout Info:shortcuts
552         CopyStyle             Info
553         LatexType             command
554         LatexName             shortcut
555         Preamble
556           \providecommand{\shortcut}[1]{\textsf{#1}}
557         EndPreamble
558         Decoration            conglomerate
559         Font
560           Family              sans
561         EndFont
562         HTMLAttr              "class='info shortcut'"
563         HTMLStyle
564                 span.shortcuts { font-family: sans-serif; }
565         EndHTMLStyle
566 End
567
568 InsetLayout Caption:Standard
569         LabelString          standard
570         LaTeXType            command
571         LatexName            caption
572         NeedProtect          1
573         MultiPar             false
574         Argument 1
575                 LabelString   "Short Title|S"
576                 Tooltip       "The caption as it appears in the list of figures/tables"
577                 InsertCotext  1
578         EndArgument
579         HTMLStyle
580                 div.float-caption {
581                         text-align: center;
582                         border: 2px solid black;
583                         padding: 1ex;
584                         margin: 1ex;
585                 }
586         EndHTMLStyle
587         HTMLAttr "class='float-caption float-caption-standard'"
588 End
589
590
591 InsetLayout Caption:Unnumbered
592         CopyStyle            Caption:Standard
593         LabelString          unlabelled
594         LatexName            caption*
595         ResetArgs            1
596 End
597
598
599 InsetLayout Preview
600         LabelString           Preview
601         Decoration            minimalistic
602         MultiPar              true
603 End
604
605
606 InsetLayout Script
607         LatexType       command
608         MultiPar        false
609         ForcePlain      1
610         CustomPars      0
611         InToc           1
612         HTMLIsBlock     0
613 End
614
615
616 InsetLayout Script:superscript
617         CopyStyle       Script
618         LaTeXName       textsuperscript
619         HTMLTag         sup
620 End
621
622
623 InsetLayout Script:subscript
624         CopyStyle       Script
625         Requires        subscript
626         LaTeXName       textsubscript
627         HTMLTag         sub
628 End
629
630
631 InsetLayout PrintNomencl
632   HTMLTag h2
633 End