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