I draw a figure by Asymptote, code as:

 import tube;
 import graph3;



 real a=5;
 path3 g1=(a,-a,0)--(a,a,0)..(0,a,a)..(-a,a,0)



There is a error, first, if I don't have the "$x$", "$y$", "$z$", in the last three line, it will run well,enter image description here

But have these character, it will turn error. I'm a new, so I don't know why it happend and how to solve it.

I using windows 7 64bit, TexLive 2014 latest.

the error is enter image description here

  • 1
    Is that asympte or a previewing programme giving that error? Your example compiles fine using asy provided by an up to date TeX Live 2014 installation on Linux. Plus the generated eps previews fine in GV on Linux. So you might want to give some more information about your system and exactly where it fails? – daleif Dec 30 '14 at 13:56
  • Hello. Can you precise the Ghostscript version? In fact there is a bug, Asymptote does not use the right output with the latest Ghostscript. You can have more information here sourceforge.net/p/asymptote/bugs/180. There are similar messages on Asymptote forum (and from some French users). – O.G. Dec 30 '14 at 16:49
  • I using windows 7 64bit, TexLive 2014 latest. Thanks. – zongxian Dec 31 '14 at 2:03
  • I am not used with Texlive under Windows. I do not know if Ghostscript is installed through Texlive or not. For your problem (which is now reported by different users on Windows) the question is the version of Ghostscript. With version >= 9.14 the epswrite device (used by Asymptote to create 3D Label) is deprecated and replaced by eps2write. You can see this on your second screenshot. Archlinux provides a patched Asymptote version (it consists in replacing epswrite by eps2write in label.in). For Windows users, please wait for a new Asymptote version or downgrade Ghostscript. – O.G. Dec 31 '14 at 13:12

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.