8 t
.define(r
"\renewcommand{\familydefault}{\ttdefault}")
10 # positioning is quite ugly ... but it works at the moment
17 def drawstyle(name
, showpath
=0, default
=0):
19 p
= path
.path(path
.moveto(x
+ 0.1, y
+0.1 ),
20 path
.rlineto(length
/2.0, 0.3),
21 path
.rlineto(length
/2.0, -0.3))
22 c
.stroke(p
, style
.linewidth
.THIck
, eval("style."+name
))
24 c
.stroke(p
, style
.linewidth
.Thin
, color
.gray
.white
)
26 name
= name
+ r
"\rm\quad (default)"
27 t
.text(x
+ 1.5, y
+ 0.15, name
, tex
.fontsize
.footnotesize
)
33 def drawdeco(name
, showpath
=0, default
=0):
35 p
= path
.path(path
.moveto(x
+ 0.1, y
+0.1 ),
36 path
.rlineto(length
/2.0, 0.3),
37 path
.rlineto(length
/2.0, -0.3))
38 c
.stroke(p
, style
.linewidth
.THIck
, eval("deco."+name
))
40 c
.stroke(p
, style
.linewidth
.Thin
, color
.gray
.white
)
42 name
= name
+ r
"\rm\quad (default)"
43 t
.text(x
+ 1.5, y
+ 0.15, name
, tex
.fontsize
.footnotesize
)
49 drawstyle("linecap.butt", showpath
=1, default
=1)
50 drawstyle("linecap.round", showpath
=1)
51 drawstyle("linecap.square", showpath
=1)
55 drawstyle("linejoin.miter", showpath
=1, default
=1)
56 drawstyle("linejoin.round", showpath
=1)
57 drawstyle("linejoin.bevel", showpath
=1)
61 drawstyle("linestyle.solid", default
=1)
62 drawstyle("linestyle.dashed")
63 drawstyle("linestyle.dotted")
64 drawstyle("linestyle.dashdotted")
68 drawstyle("linewidth.THIN")
69 drawstyle("linewidth.THIn")
70 drawstyle("linewidth.THin")
71 drawstyle("linewidth.Thin")
72 drawstyle("linewidth.thin")
73 drawstyle("linewidth.normal", default
=1)
74 drawstyle("linewidth.thick")
75 drawstyle("linewidth.Thick")
76 drawstyle("linewidth.THick")
77 drawstyle("linewidth.THIck")
78 drawstyle("linewidth.THICk")
79 drawstyle("linewidth.THICK")
81 drawstyle("miterlimit.lessthan180deg", showpath
=1)
82 drawstyle("miterlimit.lessthan90deg", showpath
=1)
83 drawstyle("miterlimit.lessthan60deg", showpath
=1)
84 drawstyle("miterlimit.lessthan45deg", showpath
=1)
85 drawstyle("miterlimit.lessthan11deg", showpath
=1, default
=1)
89 drawstyle("dash((1, 1, 2, 2, 3, 3), 0)")
90 drawstyle("dash((1, 1, 2, 2, 3, 3), 1)")
91 drawstyle("dash((1, 2, 3), 2)")
92 drawstyle("dash((1, 2, 3), 3)")
93 drawstyle("dash((1, 2, 3), 4)")
97 drawdeco("earrow.SMall()")
98 drawdeco("earrow.Small()")
99 drawdeco("earrow.small()")
100 drawdeco("earrow.normal()")
101 drawdeco("earrow.large()")
102 drawdeco("earrow.Large()")
103 drawdeco("earrow.LArge()")
107 drawdeco("barrow.normal()")
110 c
.writetofile("pathstyles")