]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdinsets.inc
* tufte-book.layout: use InPreamble for titling.
[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 # Detailled format description is available in the customization manual
6
7 Format 27
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         HTMLTag               !--
90         HTMLIsBlock           false
91 End
92
93
94 InsetLayout Note:Note
95         LabelString           note
96         LatexType             command
97         LatexName             note
98         BgColor               notebg
99         LabelFont
100           Color               note
101           Size                Small
102         EndFont
103         MultiPar              true
104         HTMLIsBlock           false
105 # FIXME HTML Need CSS
106 End
107
108
109 InsetLayout Note:Greyedout
110         LabelString           greyedout
111         LatexType             environment
112         LatexName             lyxgreyedout
113         BgColor               greyedoutbg
114         Font
115           Color               greyedouttext
116         EndFont
117         LabelFont
118           Color               greyedout
119           Size                Small
120         EndFont
121         MultiPar              true
122         HTMLStyle
123                 div.note_greyedout { 
124                         display: inline;
125                         color: #A0A0A0; 
126                         padding-left: 1ex;
127                         padding-right: 1ex;
128                 }
129         EndHTMLStyle
130         HTMLIsBlock           false
131 End
132
133 InsetLayout ERT
134         LabelString           ERT
135         LatexType             none
136         Decoration            minimalistic
137         Font
138           Color               latex
139           Family              typewriter
140         EndFont
141         LabelFont
142           Color               latex
143           Size                Small
144         EndFont
145         MultiPar              true
146         CustomPars            false
147         ForcePlain            true
148         PassThru              true
149         KeepEmpty             true
150         FreeSpacing           true
151         ForceLTR              true
152 End
153
154 InsetLayout Phantom
155         Decoration            minimalistic
156         Font
157           Color               phantomtext
158         EndFont
159         CustomPars            false
160         ForcePlain            true
161 End
162
163 InsetLayout Listings
164         LabelString           Listings
165         LatexType             none
166         Decoration            minimalistic
167         Font
168           Color               foreground
169           Family              typewriter
170         EndFont
171         LabelFont
172           Color               foreground
173           Size                Small
174         EndFont
175         BgColor               listingsbg
176         MultiPar              true
177         PassThru              true
178         KeepEmpty             true
179         FreeSpacing           true
180         ForceLTR              true
181         RefPrefix             lst
182 End
183
184 InsetLayout Branch
185         Decoration            classic
186         LabelFont
187           Color               branchlabel
188           Size                Small
189         EndFont
190         MultiPar              true
191         InToc                 true
192         HTMLIsBlock           false
193 End
194
195 InsetLayout Index
196         LabelString           Idx
197         Decoration            classic
198         Font
199           Size                Small
200         EndFont
201         LabelFont
202           Color               indexlabel
203           Size                Small
204         EndFont
205         MultiPar              false
206         CustomPars            false
207         ForcePlain            true
208         ContentAsLabel        true
209 End
210
211 InsetLayout Box
212         LabelFont
213           Color               foreground
214           Size                Small
215         EndFont
216         MultiPar              true
217         HTMLStyle
218                 div.Frameless { font-family: sans-serif; }
219         EndHTMLStyle
220 End
221
222 InsetLayout Box:Shaded
223         BgColor               shaded
224         LabelFont
225           Color               foreground
226           Size                Small
227         EndFont
228         MultiPar              true
229 End
230
231 InsetLayout Float
232         LabelFont
233           Color               collapsable
234           Size                Small
235         EndFont
236         MultiPar              true
237         HTMLStyle
238                 div.float {
239                         border: 2px solid black;
240                         text-align: center;
241                 }
242         EndHTMLStyle
243 End
244
245 InsetLayout Wrap
246         LabelFont
247           Color               collapsable
248           Size                Small
249         EndFont
250         MultiPar              true
251         RefPrefix             wrap
252         HTMLStyle
253                 div.wrap { 
254                         float: right;
255                         border: 2px solid black;
256                         padding: 1ex;
257                         margin: 1ex;
258                 }
259         EndHTMLStyle
260 End
261
262 InsetLayout URL
263         LyXType               standard
264         Decoration            classic
265         LabelString           URL
266         ContentAsLabel        true
267         LatexName             url
268         LatexType             command
269         Requires              url
270         MultiPar              false
271         CustomPars            false
272         ForcePlain            true
273         PassThru              true
274         FreeSpacing           true
275         ForceLTR              true
276         Font
277           Family              Typewriter
278           Color               urltext
279         EndFont
280         LabelFont
281           Family              Typewriter
282           Color               urllabel
283           Size                Small
284         EndFont
285         HTMLIsBlock           false
286 End
287
288 InsetLayout Argument
289         LabelString           opt
290         LabelFont
291           Color               collapsable
292           Size                Small
293         EndFont
294         MultiPar              false
295 End
296
297 InsetLayout Info
298         Decoration            conglomerate
299         HTMLStyle
300                 span.info { font-family: sans-serif; }
301         EndHTMLStyle
302         HTMLTag            span
303         MultiPar           false
304 End
305
306 InsetLayout Info:menu
307         CopyStyle             Info
308         LatexType             command
309         LatexName             menuitem
310         Preamble
311           \providecommand{\menuitem}[1]{\textsf{#1}}
312         EndPreamble
313         Decoration            conglomerate
314         Font
315           Family              sans
316         EndFont
317         HTMLAttr          "class='info menu'"
318         HTMLStyle
319                 span.menu { font-family: sans-serif; }
320         EndHTMLStyle
321 End
322
323 InsetLayout Info:shortcut
324         CopyStyle             Info
325         LatexType             command
326         LatexName             shortcut
327         Preamble
328           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
329         EndPreamble
330         Decoration            conglomerate
331         Font
332           Family              sans
333         EndFont
334         HTMLAttr          "class='info shortcut'"
335         HTMLStyle
336                 span.shortcut { font-family: sans-serif; }
337         EndHTMLStyle
338 End
339
340 InsetLayout Info:shortcuts
341         CopyStyle             Info
342         LatexType             command
343         LatexName             shortcut
344         Preamble
345           \providecommand{\shortcut}[1]{\textsf{#1}}
346         EndPreamble
347         Decoration            conglomerate
348         Font
349           Family              sans
350         EndFont
351         HTMLAttr          "class='info shortcut'"
352         HTMLStyle
353                 span.shortcuts { font-family: sans-serif; }
354         EndHTMLStyle
355 End
356
357 InsetLayout Caption
358         HTMLStyle
359                 div.float-caption {
360                         text-align: center;
361                         border: 2px solid black;
362                         padding: 1ex;
363                         margin: 1ex;
364                 }
365         EndHTMLStyle
366 End
367
368
369 InsetLayout Preview
370         LabelString           Preview
371         Decoration            minimalistic
372         MultiPar              true
373 End