]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
A couple minor changes in the User's Guide.
[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-left: 1ex;
172                         padding-right: 1ex;
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                         text-align: center;
284                 }
285         EndHTMLStyle
286 End
287
288 InsetLayout Wrap
289         LabelFont
290           Color               collapsable
291           Size                Small
292         EndFont
293         MultiPar              true
294         HTMLStyle
295                 div.wrap { 
296                         float: right;
297                         border: 2px solid black;
298                         padding: 1ex;
299                         margin: 1ex;
300                 }
301         EndHTMLStyle
302 End
303
304 InsetLayout URL
305         LyXType               standard
306         Decoration            classic
307         LabelString           URL
308         LatexName             url
309         LatexType             command
310         Requires              url
311         MultiPar              false
312         CustomPars            false
313         ForcePlain            true
314         PassThru              true
315         FreeSpacing           true
316         ForceLTR              true
317         Font
318           Family              Typewriter
319           Color               urltext
320         EndFont
321         LabelFont
322           Family              Typewriter
323           Color               urllabel
324           Size                Small
325         EndFont
326         HTMLIsBlock           false
327 End
328
329 InsetLayout OptArg
330         LabelString           opt
331         LabelFont
332           Color               collapsable
333           Size                Small
334         EndFont
335         MultiPar              false
336 End
337
338 InsetLayout Info
339         Decoration            conglomerate
340         HTMLStyle
341                 span.info { font-family: sans-serif; }
342         EndHTMLStyle
343         HTMLTag            span
344         MultiPar           false
345 End
346
347 InsetLayout Info:menu
348         CopyStyle             Info
349         LatexType             command
350         LatexName             menuitem
351         Preamble
352           \providecommand{\menuitem}[1]{\textsf{#1}}
353         EndPreamble
354         Decoration            conglomerate
355         Font
356           Family              sans
357         EndFont
358         HTMLAttr          "class='info menu'"
359         HTMLStyle
360                 span.menu { font-family: sans-serif; }
361         EndHTMLStyle
362 End
363
364 InsetLayout Info:shortcut
365         CopyStyle             Info
366         LatexType             command
367         LatexName             shortcut
368         Preamble
369           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
370         EndPreamble
371         Decoration            conglomerate
372         Font
373           Family              sans
374         EndFont
375         HTMLAttr          "class='info shortcut'"
376         HTMLStyle
377                 span.shortcut { font-family: sans-serif; }
378         EndHTMLStyle
379 End
380
381 InsetLayout Info:shortcuts
382         CopyStyle             Info
383         LatexType             command
384         LatexName             shortcut
385         Preamble
386           \providecommand{\shortcut}[1]{\textsf{#1}}
387         EndPreamble
388         Decoration            conglomerate
389         Font
390           Family              sans
391         EndFont
392         HTMLAttr          "class='info shortcut'"
393         HTMLStyle
394                 span.shortcuts { font-family: sans-serif; }
395         EndHTMLStyle
396 End
397
398 InsetLayout Caption
399         HTMLStyle
400                 div.float-caption {
401                         text-align: center;
402                         border: 2px solid black;
403                         padding: 1ex;
404                         margin: 1ex;
405                 }
406         EndHTMLStyle
407 End
408