8 t
.define(r
"\renewcommand{\familydefault}{\ttdefault}")
10 # positioning is quite ugly ... but it works at the moment
17 def drawdeco(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("deco."+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 drawdeco("earrow.SMall")
34 drawdeco("earrow.Small")
35 drawdeco("earrow.small")
36 drawdeco("earrow.normal")
37 drawdeco("earrow.large")
38 drawdeco("earrow.Large")
39 drawdeco("earrow.LArge")
43 drawdeco("barrow.normal")
47 drawdeco("earrow.Large([deco.filled([color.rgb.red]), style.linewidth.normal])")
48 drawdeco("earrow.normal(constriction=0)")
49 drawdeco("earrow.Large([style.linejoin.round])")
50 drawdeco("earrow.Large([deco.stroked.clear])")
53 c
.writetofile("arrows")