4 text
.preamble(r
"\renewcommand{\familydefault}{\ttdefault}")
7 # positioning is quite ugly ... but it works at the moment
14 def drawdeco(name
, showpath
=0, default
=0):
16 p
= path
.path(path
.moveto(x
+ 0.1, y
+0.1 ),
17 path
.rlineto(length
/2.0, 0.3),
18 path
.rlineto(length
/2.0, -0.3))
19 c
.stroke(p
, [style
.linewidth
.THIck
, eval("deco."+name
)])
21 c
.stroke(p
, [style
.linewidth
.Thin
, color
.gray
.white
])
23 name
= name
+ r
"\rm\quad (default)"
24 c
.text(x
+ 1.5, y
+ 0.15, name
, [text
.size
.footnotesize
])
30 drawdeco("earrow.Small")
31 drawdeco("earrow.small")
32 drawdeco("earrow.normal")
33 drawdeco("earrow.large")
34 drawdeco("earrow.Large")
38 drawdeco("barrow.normal")
42 drawdeco("earrow.Large([deco.filled([color.rgb.red]), style.linewidth.normal])")
43 drawdeco("earrow.normal(constriction=None)")
44 drawdeco("earrow.Large([style.linejoin.round])")
45 drawdeco("earrow.Large([deco.stroked.clear])")