I keep getting these weird errors when trying to compile with Asymptote. I compile with pdflatex, then asymptote, then pdflatex. The error is as stated in the title. For example, when building latexusage.tex (the example asymptote file), it says that on line 91 file 'latexusage-2.tex' not found. The first and last figures are displayed in the produced pdf but the 3D cube is missing. Any ideas what I'm missing?

To install, I used the instructions in this link by Speravir.

It seems the -2.tex is supposed to be the tex file for the second image. The -2.asy and -2.out files are created and in the folder, just not the -2.tex file.

Edit: after trying to make a MWE I'm getting the error C:\Program Files (x86)\Asymptote/three_surface.asy: 906.10: null surface on this code (no error if I delete the label line though):


import three;


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.