summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/alignbox.asy
blob: 67083b1e2e03738c9b14e624113c26207815da69 (plain)
1
2
3
4
5
6
7
8
9
real margin=1.5mm;

object left=align(object("$x^2$",ellipse,margin),W);
add(left);
object right=align(object("$\sin x$",ellipse,margin),4E);
add(right);
add(new void(frame f, transform t) {
    draw(f,point(left,NE,t)--point(right,W,t));
  });