]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/bicaption.module
Allow footnotes in floating tables via tablefootnote package
[lyx.git] / lib / layouts / bicaption.module
index de6af7ca2b1a7ca18690f6123681b497411c95f2..b635948b7b7ebf986c410dd542e8bedac32fb814 100644 (file)
@@ -1,19 +1,19 @@
-#\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 65
 
 Style "Caption setup"
        LatexType       command
        LatexName       captionsetup
        Category        FrontMatter
        Argument 1
-        LabelString   "Caption Setup Options"
-        Tooltip       "Options for the caption setup"
+        LabelString    "Language"
+        Tooltip        "Language that should be affected, can be 'bi-first', 'bi-second' or 'bi-both'"
        EndArgument
        PassThru        1
        Margin          Dynamic
@@ -30,9 +30,7 @@ Style "Caption setup"
        LabelFont
          Color         Green
        EndFont
-       BabelPreamble
-       \usepackage{bicaption} % for multilingual captions
-       EndBabelPreamble
+       Requires        bicaption
 End
 
 
@@ -40,6 +38,8 @@ InsetLayout Caption:Bicaption
        LabelString     bilingual
        LaTeXType       command
        LatexName       bicaption
+       NeedProtect     1
+       MultiPar        false
        Argument 1
          LabelString   "Main Language Short Title"
          Tooltip       "Short title for the main(document) language"
@@ -61,4 +61,5 @@ InsetLayout Caption:Bicaption
           margin: 1ex;
          }
        EndHTMLStyle
+       HTMLAttr "class='float-caption float-caption-bicaption'"
 End