X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fbicaption.module;h=5f87a8fba60972d3dc3d9ead6dad543b1631fcb0;hb=0d434033ec03b3875cfbc05f3b87936af777bef5;hp=ab730ce97170c85539bd1a985d73cee52c422485;hpb=b0aa0db10aae4a51d48f060e642f05542e89f370;p=lyx.git diff --git a/lib/layouts/bicaption.module b/lib/layouts/bicaption.module index ab730ce971..5f87a8fba6 100644 --- a/lib/layouts/bicaption.module +++ b/lib/layouts/bicaption.module @@ -5,58 +5,61 @@ #DescriptionEnd #Author: Uwe Stöhr -Format 42 +Format 45 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 End -Style Bicaption - CopyStyle "Caption setup" - LatexName bicaption - Category MainText + +InsetLayout Caption:Bicaption + LabelString bilingual + LaTeXType command + LatexName bicaption 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 - TopSep 0 - Align Center - AlignPossible Center - LabelString "Multilingual caption:" - LabelFont - Color Black - EndFont + HTMLStyle + div.float-caption { + text-align: center; + border: 2px solid black; + padding: 1ex; + margin: 1ex; + } + EndHTMLStyle + HTMLAttr "class='float-caption float-caption-bicaption'" End -