]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/ikiwiki/directive/asymptote.mdwn
Describe the asymptote directive.
[git.ikiwiki.info.git] / doc / plugins / ikiwiki / directive / asymptote.mdwn
1 The `asymptote` directive is supplied by the [[!iki plugins/asymptote
2 desc=asymptote]] plugin.
4 This directive allows embedding [asymptote](http://asymptote.sourceforge.net/)
5 diagrams in a page. Example usage:
7         \[[!asymptote src="""
8         import geometry;
9         unitsize(1cm);
10         triangle t = triangle((0,0), (4,0), (0.5,2));
11         show(La="$D$", Lb="$E$", Lc="", t);
12         dot(t.A^^t.B^^t.C);
13         point pD = midpoint(t.BC); dot(pD);
14         point pE = midpoint(t.AC); dot(pE);
15         draw(pD--pE);
16         point A_ = (pD-t.A)*2+t.A; dot("$A'$", A_, NE);
17         draw(t.B--A_--t.C, dashed);
18         draw(t.A--A_, dashed);
19         point E_ = midpoint(line(t.B,A_)); dot(Label("$E'$", E_, E));
20         draw(E_--pD, dashed);
21         """]]
23 The `asymptote` directive supports the following parameters:
25 - `src` - The asymptote source code to render.
27 [[!meta robots="noindex, follow"]]