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