Closed thornoar closed 9 months ago
Yes, this changed in commit 451a260ae50d02867c1e54726a68d8af2c55761d but the documentation was not updated.
If you shipout to the defaultprefix, the implicit shipout will override the specified format. Use
settings.outformat="pdf";
instead.
The problem still stands, however, when shipouting to a non-defaultprefix. Is there maybe a constant for enabling/disabling automatic shipout? A nice thing would also be to have something like settings.outprefix
What problem still stands? If you shipout to a non-default prefix, you will get two output files, as now documented (unless you erase currentpicture at the end of the file; see for example Koch1.asy).
I assume you are saying that Asymptote now works exactly as it is supposed to, to which I fully agree. My comment was more that it shouldn't really be supposed to work like that (imho), and I was only asking if there was a way not to produce this extra file each time after manual shipout. Since there seems to be none (apart from exit()
ing thereafter), this should be considered closed indeed. Thank you in any case, your reply was helpful!
To suppress the implicit shipout, add erase();
at the end of your file.
The documentation reads,
However, it seems as if the
shipout()
command was added always. Here is a minimal working example filetest.asy
:After compilation, two files are added in the directory,
picture.pdf
andtest.eps
, while it should be onlypicture.pdf
. What is even more interesting, if I remove theprefix
keyword fromshipout
and specify only the format, then onlytest.eps
results after compilation, without anypdf
file.OS: Manjaro Linux Asymptote: 2.86git
Thank you for any help in advance.