2011-12-07 01:06:06 +00:00
|
|
|
#\DeclareLyXModule[bicaption.sty]{Multilingual captions}
|
|
|
|
#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>
|
|
|
|
|
2012-12-30 17:35:23 +00:00
|
|
|
Format 43
|
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
|
|
|
|
BabelPreamble
|
|
|
|
\usepackage{bicaption} % for multilingual captions
|
|
|
|
EndBabelPreamble
|
|
|
|
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
|
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
|
2011-12-07 01:06:06 +00:00
|
|
|
End
|