]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
f386af000a2fa89d01cd654c6a01d428a22e42c5
[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 # More detailled format description is available in the customization manual
6 # FIXME: create the contents in the manual and put the link here.  
7 #
8 #InsetLayout <string identifier used by LyX>
9 #       LabelString           used for the inset decoration (either the inset button
10 #                             or the text underneath the inset).
11 #       LatexType             associated LateX type: command, environment, or none.
12 #       LatexName             associated LateX command.
13 #       BgColor               Color of the inset background within LyX.
14 #                         FIXME: link to a doc file describing the different
15 #                         color codes as defined in 'ColorCode.h'
16 #       Font                  Nothing to put here, below are descriptions of the different
17 #                         allowable adjustments for the font used to draw the text
18 #                         appearing within the inset text. All these items are optional.
19 #         Color               Color of text
20 #         Size                Font size of the textallowed value: Small, Smaller, ...
21 #                         FIXME defined in FontSize in FontEnums.h
22 #         Family              FIXME defined in FontFamily in FontEnums.h
23 #         Shape               FIXME defined in FontShape in FontEnums.h
24 #         Series              FIXME defined in FontSeries in FontEnums.h
25 #         Misc                FIXME defined in FontMisc in FontEnums.h
26 #       EndFont               Nothing to put here, it's just a markup to indicate that we are
27 #                         finished with the Font definition.
28 #       LabelFont             Nothing to put here, below are descriptions of the different
29 #                         allowable adjustments for the font used to draw the text
30 #                         appearing within the inset decoration. All these items are
31 #                         optional.
32 #         Color               see definition above (in the Font node).
33 #         Size                see definition above (in the Font node).
34 #
35 #       EndFont               Nothing to put here, it's just a markup to indicate that we are
36 #                         finished with the LabelFont definition.
37 #       MultiPar              Indicates that multiple paragraphs are allowed within the inset
38 #                         or not. Defaults to false. Sets CustomPars, as well, to the same
39 #                         value, and sets ForcePlain to the opposite value. If you want
40 #                         those to be different, then, you must set them after you set 
41 #                         MultiPar.
42 # CustomPars            Whether to allow the use of the Paragraph Settings dialog. Default is
43 #                         false.
44 # ForcePlain            Whether to force the PlainLayout. Default is true.
45 #       Decoration:           Classic, Minimalistic, Conglomerate. Decoration styles
46 #       PassThru              Do not do various LaTeX conversions, like the phrases
47 #                               LaTeX, LyX, quote commands, etc.
48 #       KeepEmpty             Do not delete empty paragraphs (?)
49 #       FreeSpacing           Preserve multiple spaces etc.
50 #       ForceLTR              Force the "latex" language, leading to Left-to-Right
51 #                               (latin) output, e.g., in ERT or URL. A kludge.
52 #       Requires              Require a given (supported) feature. Multiple features must
53 #                         be comma-separated.
54 #End
55
56 Format 19
57
58 Provides stdinsets 1
59
60 InsetLayout Marginal
61         LabelString           margin
62         LatexType             command
63         LatexName             marginpar
64         Font
65           Size                Small
66         EndFont
67         LabelFont
68           Color               marginlabel
69           Size                Small
70         EndFont
71         MultiPar              true
72         NeedProtect           true
73         HTMLStyle
74                 div.marginal {
75                         border: 2px solid black; 
76                         padding: 1ex; 
77                         margin: 1ex; 
78                         background-color: #F0F0F0; 
79                         float:right;
80                         font-size: small;
81                         font-weight: medium;
82                         font-family: serif;
83                         font-variant: normal;
84                         font-style: normal;
85                 }
86         EndHTMLStyle
87 End
88
89 InsetLayout Foot
90         LabelString           foot
91         Counter               footnote
92         Font
93           Size                Small
94         EndFont
95         LabelFont
96           Color               footlabel
97           Size                Small
98         EndFont
99         MultiPar              true
100         HTMLLabel             \arabic{footnote}
101         HTMLInnerTag          div
102         HTMLStyle
103                 span.foot_label {
104                         vertical-align: super;
105                         font-size: smaller;
106                         font-weight: bold;
107                         text-decoration: underline;
108                 }
109                 div.foot { 
110                         display: inline; 
111                         font-size: small;
112                         font-weight: medium;
113                         font-family: serif;
114                         font-variant: normal;
115                         font-style: normal;
116                 }
117                 div.foot_inner { display: none; }
118                 div.foot:hover div.foot_inner { 
119                         display: block; 
120                         border: 1px double black; 
121                         margin: 0em 1em;
122                         padding: 1em;
123                 }
124         EndHTMLStyle
125 End
126
127 InsetLayout Note:Comment
128         LabelString           comment
129         LatexType             environment
130         LatexName             comment
131         BgColor               commentbg
132         LabelFont
133           Color               comment
134           Size                Small
135         EndFont
136         MultiPar              true
137         HTMLTag               !--
138         HTMLIsBlock           false
139 End
140
141
142 InsetLayout Note:Note
143         LabelString           note
144         LatexType             command
145         LatexName             note
146         BgColor               notebg
147         LabelFont
148           Color               note
149           Size                Small
150         EndFont
151         MultiPar              true
152         HTMLIsBlock           false
153 # FIXME HTML Need CSS
154 End
155
156
157 InsetLayout Note:Greyedout
158         LabelString           greyedout
159         LatexType             environment
160         LatexName             lyxgreyedout
161         BgColor               greyedoutbg
162         LabelFont
163           Color               greyedout
164           Size                Small
165         EndFont
166         MultiPar              true
167         HTMLStyle
168                 div.note_greyedout { 
169                         display: inline;
170                         background-color: #A0A0A0; 
171                         padding: 0.5ex;
172                         border: 1px black solid;
173                 }
174         EndHTMLStyle
175         HTMLIsBlock           false
176 End
177
178 InsetLayout ERT
179         LabelString           ERT
180         LatexType             none
181         Decoration            minimalistic
182         Font
183           Color               latex
184           Family              typewriter
185         EndFont
186         LabelFont
187           Color               latex
188           Size                Small
189         EndFont
190         MultiPar              true
191         CustomPars            false
192         ForcePlain            true
193         PassThru              true
194         KeepEmpty             true
195         FreeSpacing           true
196         ForceLTR              true
197 End
198
199 InsetLayout Phantom
200         Decoration            minimalistic
201         Font
202           Color               phantomtext
203         EndFont
204         CustomPars            false
205         ForcePlain            true
206 End
207
208 InsetLayout Listings
209         LabelString           Listings
210         LatexType             none
211         Decoration            minimalistic
212         Font
213           Color               foreground
214           Family              typewriter
215         EndFont
216         LabelFont
217           Color               foreground
218           Size                Small
219         EndFont
220         BgColor               listingsbg
221         MultiPar              true
222         PassThru              true
223         KeepEmpty             true
224         FreeSpacing           true
225         ForceLTR              true
226 End
227
228 InsetLayout Branch
229         Decoration            classic
230         LabelFont
231           Color               branchlabel
232           Size                Small
233         EndFont
234         MultiPar              true
235         InToc                 true
236         HTMLIsBlock           false
237 End
238
239 InsetLayout Index
240         LabelString           Idx
241         Decoration            classic
242         Font
243           Size                Small
244         EndFont
245         LabelFont
246           Color               indexlabel
247           Size                Small
248         EndFont
249         MultiPar              false
250         CustomPars            false
251         ForcePlain            true
252 End
253
254 InsetLayout Box
255         LabelFont
256           Color               foreground
257           Size                Small
258         EndFont
259         MultiPar              true
260         HTMLStyle
261                 div.Frameless { font-family: sans-serif; }
262         EndHTMLStyle
263 End
264
265 InsetLayout Box:Shaded
266         BgColor               shaded
267         LabelFont
268           Color               foreground
269           Size                Small
270         EndFont
271         MultiPar              true
272 End
273
274 InsetLayout Float
275         LabelFont
276           Color               collapsable
277           Size                Small
278         EndFont
279         MultiPar              true
280         HTMLStyle
281                 div.float {
282                         border: 2px solid black;
283                 }
284         EndHTMLStyle
285 End
286
287 InsetLayout Wrap
288         LabelFont
289           Color               collapsable
290           Size                Small
291         EndFont
292         MultiPar              true
293         HTMLStyle
294                 div.wrap { 
295                         float: right;
296                         border: 2px solid black;
297                         padding: 1ex;
298                         margin: 1ex;
299                 }
300         EndHTMLStyle
301 End
302
303 InsetLayout URL
304         LyXType               standard
305         Decoration            classic
306         LabelString           URL
307         LatexName             url
308         LatexType             command
309         Requires              url
310         MultiPar              false
311         CustomPars            false
312         ForcePlain            true
313         PassThru              true
314         FreeSpacing           true
315         ForceLTR              true
316         Font
317           Family              Typewriter
318           Color               urltext
319         EndFont
320         LabelFont
321           Family              Typewriter
322           Color               urllabel
323           Size                Small
324         EndFont
325         HTMLIsBlock           false
326 End
327
328 InsetLayout OptArg
329         LabelString           opt
330         LabelFont
331           Color               collapsable
332           Size                Small
333         EndFont
334         MultiPar              false
335 End
336
337 InsetLayout Info
338         Decoration            conglomerate
339         HTMLStyle
340                 span.info { font-family: sans-serif; }
341         EndHTMLStyle
342         HTMLTag            span
343         MultiPar           false
344 End
345
346 InsetLayout Info:menu
347         CopyStyle             Info
348         LatexType             command
349         LatexName             menuitem
350         Preamble
351           \providecommand{\menuitem}[1]{\textsf{#1}}
352         EndPreamble
353         Decoration            conglomerate
354         Font
355           Family              sans
356         EndFont
357         HTMLAttr          "class='info menu'"
358         HTMLStyle
359                 span.menu { font-family: sans-serif; }
360         EndHTMLStyle
361 End
362
363 InsetLayout Info:shortcut
364         CopyStyle             Info
365         LatexType             command
366         LatexName             shortcut
367         Preamble
368           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
369         EndPreamble
370         Decoration            conglomerate
371         Font
372           Family              sans
373         EndFont
374         HTMLAttr          "class='info shortcut'"
375         HTMLStyle
376                 span.shortcut { font-family: sans-serif; }
377         EndHTMLStyle
378 End
379
380 InsetLayout Info:shortcuts
381         CopyStyle             Info
382         LatexType             command
383         LatexName             shortcut
384         Preamble
385           \providecommand{\shortcut}[1]{\textsf{#1}}
386         EndPreamble
387         Decoration            conglomerate
388         Font
389           Family              sans
390         EndFont
391         HTMLAttr          "class='info shortcut'"
392         HTMLStyle
393                 span.shortcuts { font-family: sans-serif; }
394         EndHTMLStyle
395 End
396
397 InsetLayout Caption
398         HTMLStyle
399                 div.float-caption {
400                         text-align: center;
401                         border: 2px solid black;
402                         padding: 1ex;
403                         margin: 1ex;
404                 }
405         EndHTMLStyle
406 End
407