]> git.lyx.org Git - lyx.git/blob - lib/layouts/shapepar.module
Bump layout formats
[lyx.git] / lib / layouts / shapepar.module
1 #\DeclareLyXModule[shapepar.sty]{Custom Paragraph Shapes}
2 #\DeclareCategory{Paragraph Styles}
3 #DescriptionBegin
4 #Provides several paragraph shapes as well as commands to define custom
5 #shapes. For a description see LyX's Additional
6 #features manual, section 'Non-standard Paragraph Shapes'.
7 #DescriptionEnd
8 #Author: Uwe Stöhr <uwestoehr@web.de>
9
10 Format 76
11
12 AddToPreamble
13  % used for custom paragraph shapes
14  \IfFileExists{candleshape.def}{%
15   \input{candleshape.def}}{}
16  \IfFileExists{dropshape.def}{%
17   \input{dropshape.def}}{}
18  \IfFileExists{TeXshape.def}{%
19   \input{TeXshape.def}}{}
20  \IfFileExists{triangleshapes.def}{%
21   \input{triangleshapes.def}}{}
22
23 EndPreamble
24
25 # first the standard shapes
26
27 Style "CD label"
28         LatexType       command
29         LatexName       CDlabel
30         Requires        shapepar
31         Category        ShapedParagraphs
32         NextNoIndent    1
33         Margin          Static
34         ParIndent       MM
35         ParSkip         0.4
36         Align           Block
37         LabelType       No_Label
38 End
39
40 Style "Circle"
41         CopyStyle       "CD label"
42         LatexName       circlepar
43 End
44
45 Style "Diamond"
46         CopyStyle       "CD label"
47         LatexName       diamondpar
48 End
49
50 Style "Heart"
51         CopyStyle       "CD label"
52         LatexName       heartpar
53 End
54
55 Style "Hexagon"
56         CopyStyle       "CD label"
57         LatexName       hexagonpar
58 End
59
60 Style "Nut"
61         CopyStyle       "CD label"
62         LatexName       nutpar
63 End
64
65 Style "Square"
66         CopyStyle       "CD label"
67         LatexName       squarepar
68 End
69
70 Style "Star"
71         CopyStyle       "CD label"
72         LatexName       starpar
73 End
74
75 # now the shapes defined in the .def files
76
77 Style "Candle"
78         CopyStyle       "CD label"
79         LatexName       shapepar{\candle}
80 End
81
82 Style "Drop down"
83         CopyStyle       "CD label"
84         LatexName       droppar
85 End
86
87 Style "Drop up"
88         CopyStyle       "CD label"
89         LatexName       dropuppar
90 End
91
92 Style "TeX"
93         CopyStyle       "CD label"
94         LatexName       shapepar{\TeXshape}
95 End
96
97 Style "Triangle up"
98         CopyStyle       "CD label"
99         LatexName       triangleuppar
100 End
101
102 Style "Triangle down"
103         CopyStyle       "CD label"
104         LatexName       triangledownpar
105 End
106
107 Style "Triangle left"
108         CopyStyle       "CD label"
109         LatexName       triangleleftpar
110 End
111
112 Style "Triangle right"
113         CopyStyle       "CD label"
114         LatexName       trianglerightpar
115 End
116
117 # finally the low-level commands
118 Style "shapepar"
119         CopyStyle       "CD label"
120         LatexName       shapepar
121         Argument 1
122           Mandatory     0
123           LabelString   "Scale"
124           Tooltip       "For scaling the <Shape specification> to positions on the page"
125         EndArgument
126         Argument 2
127           Mandatory     1
128           LabelString   "Shape specification"
129           Tooltip       "Specification of the shape"
130         EndArgument
131 End
132
133 Style "Shapepar"
134         CopyStyle       "shapepar"
135         LatexName       Shapepar
136 End