]> git.lyx.org Git - features.git/blob - lib/layouts/stdinsets.inc
XHTML for InsetWrap.
[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 # 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 16
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         HTMLTag               span
80         HTMLAttr              class='marginal'
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         LatexType             command
95         LatexName             footnote
96         Counter               footnote
97         Font
98           Color               foreground
99           Size                Small
100           Family              Roman
101           Shape               Up
102           Series              Medium
103           Misc                No_Emph
104           Misc                No_Noun
105           Misc                No_Bar
106         EndFont
107         LabelFont
108           Color               footlabel
109           Size                Small
110         EndFont
111         MultiPar              true
112         HTMLTag               span
113         HTMLAttr              class='footwrapper'
114         HTMLLabel             "<span class='notenum'>\arabic{footnote}</span>"
115         HTMLInnerTag          span
116         HTMLInnerAttr         class='footnote'
117         HTMLStyle
118                 span.notenum { 
119                         vertical-align: super; 
120                         font-size: smaller; 
121                 }
122                 span.footnote {
123                         display: none;
124                         font-size: medium;
125                         font-weight: normal;
126                         font-style: normal;
127                         font-variant: normal;
128                 }
129                 span.footwrapper:hover span.footnote { 
130                         display: block; 
131                         border: 1px double black; 
132                         margin: 0em 1em;
133                         padding: 1em;
134                 }
135         EndHTMLStyle
136 End
137
138 InsetLayout Note:Comment
139         LabelString           comment
140         LatexType             environment
141         LatexName             comment
142         BgColor               commentbg
143         LabelFont
144           Color               comment
145           Size                Small
146         EndFont
147         MultiPar              true
148         HTMLTag               !--
149 End
150
151
152 InsetLayout Note:Note
153         LabelString           note
154         LatexType             command
155         LatexName             note
156         BgColor               notebg
157         LabelFont
158           Color               note
159           Size                Small
160         EndFont
161         MultiPar              true
162 End
163
164 InsetLayout Note:Greyedout
165         LabelString           greyedout
166         LatexType             environment
167         LatexName             lyxgreyedout
168         BgColor               greyedoutbg
169         LabelFont
170           Color               greyedout
171           Size                Small
172         EndFont
173         MultiPar              true
174         HTMLTag               span
175         HTMLAttr              class='notegrey'
176         HTMLStyle
177                 span.notegrey { color: gray; }
178         EndHTMLStyle
179 End
180
181 InsetLayout ERT
182         LabelString           ERT
183         LatexType             none
184         Decoration            minimalistic
185         Font
186           Color               latex
187           Family              typewriter
188         EndFont
189         LabelFont
190           Color               latex
191           Size                Small
192         EndFont
193         MultiPar              true
194         CustomPars            false
195         ForcePlain            true
196         PassThru              true
197         KeepEmpty             true
198         FreeSpacing           true
199         ForceLTR              true
200 End
201
202 InsetLayout Phantom
203         Decoration            minimalistic
204         Font
205           Color               phantomtext
206         EndFont
207         CustomPars            false
208         ForcePlain            true
209 End
210
211 InsetLayout Listings
212         LabelString           Listings
213         LatexType             none
214         Decoration            minimalistic
215         Font
216           Color               foreground
217           Family              typewriter
218         EndFont
219         LabelFont
220           Color               foreground
221           Size                Small
222         EndFont
223         BgColor               listingsbg
224         MultiPar              true
225         PassThru              true
226         KeepEmpty             true
227         FreeSpacing           true
228         ForceLTR              true
229 End
230
231 InsetLayout Branch
232         Decoration            classic
233         LabelFont
234           Color               branchlabel
235           Size                Small
236         EndFont
237         MultiPar              true
238         InToc                 true
239 End
240
241 InsetLayout Index
242         LabelString           Idx
243         LatexType             command
244         LatexName             index
245         Decoration            classic
246         Font
247           Color               foreground
248           Size                Small
249           Family              Roman
250           Shape               Up
251           Series              Medium
252           Misc                No_Emph
253           Misc                No_Noun
254           Misc                No_Bar
255         EndFont
256         LabelFont
257           Color               indexlabel
258           Size                Small
259         EndFont
260         MultiPar              false
261         CustomPars            false
262         ForcePlain            true
263         NeedProtect           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         LatexName             url
311         LatexType             command
312         Decoration            classic
313         LabelString           URL
314         PassThru              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         Requires              url
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         HTMLTag           span
340         HTMLAttr          class='info'
341         HTMLStyle
342                 span.info { font-family: sans-serif; }
343         EndHTMLStyle
344 End
345
346 InsetLayout Info:menu
347         LatexType             command
348         LatexName             menuitem
349         Preamble
350           \providecommand{\menuitem}[1]{\textsf{#1}}
351         EndPreamble
352         Decoration            conglomerate
353         Font
354           Family              sans
355         EndFont
356         HTMLTag           span
357         HTMLAttr          "class='info menu'"
358         HTMLStyle
359                 span.menu { font-family: sans-serif; }
360         EndHTMLStyle
361 End
362
363 InsetLayout Info:shortcut
364         LatexType             command
365         LatexName             shortcut
366         Preamble
367           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
368         EndPreamble
369         Decoration            conglomerate
370         Font
371           Family              sans
372         EndFont
373         HTMLTag           span
374         HTMLAttr          "class='info shortcut'"
375         HTMLStyle
376                 span.shortcut { font-family: sans-serif; }
377         EndHTMLStyle
378 End
379
380 InsetLayout Info:shortcuts
381         LatexType             command
382         LatexName             shortcut
383         Preamble
384           \providecommand{\shortcut}[1]{\textsf{#1}}
385         EndPreamble
386         Decoration            conglomerate
387         Font
388           Family              sans
389         EndFont
390         HTMLTag           span
391         HTMLAttr          "class='info shortcut'"
392         HTMLStyle
393                 span.shortcut { font-family: sans-serif; }
394         EndHTMLStyle
395 End
396
397 InsetLayout Box
398         HTMLStyle
399                 span.Frameless { font-family: sans-serif; }
400         EndHTMLStyle
401 End