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