2013-05-30 16:15:44 +00:00
|
|
|
#\DeclareLyXModule[bicaption.sty]{Multilingual Captions}
|
2011-12-07 01:06:06 +00:00
|
|
|
#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 <uwestoehr@web.de>
|
|
|
|
|
2019-03-26 16:46:21 +00:00
|
|
|
Format 72
|
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
|
2013-01-12 15:16:30 +00:00
|
|
|
Color Green
|
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
|
2012-07-10 21:44:21 +00:00
|
|
|
HTMLAttr "class='float-caption float-caption-bicaption'"
|
2011-12-07 01:06:06 +00:00
|
|
|
End
|