summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/alignbox.asy
blob: 8f216c6a10c08978b939d18529fec4ab2ec92756 (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);
currentpicture.add(new void(frame f, transform t) {
    draw(f,point(left,NE,t)--point(right,W,t));
  });