]> git.lyx.org Git - features.git/blob - lib/layouts/stdinsets.inc
28a08ab99619cd53e89cfeb31cbc79f517976de4
[features.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 36
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 Listings
174         LabelString           Listings
175         LatexType             none
176         Decoration            minimalistic
177         Font
178           Color               foreground
179           Family              typewriter
180         EndFont
181         LabelFont
182           Color               foreground
183           Size                Small
184         EndFont
185         BgColor               listingsbg
186         MultiPar              true
187         PassThru              true
188         ParbreakIsNewline     true
189         KeepEmpty             true
190         FreeSpacing           true
191         ForceLTR              true
192         RefPrefix             lst
193 End
194
195 InsetLayout Branch
196         Decoration            classic
197         LabelFont
198           Color               branchlabel
199           Size                Small
200         EndFont
201         MultiPar              true
202         InToc                 true
203         HTMLIsBlock           false
204 End
205
206 InsetLayout Index
207         LabelString           Idx
208         Decoration            classic
209         Font
210           Size                Small
211         EndFont
212         LabelFont
213           Color               indexlabel
214           Size                Small
215         EndFont
216         MultiPar              false
217         CustomPars            false
218         ForcePlain            true
219         ContentAsLabel        true
220 End
221
222 InsetLayout Box
223         LabelFont
224           Color               foreground
225           Size                Small
226         EndFont
227         MultiPar              true
228 End
229
230 InsetLayout Box:Frameless
231         CopyStyle Box
232         HTMLStyle
233                 div.Frameless { margin: 1em; }
234         EndHTMLStyle
235 End
236
237 InsetLayout Box:Shaded
238         CopyStyle Box
239         BgColor shaded
240         HTMLStyle
241                 div.Shaded {
242                         background-color: gray;
243                         padding: 0.5ex;
244                 }
245         EndHTMLStyle
246 End
247
248 InsetLayout Box:Boxed
249         CopyStyle Box
250         HTMLStyle
251                 div.Boxed {
252                         border: solid thick black;
253                         padding: 0.5ex;
254                 }
255         EndHTMLStyle
256 End
257
258 InsetLayout Box:Framed
259         CopyStyle Box
260         HTMLStyle
261                 div.Framed {
262                         border: solid thick black;
263                         padding: 0.5ex;
264                 }
265         EndHTMLStyle
266 End
267
268 InsetLayout Box:ovalbox
269         CopyStyle Box
270         HTMLStyle
271                 div.ovalbox {
272                         border: groove medium black;
273                         padding: 0.5ex;
274                 }
275         EndHTMLStyle
276 End
277
278 InsetLayout Box:Ovalbox
279         CopyStyle Box
280         HTMLStyle
281                 div.Ovalbox {
282                         border: ridge thick black;
283                         padding: 0.5ex;
284                 }
285         EndHTMLStyle
286 End
287
288 InsetLayout Box:Shadowbox
289         CopyStyle Box
290         HTMLStyle
291                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
292         EndHTMLStyle
293 End
294
295 InsetLayout Box:Doublebox
296         CopyStyle Box
297         HTMLStyle
298                 div.Doublebox {
299                         border: double thick black;
300                         padding: 0.5ex;
301                 }
302         EndHTMLStyle
303 End
304
305 InsetLayout Float
306         LabelFont
307           Color               collapsable
308           Size                Small
309         EndFont
310         MultiPar              true
311         HTMLStyle
312                 div.float {
313                         border: 2px solid black;
314                         text-align: center;
315                 }
316         EndHTMLStyle
317 End
318
319 InsetLayout Wrap
320         LabelFont
321           Color               collapsable
322           Size                Small
323         EndFont
324         MultiPar              true
325         RefPrefix             wrap
326         HTMLStyle
327                 div.wrap {
328                         float: right;
329                         border: 2px solid black;
330                         padding: 1ex;
331                         margin: 1ex;
332                 }
333         EndHTMLStyle
334 End
335
336 InsetLayout "Flex:URL"
337         LyXType               standard
338         Decoration            classic
339         LabelString           URL
340         ContentAsLabel        true
341         LatexName             url
342         LatexType             command
343         Requires              url
344         MultiPar              false
345         CustomPars            false
346         ForcePlain            true
347         PassThru              true
348         FreeSpacing           true
349         ForceLTR              true
350         Font
351           Family              Typewriter
352           Color               urltext
353         EndFont
354         LabelFont
355           Family              Typewriter
356           Color               urllabel
357           Size                Small
358         EndFont
359         HTMLIsBlock           false
360 End
361
362 InsetLayout Argument
363         LabelString           opt
364         LabelFont
365           Color               collapsable
366           Size                Small
367         EndFont
368         MultiPar              false
369 End
370
371 InsetLayout Info
372         Decoration            conglomerate
373         HTMLStyle
374                 span.info { font-family: sans-serif; }
375         EndHTMLStyle
376         HTMLTag               span
377         MultiPar              false
378 End
379
380 InsetLayout Info:menu
381         CopyStyle             Info
382         LatexType             command
383         LatexName             menuitem
384         Preamble
385           \providecommand{\menuitem}[1]{\textsf{#1}}
386         EndPreamble
387         Decoration            conglomerate
388         Font
389           Family              sans
390         EndFont
391         HTMLAttr              "class='info menu'"
392         HTMLStyle
393                 span.menu { font-family: sans-serif; }
394         EndHTMLStyle
395 End
396
397 InsetLayout Info:shortcut
398         CopyStyle             Info
399         LatexType             command
400         LatexName             shortcut
401         Preamble
402           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
403         EndPreamble
404         Decoration            conglomerate
405         Font
406           Family              sans
407         EndFont
408         HTMLAttr              "class='info shortcut'"
409         HTMLStyle
410                 span.shortcut { font-family: sans-serif; }
411         EndHTMLStyle
412 End
413
414 InsetLayout Info:shortcuts
415         CopyStyle             Info
416         LatexType             command
417         LatexName             shortcut
418         Preamble
419           \providecommand{\shortcut}[1]{\textsf{#1}}
420         EndPreamble
421         Decoration            conglomerate
422         Font
423           Family              sans
424         EndFont
425         HTMLAttr              "class='info shortcut'"
426         HTMLStyle
427                 span.shortcuts { font-family: sans-serif; }
428         EndHTMLStyle
429 End
430
431 InsetLayout Caption
432         HTMLStyle
433                 div.float-caption {
434                         text-align: center;
435                         border: 2px solid black;
436                         padding: 1ex;
437                         margin: 1ex;
438                 }
439         EndHTMLStyle
440 End
441
442
443 InsetLayout Preview
444         LabelString           Preview
445         Decoration            minimalistic
446         MultiPar              true
447 End