]> git.lyx.org Git - lyx.git/blob - lib/layouts/bicaption.module
c9bcfa759e9b2d7d1dea3b6d39ede29787ac5016
[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 43
9
10 Style "Caption setup"
11         LatexType               command
12         LatexName               captionsetup
13         Category                FrontMatter
14         Argument 1
15                 LabelString   "Caption Setup Options|S"
16                 Tooltip       "Options for the caption setup command (see bicaption manual)"
17         EndArgument
18         Margin                  Dynamic
19         LabelSep                xx
20         ParSkip                 0.0
21         ItemSep                 0.2
22         TopSep                  0.7
23         BottomSep               0.7
24         ParSep                  0.3
25         Align                   Block
26         AlignPossible           Block
27         LabelType               Static
28         LabelString             "Caption setup:"
29         LabelFont
30                 Color           Green
31         EndFont
32         BabelPreamble
33         \usepackage{bicaption} % for multilingual captions
34         EndBabelPreamble
35 End
36
37
38 InsetLayout Caption:Bicaption
39         LabelString          bilingual
40         LaTeXType            command
41         LatexName            bicaption
42         Argument 1
43                 LabelString   "Second Language Caption Short Title"
44                 Tooltip       "A short title (for list of figures/tables) in the second language"
45         EndArgument
46         Argument 2
47                 Mandatory     1
48                 LabelString   "Second Language Caption Text|S"
49                 Tooltip       "The caption text in the second language"
50         EndArgument
51         Argument 3
52                 LabelString   "Main Language Caption Short Title"
53                 Tooltip       "A short title (for list of figures/tables) in the main language"
54         EndArgument
55         HTMLStyle
56                 div.float-caption {
57                         text-align: center;
58                         border: 2px solid black;
59                         padding: 1ex;
60                         margin: 1ex;
61                 }
62         EndHTMLStyle
63 End