]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/bicaption.module
DocBook: implement modern CV.
[lyx.git] / lib / layouts / bicaption.module
index de6af7ca2b1a7ca18690f6123681b497411c95f2..ab0a9a6ab1e919e41441ca2e1998958897cb66d5 100644 (file)
@@ -1,19 +1,20 @@
-#\DeclareLyXModule[bicaption.sty]{Multilingual captions}
+#\DeclareLyXModule[bicaption.sty]{Bilingual Captions}
+#\DeclareCategory{Floats & Captions}
 #DescriptionBegin
-#Provides two styles to typeset multilingual captions.
+#Provides two styles to typeset bilingual 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 85
 
 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 +31,7 @@ Style "Caption setup"
        LabelFont
          Color         Green
        EndFont
-       BabelPreamble
-       \usepackage{bicaption} % for multilingual captions
-       EndBabelPreamble
+       Requires        bicaption
 End
 
 
@@ -40,6 +39,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 +62,5 @@ InsetLayout Caption:Bicaption
           margin: 1ex;
          }
        EndHTMLStyle
+       HTMLAttr "class='float-caption float-caption-bicaption'"
 End