]> git.lyx.org Git - lyx.git/blob - lib/layouts/bicaption.module
34c77d77913d0ae7850bbccb3948c67d7df9d224
[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 68
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         Requires        bicaption
34 End
35
36
37 InsetLayout Caption:Bicaption
38         LabelString     bilingual
39         LaTeXType       command
40         LatexName       bicaption
41         NeedProtect     1
42         MultiPar        false
43         Argument 1
44           LabelString   "Main Language Short Title"
45           Tooltip       "Short title for the main(document) language"
46         EndArgument
47         Argument 2
48          Mandatory      1
49           LabelString   "Main Language Text"
50           Tooltip       "Text in the main(document) language"
51         EndArgument
52         Argument 3
53           LabelString   "Second Language Short Title"
54           Tooltip       "Short title for the second language"
55         EndArgument
56         HTMLStyle
57           div.float-caption {
58            text-align: center;
59            border: 2px solid black;
60            padding: 1ex;
61            margin: 1ex;
62           }
63         EndHTMLStyle
64         HTMLAttr "class='float-caption float-caption-bicaption'"
65 End