]> git.lyx.org Git - lyx.git/blob - lib/layouts/bicaption.module
Fixes to InsetCaption \protect-ion
[lyx.git] / lib / layouts / bicaption.module
1 #\DeclareLyXModule[bicaption.sty]{Multilingual Captions}
2 #DescriptionBegin
3 #Provides two styles to typeset multilingual captions.
4 #For a description see the file MultilingualCaptions.lyx in LyX's examples folder.
5 #DescriptionEnd
6 #Author: Uwe Stöhr <uwestoehr@web.de>
7
8 Format 53
9
10 Style "Caption setup"
11         LatexType       command
12         LatexName       captionsetup
13         Category        FrontMatter
14         Argument 1
15          LabelString    "Language"
16          Tooltip        "Language that should be affected, can be 'bi-first', 'bi-second' or 'bi-both'"
17         EndArgument
18         PassThru        1
19         Margin          Dynamic
20         LabelSep        xx
21         ParSkip         0.0
22         ItemSep         0.2
23         TopSep          0.7
24         BottomSep       0.7
25         ParSep          0.3
26         Align           Block
27         AlignPossible   Block
28         LabelType       Static
29         LabelString     "Caption setup:"
30         LabelFont
31           Color         Green
32         EndFont
33         BabelPreamble
34         \usepackage{bicaption} % for multilingual captions
35         EndBabelPreamble
36 End
37
38
39 InsetLayout Caption:Bicaption
40         LabelString     bilingual
41         LaTeXType       command
42         LatexName       bicaption
43         NeedProtect     1
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