mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 22:49:20 +00:00
9ca91b2566
There is nothing in the diff besides the format number changing from 93 to 95. From what I understand, this is as expected since 93 -> 94 and 94 -> 95 just add new layout tags. Updating the layouts makes it easier to test master. Otherwise, in some use cases layout2layout can be run hundreds of times which can make some things slow (e.g., opening documents or even opening the advanced find pane).
67 lines
1.5 KiB
Plaintext
67 lines
1.5 KiB
Plaintext
#\DeclareLyXModule[bicaption.sty]{Bilingual Captions}
|
|
#\DeclareCategory{Floats & Captions}
|
|
#DescriptionBegin
|
|
#Provides two styles to typeset bilingual captions.
|
|
#For a description see the file MultilingualCaptions.lyx in LyX's examples folder.
|
|
#DescriptionEnd
|
|
#Author: Uwe Stöhr <uwestoehr@web.de>
|
|
|
|
Format 95
|
|
|
|
Style "Caption setup"
|
|
LatexType command
|
|
LatexName captionsetup
|
|
Category FrontMatter
|
|
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
|
|
Argument 1
|
|
LabelString "Main Language Short Title"
|
|
Tooltip "Short title for the main(document) language"
|
|
EndArgument
|
|
Argument 2
|
|
Mandatory 1
|
|
LabelString "Main Language Text"
|
|
Tooltip "Text in the main(document) language"
|
|
EndArgument
|
|
Argument 3
|
|
LabelString "Second Language Short Title"
|
|
Tooltip "Short title for the second language"
|
|
EndArgument
|
|
HTMLStyle
|
|
div.float-caption {
|
|
text-align: center;
|
|
border: 2px solid black;
|
|
padding: 1ex;
|
|
margin: 1ex;
|
|
}
|
|
EndHTMLStyle
|
|
HTMLAttr "class='float-caption float-caption-bicaption'"
|
|
End
|