]> git.lyx.org Git - features.git/blob - lib/layouts/bicaption.module
Update layouts (run layout2layout.py)
[features.git] / lib / layouts / bicaption.module
1 #\DeclareLyXModule[bicaption.sty]{Bilingual Captions}
2 #\DeclareCategory{Floats & Captions}
3 #DescriptionBegin
4 #Provides two styles to typeset bilingual captions.
5 #For a description see the file MultilingualCaptions.lyx in LyX's examples folder.
6 #DescriptionEnd
7 #Author: Uwe Stöhr <uwestoehr@web.de>
8
9 Format 95
10
11 Style "Caption setup"
12         LatexType       command
13         LatexName       captionsetup
14         Category        FrontMatter
15         Argument 1
16          LabelString    "Language"
17          Tooltip        "Language that should be affected, can be 'bi-first', 'bi-second' or 'bi-both'"
18         EndArgument
19         PassThru        1
20         Margin          Dynamic
21         LabelSep        xx
22         ParSkip         0.0
23         ItemSep         0.2
24         TopSep          0.7
25         BottomSep       0.7
26         ParSep          0.3
27         Align           Block
28         AlignPossible   Block
29         LabelType       Static
30         LabelString     "Caption setup:"
31         LabelFont
32           Color         textlabel2
33         EndFont
34         Requires        bicaption
35 End
36
37
38 InsetLayout Caption:Bicaption
39         LabelString     bilingual
40         LaTeXType       command
41         LatexName       bicaption
42         NeedProtect     1
43         MultiPar        false
44         Argument 1
45           LabelString   "Main Language Short Title"
46           Tooltip       "Short title for the main(document) language"
47         EndArgument
48         Argument 2
49          Mandatory      1
50           LabelString   "Main Language Text"
51           Tooltip       "Text in the main(document) language"
52         EndArgument
53         Argument 3
54           LabelString   "Second Language Short Title"
55           Tooltip       "Short title for the second language"
56         EndArgument
57         HTMLStyle
58           div.float-caption {
59            text-align: center;
60            border: 2px solid black;
61            padding: 1ex;
62            margin: 1ex;
63           }
64         EndHTMLStyle
65         HTMLAttr "class='float-caption float-caption-bicaption'"
66 End