<asymptote>
The <asymptote> element contains Asymptote source code for a generated
image. It usually appears inside an <image>, often within
a <figure>, and can share setup from an
<asymptote-preamble>.
Syntax
Attributes
| Attribute | Required? | Values |
|---|---|---|
component = "…" | optional | string |
label = "…" | optional | string |
Children
The following may appear as children: TextParents
This element may appear as an immediate child of the following elements:<image>
Examples
<image>
<shortdescription>a line segment from 0 to 1</shortdescription>
<asymptote>
size(120,0);
draw((0,0)--(1,0), linewidth(1));
dot((0,0));
dot((1,0));
</asymptote>
</image>