]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
europeCV: complete revision of layout and example file
[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 41
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           Argument
404         LabelFont
405           Color               collapsable
406           Size                Small
407         EndFont
408         MultiPar              false
409         ForceLocalFontSwitch  1
410 End
411
412 InsetLayout Info
413         Decoration            conglomerate
414         HTMLStyle
415                 span.info { font-family: sans-serif; }
416         EndHTMLStyle
417         HTMLTag               span
418         MultiPar              false
419 End
420
421 InsetLayout Info:menu
422         CopyStyle             Info
423         LatexType             command
424         LatexName             menuitem
425         Preamble
426           \providecommand{\menuitem}[1]{\textsf{#1}}
427         EndPreamble
428         Decoration            conglomerate
429         Font
430           Family              sans
431         EndFont
432         HTMLAttr              "class='info menu'"
433         HTMLStyle
434                 span.menu { font-family: sans-serif; }
435         EndHTMLStyle
436 End
437
438 InsetLayout Info:shortcut
439         CopyStyle             Info
440         LatexType             command
441         LatexName             shortcut
442         Preamble
443           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
444         EndPreamble
445         Decoration            conglomerate
446         Font
447           Family              sans
448         EndFont
449         HTMLAttr              "class='info shortcut'"
450         HTMLStyle
451                 span.shortcut { font-family: sans-serif; }
452         EndHTMLStyle
453 End
454
455 InsetLayout Info:shortcuts
456         CopyStyle             Info
457         LatexType             command
458         LatexName             shortcut
459         Preamble
460           \providecommand{\shortcut}[1]{\textsf{#1}}
461         EndPreamble
462         Decoration            conglomerate
463         Font
464           Family              sans
465         EndFont
466         HTMLAttr              "class='info shortcut'"
467         HTMLStyle
468                 span.shortcuts { font-family: sans-serif; }
469         EndHTMLStyle
470 End
471
472 InsetLayout Caption
473         LaTeXType            command
474         LatexName            caption
475         Argument 1
476                 LabelString   "Short Title|S"
477                 Tooltip       "The caption as it appears in the list of figures/tables"
478         EndArgument
479         HTMLStyle
480                 div.float-caption {
481                         text-align: center;
482                         border: 2px solid black;
483                         padding: 1ex;
484                         margin: 1ex;
485                 }
486         EndHTMLStyle
487 End
488
489
490 InsetLayout Preview
491         LabelString           Preview
492         Decoration            minimalistic
493         MultiPar              true
494 End
495
496
497 InsetLayout Script
498         LatexType       command
499         MultiPar        false
500         ForcePlain      1
501         CustomPars      0
502         InToc           1
503         HTMLIsBlock     0
504 End
505
506
507 InsetLayout Script:superscript
508         CopyStyle       Script
509         LaTeXName       textsuperscript
510         HTMLTag         sup
511 End
512
513 InsetLayout Script:subscript
514         CopyStyle       Script
515         Requires        subscript
516         LaTeXName       textsubscript
517         HTMLTag         sub
518 End