vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
555 stars 92 forks source link

Misplaced graphics/text using inlinetex #169

Closed jbaum98 closed 4 years ago

jbaum98 commented 4 years ago

I'm having an issue integrating Asymptote and Latex. If I use the asy latex environment, everything looks good.

image

If I manually run asy -inlinetex circle.asy and try to include the graphic using circle.pre and circle.tex, the graphics and text are misplaced. I made a gist to reproduce the issue.

image

johncbowman commented 4 years ago

If for some reason you want to bypass the normal inlinetex workflow, you need to specify consistent command-line options to achieve the same behaviour:

asy circle -inlinetex -tex pdflatex