2013-06-03 18:26:30 +00:00
|
|
|
#\DeclareLyXModule[shapepar.sty]{Custom Paragraph Shapes}
|
2019-04-04 16:43:29 +00:00
|
|
|
#\DeclareCategory{Paragraph Styles}
|
2013-01-12 18:44:08 +00:00
|
|
|
#DescriptionBegin
|
2013-01-19 13:34:48 +00:00
|
|
|
#Provides several paragraph shapes as well as commands to define custom
|
2023-01-28 17:26:59 +00:00
|
|
|
#shapes. For a description see LyX's Additional features manual,
|
|
|
|
#section Modules > Paragraph Styles > Custom Paragraph Shapes.
|
2013-01-12 18:44:08 +00:00
|
|
|
#DescriptionEnd
|
|
|
|
#Author: Uwe Stöhr <uwestoehr@web.de>
|
|
|
|
|
2024-08-12 10:29:14 +00:00
|
|
|
Format 107
|
2013-01-12 18:44:08 +00:00
|
|
|
|
|
|
|
AddToPreamble
|
|
|
|
% used for custom paragraph shapes
|
|
|
|
\IfFileExists{candleshape.def}{%
|
|
|
|
\input{candleshape.def}}{}
|
|
|
|
\IfFileExists{dropshape.def}{%
|
|
|
|
\input{dropshape.def}}{}
|
|
|
|
\IfFileExists{TeXshape.def}{%
|
|
|
|
\input{TeXshape.def}}{}
|
|
|
|
\IfFileExists{triangleshapes.def}{%
|
|
|
|
\input{triangleshapes.def}}{}
|
|
|
|
|
|
|
|
EndPreamble
|
|
|
|
|
|
|
|
# first the standard shapes
|
|
|
|
|
|
|
|
Style "CD label"
|
|
|
|
LatexType command
|
|
|
|
LatexName CDlabel
|
2013-05-30 15:55:21 +00:00
|
|
|
Requires shapepar
|
2013-01-12 18:44:08 +00:00
|
|
|
Category ShapedParagraphs
|
|
|
|
NextNoIndent 1
|
|
|
|
Margin Static
|
|
|
|
ParIndent MM
|
|
|
|
ParSkip 0.4
|
|
|
|
Align Block
|
|
|
|
LabelType No_Label
|
2020-08-31 01:09:16 +00:00
|
|
|
DocBookWrapperTag sidebar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='cd-label'
|
2020-08-31 01:09:16 +00:00
|
|
|
DocBookTag para
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Circle"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName circlepar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='circle'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Diamond"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName diamondpar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='diamond'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Heart"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName heartpar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='heart'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Hexagon"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName hexagonpar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='hexagon'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Nut"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName nutpar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='nut'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Square"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName squarepar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='square'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Star"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName starpar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='star'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
# now the shapes defined in the .def files
|
|
|
|
|
|
|
|
Style "Candle"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName shapepar{\candle}
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='candle'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Drop down"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName droppar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='drop-down'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Drop up"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName dropuppar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='drop-up'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "TeX"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName shapepar{\TeXshape}
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='tex'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Triangle up"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName triangleuppar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='triangle-up'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Triangle down"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName triangledownpar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='triangle-down'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Triangle left"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName triangleleftpar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='triangle-left'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style "Triangle right"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName trianglerightpar
|
2020-09-12 01:21:08 +00:00
|
|
|
DocBookWrapperAttr role='triangle-right'
|
2013-01-12 18:44:08 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
# finally the low-level commands
|
|
|
|
Style "shapepar"
|
|
|
|
CopyStyle "CD label"
|
|
|
|
LatexName shapepar
|
|
|
|
Argument 1
|
|
|
|
Mandatory 0
|
|
|
|
LabelString "Scale"
|
|
|
|
Tooltip "For scaling the <Shape specification> to positions on the page"
|
|
|
|
EndArgument
|
|
|
|
Argument 2
|
|
|
|
Mandatory 1
|
|
|
|
LabelString "Shape specification"
|
|
|
|
Tooltip "Specification of the shape"
|
|
|
|
EndArgument
|
|
|
|
End
|
|
|
|
|
|
|
|
Style "Shapepar"
|
|
|
|
CopyStyle "shapepar"
|
|
|
|
LatexName Shapepar
|
|
|
|
End
|