Debian Codegraph @

texmf-dist/doc/latex/luatikz/example/stylea.lua

raw
1 tikz.within( '*' )
2
3 local l1 = line{ p{ 0, 0 }, p{ 3, 1 } }
4 local l2 = line{ p{ 0, -1 }, p{ 3, 0 } }
5 local l3 = line{ p{ 0, -2 }, p{ 3, -1 } }
6
7 draw{ arrow, l1 }
8 draw{ double_arrow, dashed, l2 }
9 draw{ color = purple, line_width = 2, dotted, l3 }
10
11 put{ node{
12 at = l3.pc,
13 anchor = center,
14 align = center,
15 color = purple,
16 rotate = l3.phi * 180 / math.pi,
17 text = 'label for purple line',
18 text_width = '2cm',
19 } }