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