]> git.lyx.org Git - features.git/blob - lib/layouts/stdinsets.inc
Translations for listings insets
[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 # Detailed format description is available in the customization manual
6
7 Format 38
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         Display               false
90         HTMLTag               div
91         HTMLIsBlock           true
92   HTMLStyle
93     div.note_comment {
94       display: none;
95     }
96   EndHTMLStyle
97 End
98
99
100 InsetLayout Note:Note
101         LabelString           Note
102         LatexType             command
103         LatexName             note
104         BgColor               notebg
105         LabelFont
106           Color               note
107           Size                Small
108         EndFont
109         MultiPar              true
110         HTMLIsBlock           false
111 # FIXME HTML Need CSS
112 End
113
114
115 InsetLayout Note:Greyedout
116         LabelString           Greyedout
117         LatexType             environment
118         LatexName             lyxgreyedout
119         BgColor               greyedoutbg
120         Font
121           Color               greyedouttext
122         EndFont
123         LabelFont
124           Color               greyedout
125           Size                Small
126         EndFont
127         MultiPar              true
128         Display               false
129         HTMLInnerTag div
130         HTMLStyle
131                 div.note_greyedout {
132                         display: inline;
133                         color: #A0A0A0;
134                         padding-left: 1ex;
135                         padding-right: 1ex;
136                 }
137         EndHTMLStyle
138         HTMLIsBlock           false
139 End
140
141 InsetLayout ERT
142         LabelString           ERT
143         LatexType             none
144         Decoration            minimalistic
145         Font
146           Color               latex
147           Family              typewriter
148         EndFont
149         LabelFont
150           Color               latex
151           Size                Small
152         EndFont
153         MultiPar              true
154         CustomPars            false
155         ForcePlain            true
156         PassThru              true
157         ParbreakIsNewline     true
158         KeepEmpty             true
159         FreeSpacing           true
160         ForceLTR              true
161 End
162
163 InsetLayout Phantom
164         Decoration            minimalistic
165         Font
166           Color               phantomtext
167         EndFont
168         MultiPar              false
169         CustomPars            false
170         ForcePlain            true
171 End
172
173 InsetLayout IncludeListings
174         # We need the [[List of Listings]] context, since "Listings" is also
175         # the name of the inset and translated differently.
176         # "Listings[[List of Listings]]" is the name of the "List of listings"
177         # ("Listings" is the predefined english name) in listings.sty, so it
178         # must be used here as well.
179         BabelPreamble
180                 \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
181                 \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}
182         EndBabelPreamble
183         # The commands do not need to be defined in LangPreamble, since
184         # listings.sty does that already. However they need to be redefined
185         # in order to be used for non-english single-language documents.
186         LangPreamble
187                 \renewcommand{\lstlistingname}{_(Listing)}
188                 \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
189         EndLangPreamble
190 End
191
192 InsetLayout Listings
193         CopyStyle IncludeListings
194         LabelString           Listings[[inset]]
195         LatexType             none
196         Decoration            minimalistic
197         Font
198           Color               foreground
199           Family              typewriter
200         EndFont
201         LabelFont
202           Color               foreground
203           Size                Small
204         EndFont
205         BgColor               listingsbg
206         MultiPar              true
207         PassThru              true
208         ParbreakIsNewline     true
209         KeepEmpty             true
210         FreeSpacing           true
211         ForceLTR              true
212         RefPrefix             lst
213 End
214
215 InsetLayout Branch
216         Decoration            classic
217         LabelFont
218           Color               branchlabel
219           Size                Small
220         EndFont
221         MultiPar              true
222         InToc                 true
223         HTMLIsBlock           false
224 End
225
226 InsetLayout Index
227         LabelString           Idx
228         Decoration            classic
229         Font
230           Size                Small
231         EndFont
232         LabelFont
233           Color               indexlabel
234           Size                Small
235         EndFont
236         MultiPar              false
237         CustomPars            false
238         ForcePlain            true
239         ContentAsLabel        true
240 End
241
242 InsetLayout Box
243         LabelFont
244           Color               foreground
245           Size                Small
246         EndFont
247         MultiPar              true
248 End
249
250 InsetLayout Box:Frameless
251         CopyStyle Box
252         HTMLStyle
253                 div.Frameless { margin: 1em; }
254         EndHTMLStyle
255 End
256
257 InsetLayout Box:Shaded
258         CopyStyle Box
259         BgColor shaded
260         HTMLStyle
261                 div.Shaded {
262                         background-color: gray;
263                         padding: 0.5ex;
264                 }
265         EndHTMLStyle
266 End
267
268 InsetLayout Box:Boxed
269         CopyStyle Box
270         HTMLStyle
271                 div.Boxed {
272                         border: solid thick black;
273                         padding: 0.5ex;
274                 }
275         EndHTMLStyle
276 End
277
278 InsetLayout Box:Framed
279         CopyStyle Box
280         HTMLStyle
281                 div.Framed {
282                         border: solid thick black;
283                         padding: 0.5ex;
284                 }
285         EndHTMLStyle
286 End
287
288 InsetLayout Box:ovalbox
289         CopyStyle Box
290         HTMLStyle
291                 div.ovalbox {
292                         border: groove medium black;
293                         padding: 0.5ex;
294                 }
295         EndHTMLStyle
296 End
297
298 InsetLayout Box:Ovalbox
299         CopyStyle Box
300         HTMLStyle
301                 div.Ovalbox {
302                         border: ridge thick black;
303                         padding: 0.5ex;
304                 }
305         EndHTMLStyle
306 End
307
308 InsetLayout Box:Shadowbox
309         CopyStyle Box
310         HTMLStyle
311                 div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
312         EndHTMLStyle
313 End
314
315 InsetLayout Box:Doublebox
316         CopyStyle Box
317         HTMLStyle
318                 div.Doublebox {
319                         border: double thick black;
320                         padding: 0.5ex;
321                 }
322         EndHTMLStyle
323 End
324
325 InsetLayout Float
326         LabelFont
327           Color               collapsable
328           Size                Small
329         EndFont
330         MultiPar              true
331         HTMLStyle
332                 div.float {
333                         border: 2px solid black;
334                         text-align: center;
335                 }
336         EndHTMLStyle
337 End
338
339 InsetLayout Wrap
340         LabelFont
341           Color               collapsable
342           Size                Small
343         EndFont
344         MultiPar              true
345         RefPrefix             wrap
346         HTMLStyle
347                 div.wrap {
348                         float: right;
349                         border: 2px solid black;
350                         padding: 1ex;
351                         margin: 1ex;
352                 }
353         EndHTMLStyle
354 End
355
356 InsetLayout "Flex:URL"
357         LyXType               standard
358         Decoration            classic
359         LabelString           URL
360         ContentAsLabel        true
361         LatexName             url
362         LatexType             command
363         Requires              url
364         MultiPar              false
365         CustomPars            false
366         ForcePlain            true
367         PassThru              true
368         FreeSpacing           true
369         ForceLTR              true
370         Font
371           Family              Typewriter
372           Color               urltext
373         EndFont
374         LabelFont
375           Family              Typewriter
376           Color               urllabel
377           Size                Small
378         EndFont
379         HTMLIsBlock           false
380 End
381
382 InsetLayout Argument
383         LabelString           opt
384         LabelFont
385           Color               collapsable
386           Size                Small
387         EndFont
388         MultiPar              false
389 End
390
391 InsetLayout Info
392         Decoration            conglomerate
393         HTMLStyle
394                 span.info { font-family: sans-serif; }
395         EndHTMLStyle
396         HTMLTag               span
397         MultiPar              false
398 End
399
400 InsetLayout Info:menu
401         CopyStyle             Info
402         LatexType             command
403         LatexName             menuitem
404         Preamble
405           \providecommand{\menuitem}[1]{\textsf{#1}}
406         EndPreamble
407         Decoration            conglomerate
408         Font
409           Family              sans
410         EndFont
411         HTMLAttr              "class='info menu'"
412         HTMLStyle
413                 span.menu { font-family: sans-serif; }
414         EndHTMLStyle
415 End
416
417 InsetLayout Info:shortcut
418         CopyStyle             Info
419         LatexType             command
420         LatexName             shortcut
421         Preamble
422           \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
423         EndPreamble
424         Decoration            conglomerate
425         Font
426           Family              sans
427         EndFont
428         HTMLAttr              "class='info shortcut'"
429         HTMLStyle
430                 span.shortcut { font-family: sans-serif; }
431         EndHTMLStyle
432 End
433
434 InsetLayout Info:shortcuts
435         CopyStyle             Info
436         LatexType             command
437         LatexName             shortcut
438         Preamble
439           \providecommand{\shortcut}[1]{\textsf{#1}}
440         EndPreamble
441         Decoration            conglomerate
442         Font
443           Family              sans
444         EndFont
445         HTMLAttr              "class='info shortcut'"
446         HTMLStyle
447                 span.shortcuts { font-family: sans-serif; }
448         EndHTMLStyle
449 End
450
451 InsetLayout Caption
452         HTMLStyle
453                 div.float-caption {
454                         text-align: center;
455                         border: 2px solid black;
456                         padding: 1ex;
457                         margin: 1ex;
458                 }
459         EndHTMLStyle
460 End
461
462
463 InsetLayout Preview
464         LabelString           Preview
465         Decoration            minimalistic
466         MultiPar              true
467 End