]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
Extend unicodesymbols force flag
[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 44
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         HTMLTag               pre
234 End
235
236 InsetLayout Branch
237         Decoration            classic
238         LabelFont
239           Color               branchlabel
240           Size                Small
241         EndFont
242         MultiPar              true
243         InToc                 true
244         HTMLIsBlock           false
245 End
246
247 InsetLayout Index
248         LabelString           Idx
249         Decoration            classic
250         Font
251           Size                Small
252         EndFont
253         LabelFont
254           Color               indexlabel
255           Size                Small
256         EndFont
257         MultiPar              false
258         CustomPars            false
259         ForcePlain            true
260         ContentAsLabel        true
261 End
262
263 InsetLayout Box
264         LabelFont
265           Color               foreground
266           Size                Small
267         EndFont
268         MultiPar              true
269 End
270
271 InsetLayout Box:Frameless
272         CopyStyle Box
273         HTMLStyle
274                 div.Frameless { margin: 1em; }
275         EndHTMLStyle
276 End
277
278 InsetLayout Box:Shaded
279         CopyStyle Box
280         BgColor shaded
281         HTMLStyle
282                 div.Shaded {
283                         background-color: gray;
284                         padding: 0.5ex;
285                 }
286         EndHTMLStyle
287 End
288
289 InsetLayout Box:Boxed
290         CopyStyle Box
291         HTMLStyle
292                 div.Boxed {
293                         border: solid thick black;
294                         padding: 0.5ex;
295                 }
296         EndHTMLStyle
297 End
298
299 InsetLayout Box:Framed
300         CopyStyle Box
301         HTMLStyle
302                 div.Framed {
303                         border: solid thick black;
304                         padding: 0.5ex;
305                 }
306         EndHTMLStyle
307 End
308
309 InsetLayout Box:ovalbox
310         CopyStyle Box
311         HTMLStyle
312                 div.ovalbox {
313                         border: groove medium black;
314                         padding: 0.5ex;
315                 }
316         EndHTMLStyle
317 End
318
319 InsetLayout Box:Ovalbox
320         CopyStyle Box
321         HTMLStyle
322                 div.Ovalbox {
323                         border: ridge thick black;
324                         padding: 0.5ex;
325                 }
326         EndHTMLStyle
327 End
328
329 InsetLayout Box:Shadowbox
330         CopyStyle Box
331         HTMLStyle
332                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
333         EndHTMLStyle
334 End
335
336 InsetLayout Box:Doublebox
337         CopyStyle Box
338         HTMLStyle
339                 div.Doublebox {
340                         border: double thick black;
341                         padding: 0.5ex;
342                 }
343         EndHTMLStyle
344 End
345
346 InsetLayout Float
347         LabelFont
348           Color               collapsable
349           Size                Small
350         EndFont
351         MultiPar              true
352         HTMLStyle
353                 div.float {
354                         border: 2px solid black;
355                         text-align: center;
356                 }
357         EndHTMLStyle
358 End
359
360 InsetLayout Wrap
361         LabelFont
362           Color               collapsable
363           Size                Small
364         EndFont
365         MultiPar              true
366         RefPrefix             wrap
367         HTMLStyle
368                 div.wrap {
369                         float: right;
370                         border: 2px solid black;
371                         padding: 1ex;
372                         margin: 1ex;
373                 }
374         EndHTMLStyle
375 End
376
377 InsetLayout "Flex:URL"
378         LyXType               standard
379         Decoration            classic
380         LabelString           URL
381         ContentAsLabel        true
382         LatexName             url
383         LatexType             command
384         Requires              url
385         MultiPar              false
386         CustomPars            false
387         ForcePlain            true
388         PassThru              true
389         FreeSpacing           true
390         ForceLTR              true
391         ResetsFont            false
392         Font
393           Family              Typewriter
394           Color               urltext
395         EndFont
396         LabelFont
397           Family              Typewriter
398           Color               urllabel
399           Size                Small
400         EndFont
401         HTMLIsBlock           false
402 End
403
404 InsetLayout Argument
405         LabelString           Argument
406         LabelFont
407           Color               collapsable
408           Size                Small
409         EndFont
410         MultiPar              false
411         ForceLocalFontSwitch  1
412 End
413
414 InsetLayout Info
415         Decoration            conglomerate
416         HTMLStyle
417                 span.info { font-family: sans-serif; }
418         EndHTMLStyle
419         HTMLTag               span
420         MultiPar              false
421 End
422
423 InsetLayout Info:menu
424         CopyStyle             Info
425         LatexType             command
426         LatexName             menuitem
427         Preamble
428           \providecommand{\menuitem}[1]{\textsf{#1}}
429         EndPreamble
430         Decoration            conglomerate
431         Font
432           Family              sans
433         EndFont
434         HTMLAttr              "class='info menu'"
435         HTMLStyle
436                 span.menu { font-family: sans-serif; }
437         EndHTMLStyle
438 End
439
440 InsetLayout Info:shortcut
441         CopyStyle             Info
442         LatexType             command
443         LatexName             shortcut
444         Preamble
445           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
446         EndPreamble
447         Decoration            conglomerate
448         Font
449           Family              sans
450         EndFont
451         HTMLAttr              "class='info shortcut'"
452         HTMLStyle
453                 span.shortcut { font-family: sans-serif; }
454         EndHTMLStyle
455 End
456
457 InsetLayout Info:shortcuts
458         CopyStyle             Info
459         LatexType             command
460         LatexName             shortcut
461         Preamble
462           \providecommand{\shortcut}[1]{\textsf{#1}}
463         EndPreamble
464         Decoration            conglomerate
465         Font
466           Family              sans
467         EndFont
468         HTMLAttr              "class='info shortcut'"
469         HTMLStyle
470                 span.shortcuts { font-family: sans-serif; }
471         EndHTMLStyle
472 End
473
474 InsetLayout Caption:Standard
475         LabelString          standard
476         LaTeXType            command
477         LatexName            caption
478         Argument 1
479                 LabelString   "Short Title|S"
480                 Tooltip       "The caption as it appears in the list of figures/tables"
481         EndArgument
482         HTMLStyle
483                 div.float-caption {
484                         text-align: center;
485                         border: 2px solid black;
486                         padding: 1ex;
487                         margin: 1ex;
488                 }
489         EndHTMLStyle
490         HTMLAttr "class='float-caption float-caption-standard'"
491 End
492
493
494 InsetLayout Preview
495         LabelString           Preview
496         Decoration            minimalistic
497         MultiPar              true
498 End
499
500
501 InsetLayout Script
502         LatexType       command
503         MultiPar        false
504         ForcePlain      1
505         CustomPars      0
506         InToc           1
507         HTMLIsBlock     0
508 End
509
510
511 InsetLayout Script:superscript
512         CopyStyle       Script
513         LaTeXName       textsuperscript
514         HTMLTag         sup
515 End
516
517 InsetLayout Script:subscript
518         CopyStyle       Script
519         Requires        subscript
520         LaTeXName       textsubscript
521         HTMLTag         sub
522 End