2019-04-07 11:21:21 +02:00
|
|
|
#\DeclareLyXModule[bicaption.sty]{Bilingual Captions}
|
|
|
|
#\DeclareCategory{Floats & Captions}
|
2011-12-07 01:06:06 +00:00
|
|
|
#DescriptionBegin
|
2019-04-07 11:21:21 +02:00
|
|
|
#Provides two styles to typeset bilingual captions.
|
2023-01-16 17:02:17 +01:00
|
|
|
#For a description see Help > Specific Manuals > Multilingual Captions.
|
2011-12-07 01:06:06 +00:00
|
|
|
#DescriptionEnd
|
|
|
|
#Author: Uwe Stöhr <uwestoehr@web.de>
|
|
|
|
|
2023-07-28 18:21:47 -04:00
|
|
|
Format 104
|
2011-12-07 01:06:06 +00:00
|
|
|
|
|
|
|
Style "Caption setup"
|
2013-01-12 16:16:30 +01:00
|
|
|
LatexType command
|
|
|
|
LatexName captionsetup
|
|
|
|
Category FrontMatter
|
2012-11-20 15:35:25 +01:00
|
|
|
Argument 1
|
2013-01-12 16:27:03 +01:00
|
|
|
LabelString "Language"
|
|
|
|
Tooltip "Language that should be affected, can be 'bi-first', 'bi-second' or 'bi-both'"
|
2012-11-19 14:21:02 +01:00
|
|
|
EndArgument
|
2013-01-12 16:16:30 +01:00
|
|
|
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:"
|
2011-12-07 01:06:06 +00:00
|
|
|
LabelFont
|
2020-12-11 11:46:31 +01:00
|
|
|
Color textlabel2
|
2011-12-07 01:06:06 +00:00
|
|
|
EndFont
|
2015-03-16 20:31:38 +01:00
|
|
|
Requires bicaption
|
2011-12-07 01:06:06 +00:00
|
|
|
End
|
|
|
|
|
2012-12-30 18:29:02 +01:00
|
|
|
|
|
|
|
InsetLayout Caption:Bicaption
|
2013-01-12 16:16:30 +01:00
|
|
|
LabelString bilingual
|
|
|
|
LaTeXType command
|
|
|
|
LatexName bicaption
|
2014-12-23 11:58:04 +01:00
|
|
|
NeedProtect 1
|
2015-03-10 18:31:55 +01:00
|
|
|
MultiPar false
|
2012-11-20 15:35:25 +01:00
|
|
|
Argument 1
|
2013-01-12 16:16:30 +01:00
|
|
|
LabelString "Main Language Short Title"
|
|
|
|
Tooltip "Short title for the main(document) language"
|
2012-11-20 15:35:25 +01:00
|
|
|
EndArgument
|
|
|
|
Argument 2
|
2013-01-12 16:16:30 +01:00
|
|
|
Mandatory 1
|
|
|
|
LabelString "Main Language Text"
|
|
|
|
Tooltip "Text in the main(document) language"
|
2012-11-19 14:21:02 +01:00
|
|
|
EndArgument
|
2012-11-20 15:35:25 +01:00
|
|
|
Argument 3
|
2013-01-12 16:16:30 +01:00
|
|
|
LabelString "Second Language Short Title"
|
|
|
|
Tooltip "Short title for the second language"
|
2012-11-20 15:35:25 +01:00
|
|
|
EndArgument
|
2012-12-30 18:29:02 +01:00
|
|
|
HTMLStyle
|
2013-01-12 16:16:30 +01:00
|
|
|
div.float-caption {
|
|
|
|
text-align: center;
|
|
|
|
border: 2px solid black;
|
|
|
|
padding: 1ex;
|
|
|
|
margin: 1ex;
|
|
|
|
}
|
2012-12-30 18:29:02 +01:00
|
|
|
EndHTMLStyle
|
2022-12-05 23:42:50 -05:00
|
|
|
HTMLClass "float-caption float-caption-bicaption"
|
2011-12-07 01:06:06 +00:00
|
|
|
End
|