X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fbicaption.module;h=fbe7ffce4a9d74bfdf193acd68f7ce3c84d70f9f;hb=625e7609f0bb4087f0cd91ae3853beee6c6ba402;hp=c21d5a5086e2a21d6859fd813be2a0dfd7264be2;hpb=7538c953a4dce785c2a62526baf75f2bdfcf7b79;p=lyx.git diff --git a/lib/layouts/bicaption.module b/lib/layouts/bicaption.module index c21d5a5086..fbe7ffce4a 100644 --- a/lib/layouts/bicaption.module +++ b/lib/layouts/bicaption.module @@ -1,56 +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 -Format 40 +Format 60 Style "Caption setup" - LatexType command - LatexName captionsetup - Category FrontMatter - Argument options - LabelString "Caption Setup Options" - Shortcut S - Tooltip "Options for the caption setup command (see bicaption manual)" + LatexType command + LatexName captionsetup + Category FrontMatter + Argument 1 + 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 -Style Bicaption - CopyStyle "Caption setup" - LatexName bicaption - Category MainText - Argument options - Mandatory 1 - LabelString "Second language caption text" - Shortcut S - Tooltip "The caption text in the second language" + +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" EndArgument - TopSep 0 - Align Center - AlignPossible Center - LabelString "Multilingual caption:" - LabelFont - Color Black - EndFont + Argument 2 + Mandatory 1 + LabelString "Main Language Text" + Tooltip "Text in the main(document) language" + EndArgument + Argument 3 + 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; + } + EndHTMLStyle + HTMLAttr "class='float-caption float-caption-bicaption'" End -