]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/bicaption.module
Cleanup bv-dependent variables in InsetCollapsable
[lyx.git] / lib / layouts / bicaption.module
index c9bcfa759e9b2d7d1dea3b6d39ede29787ac5016..fbe7ffce4a9d74bfdf193acd68f7ce3c84d70f9f 100644 (file)
@@ -1,63 +1,65 @@
-#\DeclareLyXModule[bicaption.sty]{Multilingual captions}
+#\DeclareLyXModule[bicaption.sty]{Multilingual Captions}
 #DescriptionBegin
 #Provides two styles to typeset multilingual captions.
 #For a description see the file MultilingualCaptions.lyx in LyX's examples folder.
 #DescriptionEnd
 #Author: Uwe Stöhr <uwestoehr@web.de>
 
-Format 43
+Format 60
 
 Style "Caption setup"
-       LatexType               command
-       LatexName               captionsetup
-       Category                FrontMatter
+       LatexType       command
+       LatexName       captionsetup
+       Category        FrontMatter
        Argument 1
-               LabelString   "Caption Setup Options|S"
-               Tooltip       "Options for the caption setup command (see bicaption manual)"
+        LabelString    "Language"
+        Tooltip        "Language that should be affected, can be 'bi-first', 'bi-second' or 'bi-both'"
        EndArgument
-       Margin                  Dynamic
-       LabelSep                xx
-       ParSkip                 0.0
-       ItemSep                 0.2
-       TopSep                  0.7
-       BottomSep               0.7
-       ParSep                  0.3
-       Align                   Block
-       AlignPossible           Block
-       LabelType               Static
-       LabelString             "Caption setup:"
+       PassThru        1
+       Margin          Dynamic
+       LabelSep        xx
+       ParSkip         0.0
+       ItemSep         0.2
+       TopSep          0.7
+       BottomSep       0.7
+       ParSep          0.3
+       Align           Block
+       AlignPossible   Block
+       LabelType       Static
+       LabelString     "Caption setup:"
        LabelFont
-               Color           Green
+         Color         Green
        EndFont
-       BabelPreamble
-       \usepackage{bicaption} % for multilingual captions
-       EndBabelPreamble
+       Requires        bicaption
 End
 
 
 InsetLayout Caption:Bicaption
-       LabelString          bilingual
-       LaTeXType            command
-       LatexName            bicaption
+       LabelString     bilingual
+       LaTeXType       command
+       LatexName       bicaption
+       NeedProtect     1
+       MultiPar        false
        Argument 1
-               LabelString   "Second Language Caption Short Title"
-               Tooltip       "A short title (for list of figures/tables) in the second language"
+         LabelString   "Main Language Short Title"
+         Tooltip       "Short title for the main(document) language"
        EndArgument
        Argument 2
-               Mandatory     1
-               LabelString   "Second Language Caption Text|S"
-               Tooltip       "The caption text in the second language"
+        Mandatory      1
+         LabelString   "Main Language Text"
+         Tooltip       "Text in the main(document) language"
        EndArgument
        Argument 3
-               LabelString   "Main Language Caption Short Title"
-               Tooltip       "A short title (for list of figures/tables) in the main language"
+         LabelString   "Second Language Short Title"
+         Tooltip       "Short title for the second language"
        EndArgument
        HTMLStyle
-               div.float-caption {
-                       text-align: center;
-                       border: 2px solid black;
-                       padding: 1ex;
-                       margin: 1ex;
-               }
+         div.float-caption {
+          text-align: center;
+          border: 2px solid black;
+          padding: 1ex;
+          margin: 1ex;
+         }
        EndHTMLStyle
+       HTMLAttr "class='float-caption float-caption-bicaption'"
 End