mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
DocBook: implement fancy color box.
This commit is contained in:
parent
dc94abf039
commit
e94c7871cc
@ -499,6 +499,8 @@ export/examples(|/es)/Curricula_Vitae/Modern_CV_docbook5
|
|||||||
export/examples/Modules/Chessboard_docbook5
|
export/examples/Modules/Chessboard_docbook5
|
||||||
# - Empty figure and table (just a caption, while DocBook requires some content).
|
# - Empty figure and table (just a caption, while DocBook requires some content).
|
||||||
export/examples/Localization_Test_docbook5
|
export/examples/Localization_Test_docbook5
|
||||||
|
# - Inline equation in formatting.
|
||||||
|
export/examples/Modules/Fancy_Colored_Boxes_docbook5
|
||||||
|
|
||||||
Sublabel: docbook poster
|
Sublabel: docbook poster
|
||||||
# Posters cannot be properly exported, the LyX documents are too far from
|
# Posters cannot be properly exported, the LyX documents are too far from
|
||||||
|
@ -20,8 +20,11 @@ InsetLayout Flex:Color_Box
|
|||||||
LabelString "Color Box Options"
|
LabelString "Color Box Options"
|
||||||
Tooltip "Insert the color box options here (see tcolorbox manual)"
|
Tooltip "Insert the color box options here (see tcolorbox manual)"
|
||||||
PassThruChars "\[]{}"
|
PassThruChars "\[]{}"
|
||||||
|
DocBookTag IGNORE
|
||||||
EndArgument
|
EndArgument
|
||||||
ResetsFont true
|
ResetsFont true
|
||||||
|
DocBookTag phrase
|
||||||
|
DocBookAttr role='color-box'
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Flex:Dynamic_Color_Box
|
InsetLayout Flex:Dynamic_Color_Box
|
||||||
@ -29,18 +32,24 @@ InsetLayout Flex:Dynamic_Color_Box
|
|||||||
LatexType command
|
LatexType command
|
||||||
LabelString "Color Box (Dynamic)"
|
LabelString "Color Box (Dynamic)"
|
||||||
LatexName tcbox
|
LatexName tcbox
|
||||||
|
DocBookTag phrase
|
||||||
|
DocBookAttr role='dynamic-color-box'
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Flex:Fit_Color_Box
|
InsetLayout Flex:Fit_Color_Box
|
||||||
CopyStyle Flex:Dynamic_Color_Box
|
CopyStyle Flex:Dynamic_Color_Box
|
||||||
LabelString "Color Box (Fit Contents)"
|
LabelString "Color Box (Fit Contents)"
|
||||||
LatexName tcboxfit
|
LatexName tcboxfit
|
||||||
|
DocBookTag phrase
|
||||||
|
DocBookAttr role='fit-color-box'
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Flex:Raster_Color_Box
|
InsetLayout Flex:Raster_Color_Box
|
||||||
CopyStyle Flex:Color_Box
|
CopyStyle Flex:Color_Box
|
||||||
LabelString "Raster Color Box"
|
LabelString "Raster Color Box"
|
||||||
LatexName tcbraster
|
LatexName tcbraster
|
||||||
|
DocBookTag phrase
|
||||||
|
DocBookAttr role='raster-color-box'
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Flex:Subtitle
|
InsetLayout Flex:Subtitle
|
||||||
@ -148,6 +157,7 @@ Style New_Color_Box_Type
|
|||||||
Tooltip "Default value for argument (keep empty!)"
|
Tooltip "Default value for argument (keep empty!)"
|
||||||
Requires 3
|
Requires 3
|
||||||
EndArgument
|
EndArgument
|
||||||
|
DocBookTag IGNORE
|
||||||
End
|
End
|
||||||
|
|
||||||
# define 5 different box environments that can be customized by the user
|
# define 5 different box environments that can be customized by the user
|
||||||
@ -161,28 +171,38 @@ InsetLayout Flex:Custom_Color_Box_1
|
|||||||
Tooltip "Insert more color box options here"
|
Tooltip "Insert more color box options here"
|
||||||
Mandatory 1
|
Mandatory 1
|
||||||
EndArgument
|
EndArgument
|
||||||
|
DocBookTag phrase
|
||||||
|
DocBookAttr role='color-box-1'
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Flex:Custom_Color_Box_2
|
InsetLayout Flex:Custom_Color_Box_2
|
||||||
CopyStyle Flex:Custom_Color_Box_1
|
CopyStyle Flex:Custom_Color_Box_1
|
||||||
LabelString "Custom Color Box 2"
|
LabelString "Custom Color Box 2"
|
||||||
LatexName cBoxB
|
LatexName cBoxB
|
||||||
|
DocBookTag phrase
|
||||||
|
DocBookAttr role='color-box-2'
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Flex:Custom_Color_Box_3
|
InsetLayout Flex:Custom_Color_Box_3
|
||||||
CopyStyle Flex:Custom_Color_Box_1
|
CopyStyle Flex:Custom_Color_Box_1
|
||||||
LabelString "Custom Color Box 3"
|
LabelString "Custom Color Box 3"
|
||||||
LatexName cBoxC
|
LatexName cBoxC
|
||||||
|
DocBookTag phrase
|
||||||
|
DocBookAttr role='color-box-3'
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Flex:Custom_Color_Box_4
|
InsetLayout Flex:Custom_Color_Box_4
|
||||||
CopyStyle Flex:Custom_Color_Box_1
|
CopyStyle Flex:Custom_Color_Box_1
|
||||||
LabelString "Custom Color Box 4"
|
LabelString "Custom Color Box 4"
|
||||||
LatexName cBoxD
|
LatexName cBoxD
|
||||||
|
DocBookTag phrase
|
||||||
|
DocBookAttr role='color-box-4'
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Flex:Custom_Color_Box_5
|
InsetLayout Flex:Custom_Color_Box_5
|
||||||
CopyStyle Flex:Custom_Color_Box_1
|
CopyStyle Flex:Custom_Color_Box_1
|
||||||
LabelString "Custom Color Box 5"
|
LabelString "Custom Color Box 5"
|
||||||
LatexName cBoxE
|
LatexName cBoxE
|
||||||
|
DocBookTag phrase
|
||||||
|
DocBookAttr role='color-box-5'
|
||||||
End
|
End
|
||||||
|
Loading…
Reference in New Issue
Block a user