mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
add shapepar module
- shapepar.module: new module to get non-rectangular paragraph shapes - SpecialParagraphShape.tex: an example shape definition file - Additional.lyx: - accept all changes and updated all language versions accordingly - describe how to get custom paragraph shapes (last section of the document) - preamble cleanup
This commit is contained in:
parent
eac8d8373d
commit
f37cdbc298
@ -1951,6 +1951,7 @@ dist_layouts_DATA =\
|
||||
layouts/scrlttr2.layout \
|
||||
layouts/scrreprt.layout \
|
||||
layouts/seminar.layout \
|
||||
layouts/shapepar.module \
|
||||
layouts/siamltex.layout \
|
||||
layouts/sigplanconf.layout \
|
||||
layouts/simplecv.layout \
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -16,6 +16,7 @@ dist_doc_DATA = \
|
||||
LFUNs.lyx \
|
||||
Math.lyx \
|
||||
Shortcuts.lyx \
|
||||
SpecialParagraphShape.tex \
|
||||
Tutorial.lyx \
|
||||
UserGuide.lyx
|
||||
|
||||
|
18
lib/doc/SpecialParagraphShape.tex
Normal file
18
lib/doc/SpecialParagraphShape.tex
Normal file
@ -0,0 +1,18 @@
|
||||
\shapepar{{100.125}%
|
||||
{0.0}b{0.0}b{133.0}%
|
||||
\\{0.0}t{0.0}{77.0}t{133.0}{68.0}%
|
||||
\\{10.533691}t{0.0}{65.0}t{145.0}{56.0}%
|
||||
\\{12.0}t{0.0}{63.0}t{147.0}{54.0}%
|
||||
\\{24.0}t{0.0}{55.0}t{155.0}{46.0}%
|
||||
\\{30.101212}t{0.0}{53.0}t{157.0}{44.0}%
|
||||
\\{36.0}t{0.0}{51.0}t{159.0}{42.0}%
|
||||
\\{48.0}t{0.0}{49.0}t{161.0}{40.0}%
|
||||
\\{60.0}t{0.0}{49.0}t{161.0}{40.0}%
|
||||
\\{72.0}t{0.0}{52.0}t{158.0}{43.0}%
|
||||
\\{72.01767}t{0.0}{52.0}t{158.0}{43.0}%
|
||||
\\{84.0}t{0.0}{57.0}t{153.0}{48.0}%
|
||||
\\{89.38559}t{0.0}{61.0}t{149.0}{52.0}%
|
||||
\\{96.0}t{0.0}{66.0}t{144.0}{57.0}%
|
||||
\\{100.5}t{0.0}{71.0}t{139.0}{62.0}%
|
||||
\\{100.5}e{0.0}%
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
135
lib/layouts/shapepar.module
Normal file
135
lib/layouts/shapepar.module
Normal file
@ -0,0 +1,135 @@
|
||||
#\DeclareLyXModule[shapepar.sty]{Custom paragraph shapes}
|
||||
#DescriptionBegin
|
||||
#Provides several paragraph shapes as well as commands to define custom
|
||||
#shapes. For a description see LyX's Additional
|
||||
#features manual, section "Non-standard Paragraph Shapes".
|
||||
#DescriptionEnd
|
||||
#Author: Uwe Stöhr <uwestoehr@web.de>
|
||||
|
||||
Format 43
|
||||
|
||||
AddToPreamble
|
||||
% used for custom paragraph shapes
|
||||
\usepackage{shapepar}
|
||||
\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
|
||||
Category ShapedParagraphs
|
||||
NextNoIndent 1
|
||||
Margin Static
|
||||
ParIndent MM
|
||||
ParSkip 0.4
|
||||
Align Block
|
||||
LabelType No_Label
|
||||
End
|
||||
|
||||
Style "Circle"
|
||||
CopyStyle "CD label"
|
||||
LatexName circlepar
|
||||
End
|
||||
|
||||
Style "Diamond"
|
||||
CopyStyle "CD label"
|
||||
LatexName diamondpar
|
||||
End
|
||||
|
||||
Style "Heart"
|
||||
CopyStyle "CD label"
|
||||
LatexName heartpar
|
||||
End
|
||||
|
||||
Style "Hexagon"
|
||||
CopyStyle "CD label"
|
||||
LatexName hexagonpar
|
||||
End
|
||||
|
||||
Style "Nut"
|
||||
CopyStyle "CD label"
|
||||
LatexName nutpar
|
||||
End
|
||||
|
||||
Style "Square"
|
||||
CopyStyle "CD label"
|
||||
LatexName squarepar
|
||||
End
|
||||
|
||||
Style "Star"
|
||||
CopyStyle "CD label"
|
||||
LatexName starpar
|
||||
End
|
||||
|
||||
# now the shapes defined in the .def files
|
||||
|
||||
Style "Candle"
|
||||
CopyStyle "CD label"
|
||||
LatexName shapepar{\candle}
|
||||
End
|
||||
|
||||
Style "Drop down"
|
||||
CopyStyle "CD label"
|
||||
LatexName droppar
|
||||
End
|
||||
|
||||
Style "Drop up"
|
||||
CopyStyle "CD label"
|
||||
LatexName dropuppar
|
||||
End
|
||||
|
||||
Style "TeX"
|
||||
CopyStyle "CD label"
|
||||
LatexName shapepar{\TeXshape}
|
||||
End
|
||||
|
||||
Style "Triangle up"
|
||||
CopyStyle "CD label"
|
||||
LatexName triangleuppar
|
||||
End
|
||||
|
||||
Style "Triangle down"
|
||||
CopyStyle "CD label"
|
||||
LatexName triangledownpar
|
||||
End
|
||||
|
||||
Style "Triangle left"
|
||||
CopyStyle "CD label"
|
||||
LatexName triangleleftpar
|
||||
End
|
||||
|
||||
Style "Triangle right"
|
||||
CopyStyle "CD label"
|
||||
LatexName trianglerightpar
|
||||
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
|
Loading…
Reference in New Issue
Block a user