lyx_mirror/lib/layouts/bicaption.module

67 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

#\DeclareLyXModule[bicaption.sty]{Bilingual Captions}
#\DeclareCategory{Floats & Captions}
#DescriptionBegin
#Provides two styles to typeset bilingual captions.
#For a description see Help > Specific Manuals > Multilingual Captions.
#DescriptionEnd
#Author: Uwe Stöhr <uwestoehr@web.de>
2024-08-12 10:29:14 +00:00
Format 107
Style "Caption setup"
LatexType command
LatexName captionsetup
Category FrontMatter
2012-11-20 14:35:25 +00:00
Argument 1
LabelString "Language"
Tooltip "Language that should be affected, can be 'bi-first', 'bi-second' or 'bi-both'"
EndArgument
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 textlabel2
EndFont
Requires bicaption
End
InsetLayout Caption:Bicaption
LabelString bilingual
LaTeXType command
LatexName bicaption
NeedProtect 1
MultiPar false
2012-11-20 14:35:25 +00:00
Argument 1
LabelString "Main Language Short Title"
Tooltip "Short title for the main(document) language"
2012-11-20 14:35:25 +00:00
EndArgument
Argument 2
Mandatory 1
LabelString "Main Language Text"
Tooltip "Text in the main(document) language"
EndArgument
2012-11-20 14:35:25 +00:00
Argument 3
LabelString "Second Language Short Title"
Tooltip "Short title for the second language"
2012-11-20 14:35:25 +00:00
EndArgument
HTMLStyle
div.float-caption {
text-align: center;
border: 2px solid black;
padding: 1ex;
margin: 1ex;
}
EndHTMLStyle
HTMLClass "float-caption float-caption-bicaption"
End