]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
Put the InsetLayout default CSS stuff to use.
[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 18
57
58 Provides stdinsets 1
59
60 InsetLayout Marginal
61         LabelString           margin
62         LatexType             command
63         LatexName             marginpar
64         Font
65           Color               foreground
66           Size                Small
67           Family              Roman
68           Shape               Up
69           Series              Medium
70           Misc                No_Emph
71           Misc                No_Noun
72           Misc                No_Bar
73         EndFont
74         LabelFont
75           Color               marginlabel
76           Size                Small
77         EndFont
78         MultiPar              true
79         NeedProtect           true
80         HTMLTag               span
81         HTMLStyle
82                 span.marginal {
83                         border: 2px solid black; 
84                         padding: 1ex; 
85                         margin: 1ex; 
86                         background-color: #F0F0F0; 
87                         float:right;
88                 }
89         EndHTMLStyle
90 End
91
92 InsetLayout Foot
93         LabelString           foot
94         Counter               footnote
95         Font
96           Color               foreground
97           Size                Small
98           Family              Roman
99           Shape               Up
100           Series              Medium
101           Misc                No_Emph
102           Misc                No_Noun
103           Misc                No_Bar
104         EndFont
105         LabelFont
106           Color               footlabel
107           Size                Small
108         EndFont
109         MultiPar              true
110         HTMLTag               span
111         HTMLLabel             \arabic{footnote}
112         HTMLInnerTag          span
113         HTMLStyle
114                 span.foot_label {
115                         vertical-align: super;
116                         font-size: smaller;
117                         font-weight: bold;
118                         text-decoration: underline;
119                 }
120                 span.foot_inner {
121                         display: none;
122                 }
123                 span.foot:hover span.foot_inner { 
124                         display: block; 
125                         border: 1px double black; 
126                         margin: 0em 1em;
127                         padding: 1em;
128                 }
129         EndHTMLStyle
130 End
131
132 InsetLayout Note:Comment
133         LabelString           comment
134         LatexType             environment
135         LatexName             comment
136         BgColor               commentbg
137         LabelFont
138           Color               comment
139           Size                Small
140         EndFont
141         MultiPar              true
142         HTMLTag               !--
143         HTMLIsBlock           false
144 End
145
146
147 InsetLayout Note:Note
148         LabelString           note
149         LatexType             command
150         LatexName             note
151         BgColor               notebg
152         LabelFont
153           Color               note
154           Size                Small
155         EndFont
156         MultiPar              true
157         HTMLIsBlock           false
158 # FIXME HTML Need CSS
159 End
160
161
162 InsetLayout Note:Greyedout
163         LabelString           greyedout
164         LatexType             environment
165         LatexName             lyxgreyedout
166         BgColor               greyedoutbg
167         LabelFont
168           Color               greyedout
169           Size                Small
170         EndFont
171         MultiPar              true
172         HTMLTag               span
173         HTMLStyle
174                 span.note_greyedout { 
175                         background-color: #A0A0A0; 
176                         padding-left: 1ex;
177                         padding-right: 1ex;
178                 }
179         EndHTMLStyle
180         HTMLIsBlock           false
181 End
182
183 InsetLayout ERT
184         LabelString           ERT
185         LatexType             none
186         Decoration            minimalistic
187         Font
188           Color               latex
189           Family              typewriter
190         EndFont
191         LabelFont
192           Color               latex
193           Size                Small
194         EndFont
195         MultiPar              true
196         CustomPars            false
197         ForcePlain            true
198         PassThru              true
199         KeepEmpty             true
200         FreeSpacing           true
201         ForceLTR              true
202 End
203
204 InsetLayout Phantom
205         Decoration            minimalistic
206         Font
207           Color               phantomtext
208         EndFont
209         CustomPars            false
210         ForcePlain            true
211 End
212
213 InsetLayout Listings
214         LabelString           Listings
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         KeepEmpty             true
229         FreeSpacing           true
230         ForceLTR              true
231 End
232
233 InsetLayout Branch
234         Decoration            classic
235         LabelFont
236           Color               branchlabel
237           Size                Small
238         EndFont
239         MultiPar              true
240         InToc                 true
241         HTMLIsBlock           false
242 End
243
244 InsetLayout Index
245         LabelString           Idx
246         Decoration            classic
247         Font
248           Color               foreground
249           Size                Small
250           Family              Roman
251           Shape               Up
252           Series              Medium
253           Misc                No_Emph
254           Misc                No_Noun
255           Misc                No_Bar
256         EndFont
257         LabelFont
258           Color               indexlabel
259           Size                Small
260         EndFont
261         MultiPar              false
262         CustomPars            false
263         ForcePlain            true
264 End
265
266 InsetLayout Box
267         LabelFont
268           Color               foreground
269           Size                Small
270         EndFont
271         MultiPar              true
272 End
273
274 InsetLayout Box:Shaded
275         BgColor               shaded
276         LabelFont
277           Color               foreground
278           Size                Small
279         EndFont
280         MultiPar              true
281 End
282
283 InsetLayout Float
284         LabelFont
285           Color               collapsable
286           Size                Small
287         EndFont
288         MultiPar              true
289 End
290
291 InsetLayout Wrap
292         LabelFont
293           Color               collapsable
294           Size                Small
295         EndFont
296         MultiPar              true
297         HTMLStyle
298                 span.wrap { 
299                         float: right;
300                         width: 40%;
301                         border: 2px solid black;
302                         padding: 1ex;
303                         margin: 1ex;
304                 }
305         EndHTMLStyle
306 End
307
308 InsetLayout URL
309         LyXType               standard
310         Decoration            classic
311         LabelString           URL
312         LatexName             url
313         LatexType             command
314         Requires              url
315         MultiPar              false
316         CustomPars            false
317         ForcePlain            true
318         PassThru              true
319         FreeSpacing           true
320         ForceLTR              true
321         Font
322           Family              Typewriter
323           Color               urltext
324         EndFont
325         LabelFont
326           Family              Typewriter
327           Color               urllabel
328           Size                Small
329         EndFont
330 End
331
332 InsetLayout OptArg
333         LabelString           opt
334         LabelFont
335           Color               collapsable
336           Size                Small
337         EndFont
338         MultiPar              false
339 End
340
341 InsetLayout Info
342         Decoration            conglomerate
343         HTMLTag           span
344         HTMLAttr          class='info'
345         HTMLStyle
346                 span.info { font-family: sans-serif; }
347         EndHTMLStyle
348 End
349
350 InsetLayout Info:menu
351         LatexType             command
352         LatexName             menuitem
353         Preamble
354           \providecommand{\menuitem}[1]{\textsf{#1}}
355         EndPreamble
356         Decoration            conglomerate
357         Font
358           Family              sans
359         EndFont
360         HTMLTag           span
361         HTMLAttr          "class='info menu'"
362         HTMLStyle
363                 span.menu { font-family: sans-serif; }
364         EndHTMLStyle
365 End
366
367 InsetLayout Info:shortcut
368         LatexType             command
369         LatexName             shortcut
370         Preamble
371           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
372         EndPreamble
373         Decoration            conglomerate
374         Font
375           Family              sans
376         EndFont
377         HTMLTag           span
378         HTMLAttr          "class='info shortcut'"
379         HTMLStyle
380                 span.shortcut { font-family: sans-serif; }
381         EndHTMLStyle
382 End
383
384 InsetLayout Info:shortcuts
385         LatexType             command
386         LatexName             shortcut
387         Preamble
388           \providecommand{\shortcut}[1]{\textsf{#1}}
389         EndPreamble
390         Decoration            conglomerate
391         Font
392           Family              sans
393         EndFont
394         HTMLTag           span
395         HTMLAttr          "class='info shortcut'"
396         HTMLStyle
397                 span.shortcut { font-family: sans-serif; }
398         EndHTMLStyle
399 End
400
401 InsetLayout Box
402         HTMLStyle
403                 span.Frameless { font-family: sans-serif; }
404         EndHTMLStyle
405 End