]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
62b5f2ffc546fc935b9d11d9d0186070d9bd24f1
[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 38
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 ListOfListings
174         # We need the [[List of Listings]] context, since "Listings" is also
175         # the name of the inset and translated differently.
176         # "Listings[[List of Listings]]" is the name of the "List of listings"
177         # ("Listings" is the predefined english name) in listings.sty, so it
178         # must be used here as well.
179         BabelPreamble
180                 \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}
181         EndBabelPreamble
182         # The command does not need to be defined in LangPreamble, since
183         # listings.sty does that already. However it needs to be redefined
184         # in order to be used for non-english single-language documents.
185         LangPreamble
186                 \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
187         EndLangPreamble
188 End
189
190 InsetLayout IncludeListings
191         BabelPreamble
192                 \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
193         EndBabelPreamble
194         # The command does not need to be defined in LangPreamble, since
195         # listings.sty does that already. However it needs to be redefined
196         # in order to be used for non-english single-language documents.
197         LangPreamble
198                 \renewcommand{\lstlistingname}{_(Listing)}
199         EndLangPreamble
200 End
201
202 InsetLayout Listings
203         CopyStyle IncludeListings
204         LabelString           Listings[[inset]]
205         LatexType             none
206         Decoration            minimalistic
207         Font
208           Color               foreground
209           Family              typewriter
210         EndFont
211         LabelFont
212           Color               foreground
213           Size                Small
214         EndFont
215         BgColor               listingsbg
216         MultiPar              true
217         PassThru              true
218         ParbreakIsNewline     true
219         KeepEmpty             true
220         FreeSpacing           true
221         ForceLTR              true
222         RefPrefix             lst
223 End
224
225 InsetLayout Branch
226         Decoration            classic
227         LabelFont
228           Color               branchlabel
229           Size                Small
230         EndFont
231         MultiPar              true
232         InToc                 true
233         HTMLIsBlock           false
234 End
235
236 InsetLayout Index
237         LabelString           Idx
238         Decoration            classic
239         Font
240           Size                Small
241         EndFont
242         LabelFont
243           Color               indexlabel
244           Size                Small
245         EndFont
246         MultiPar              false
247         CustomPars            false
248         ForcePlain            true
249         ContentAsLabel        true
250 End
251
252 InsetLayout Box
253         LabelFont
254           Color               foreground
255           Size                Small
256         EndFont
257         MultiPar              true
258 End
259
260 InsetLayout Box:Frameless
261         CopyStyle Box
262         HTMLStyle
263                 div.Frameless { margin: 1em; }
264         EndHTMLStyle
265 End
266
267 InsetLayout Box:Shaded
268         CopyStyle Box
269         BgColor shaded
270         HTMLStyle
271                 div.Shaded {
272                         background-color: gray;
273                         padding: 0.5ex;
274                 }
275         EndHTMLStyle
276 End
277
278 InsetLayout Box:Boxed
279         CopyStyle Box
280         HTMLStyle
281                 div.Boxed {
282                         border: solid thick black;
283                         padding: 0.5ex;
284                 }
285         EndHTMLStyle
286 End
287
288 InsetLayout Box:Framed
289         CopyStyle Box
290         HTMLStyle
291                 div.Framed {
292                         border: solid thick black;
293                         padding: 0.5ex;
294                 }
295         EndHTMLStyle
296 End
297
298 InsetLayout Box:ovalbox
299         CopyStyle Box
300         HTMLStyle
301                 div.ovalbox {
302                         border: groove medium black;
303                         padding: 0.5ex;
304                 }
305         EndHTMLStyle
306 End
307
308 InsetLayout Box:Ovalbox
309         CopyStyle Box
310         HTMLStyle
311                 div.Ovalbox {
312                         border: ridge thick black;
313                         padding: 0.5ex;
314                 }
315         EndHTMLStyle
316 End
317
318 InsetLayout Box:Shadowbox
319         CopyStyle Box
320         HTMLStyle
321                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
322         EndHTMLStyle
323 End
324
325 InsetLayout Box:Doublebox
326         CopyStyle Box
327         HTMLStyle
328                 div.Doublebox {
329                         border: double thick black;
330                         padding: 0.5ex;
331                 }
332         EndHTMLStyle
333 End
334
335 InsetLayout Float
336         LabelFont
337           Color               collapsable
338           Size                Small
339         EndFont
340         MultiPar              true
341         HTMLStyle
342                 div.float {
343                         border: 2px solid black;
344                         text-align: center;
345                 }
346         EndHTMLStyle
347 End
348
349 InsetLayout Wrap
350         LabelFont
351           Color               collapsable
352           Size                Small
353         EndFont
354         MultiPar              true
355         RefPrefix             wrap
356         HTMLStyle
357                 div.wrap {
358                         float: right;
359                         border: 2px solid black;
360                         padding: 1ex;
361                         margin: 1ex;
362                 }
363         EndHTMLStyle
364 End
365
366 InsetLayout "Flex:URL"
367         LyXType               standard
368         Decoration            classic
369         LabelString           URL
370         ContentAsLabel        true
371         LatexName             url
372         LatexType             command
373         Requires              url
374         MultiPar              false
375         CustomPars            false
376         ForcePlain            true
377         PassThru              true
378         FreeSpacing           true
379         ForceLTR              true
380         Font
381           Family              Typewriter
382           Color               urltext
383         EndFont
384         LabelFont
385           Family              Typewriter
386           Color               urllabel
387           Size                Small
388         EndFont
389         HTMLIsBlock           false
390 End
391
392 InsetLayout Argument
393         LabelString           opt
394         LabelFont
395           Color               collapsable
396           Size                Small
397         EndFont
398         MultiPar              false
399 End
400
401 InsetLayout Info
402         Decoration            conglomerate
403         HTMLStyle
404                 span.info { font-family: sans-serif; }
405         EndHTMLStyle
406         HTMLTag               span
407         MultiPar              false
408 End
409
410 InsetLayout Info:menu
411         CopyStyle             Info
412         LatexType             command
413         LatexName             menuitem
414         Preamble
415           \providecommand{\menuitem}[1]{\textsf{#1}}
416         EndPreamble
417         Decoration            conglomerate
418         Font
419           Family              sans
420         EndFont
421         HTMLAttr              "class='info menu'"
422         HTMLStyle
423                 span.menu { font-family: sans-serif; }
424         EndHTMLStyle
425 End
426
427 InsetLayout Info:shortcut
428         CopyStyle             Info
429         LatexType             command
430         LatexName             shortcut
431         Preamble
432           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
433         EndPreamble
434         Decoration            conglomerate
435         Font
436           Family              sans
437         EndFont
438         HTMLAttr              "class='info shortcut'"
439         HTMLStyle
440                 span.shortcut { font-family: sans-serif; }
441         EndHTMLStyle
442 End
443
444 InsetLayout Info:shortcuts
445         CopyStyle             Info
446         LatexType             command
447         LatexName             shortcut
448         Preamble
449           \providecommand{\shortcut}[1]{\textsf{#1}}
450         EndPreamble
451         Decoration            conglomerate
452         Font
453           Family              sans
454         EndFont
455         HTMLAttr              "class='info shortcut'"
456         HTMLStyle
457                 span.shortcuts { font-family: sans-serif; }
458         EndHTMLStyle
459 End
460
461 InsetLayout Caption
462         HTMLStyle
463                 div.float-caption {
464                         text-align: center;
465                         border: 2px solid black;
466                         padding: 1ex;
467                         margin: 1ex;
468                 }
469         EndHTMLStyle
470 End
471
472
473 InsetLayout Preview
474         LabelString           Preview
475         Decoration            minimalistic
476         MultiPar              true
477 End
478
479 InsetLayout Script:superscript
480         LyXType standard
481         LatexType command
482         LaTeXName textsuperscript
483         MultiPar false
484         HTMLTag sup
485         HTMLIsBlock 0
486 End
487
488 InsetLayout Script:subscript
489         Requires subscript
490         LyXType standard
491         LatexType command
492         LaTeXName textsubscript
493         MultiPar false
494         HTMLTag sub
495         HTMLIsBlock 0
496 End