to create a fig.pdf but all of a sudden no pdf gets created. This has worked for years in my PC. Here is what changed:
The TeXLive 2016 was installed from the DVD whereupon the "Install all updates" was run. Afterwards Asymptote 2.38 was added. Finally the GhostScript 9.20 was installed.
After these changes LaTeX does not handle the \begin{asy} --- \end{asy} correctly: no Asymptote graphics appears in the pdf.
Under linux, with asymptote up-to-date (svn version) it works.
Could you
1) give us the fig-1.asy file
2) verify if fig-1.asy is created (it seems not)
3) verify your asy config : I see a \SYS for gs while \sys in asycommand (I am not used with Windows, so perhaps it is not relevant).
4) try asy -vv to have more messages.
5) try asy "the real name.asy" without wildcard "*"
O.G.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Olivier,
1)
Here is the fig-1.asy: https://1drv.ms/u/s!AvIP6x1zKSLzhWHGTCgHGCzuStNF
In line number three the call to nosetpagesize is without an argument. I tried to find a reference to this method amongst the Asymptote files (grep) but found nothing.
2) The file fig-1.asy is indeed created. Before the pdflatex I delete the fig-1.asy and afterwards I check it fot its time-stamp.
3) Windows is by default case-insensitive in its handling of file-names.
4) I did asy -vv but did not have any more messages.
However, I edited the fig-1.asy file: the line number three which reads "nosetpagesize();" was deleted.
And, voilà, Asymptote runs the fig-1.asy and the following pdflatex fig creates a perfect fig.pdf.
So, for the moment I let a small filter remove the nosetpagesize-line and the system runs as before.
Ch.G
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems you have a mixture of two different Asymptote versions.
The easiest fix for you is to upgrade to version 1.33 of Asymptote.sty, which is auto-generated by running latex on
Indeed. LeXLive has version 1.32 of the asymptote.sty file.
The asy-latex.dtx was run through latex, it created the asymptote.sty which file replaced the
C:\sys\TeXLive\texmf-dist\tex\latex\asymptote\asymptote.sty
The example above was run without error into a pdf file.
Thank you for the kind help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have used the standard sequence of commands:
pdflatex fig
asy fig-.asy
pdflatex fig
to create a fig.pdf but all of a sudden no pdf gets created. This has worked for years in my PC. Here is what changed:
The TeXLive 2016 was installed from the DVD whereupon the "Install all updates" was run. Afterwards Asymptote 2.38 was added. Finally the GhostScript 9.20 was installed.
After these changes LaTeX does not handle the \begin{asy} --- \end{asy} correctly: no Asymptote graphics appears in the pdf.
The asy is in the small file fig.tex https://1drv.ms/u/s!AvIP6x1zKSLzhVwjOeWMa5eRyMp0
The LaTeX log file fig.log https://1drv.ms/u/s!AvIP6x1zKSLzhWBdy82TfHnm6ZG7
Asymptote is invoked thus https://1drv.ms/t/s!AvIP6x1zKSLzhV53VjNUEQ4WVzSn
Asymptote config file https://1drv.ms/t/s!AvIP6x1zKSLzhV8EJyg6_NodfkuF
Can anyone see where I fail to set up the commands correctly?
Hello
Under linux, with asymptote up-to-date (svn version) it works.
Could you
1) give us the fig-1.asy file
2) verify if fig-1.asy is created (it seems not)
3) verify your asy config : I see a \SYS for gs while \sys in asycommand (I am not used with Windows, so perhaps it is not relevant).
4) try asy -vv to have more messages.
5) try asy "the real name.asy" without wildcard "*"
O.G.
Olivier,
1)
Here is the fig-1.asy: https://1drv.ms/u/s!AvIP6x1zKSLzhWHGTCgHGCzuStNF
In line number three the call to nosetpagesize is without an argument. I tried to find a reference to this method amongst the Asymptote files (grep) but found nothing.
2) The file fig-1.asy is indeed created. Before the pdflatex I delete the fig-1.asy and afterwards I check it fot its time-stamp.
3) Windows is by default case-insensitive in its handling of file-names.
4) I did asy -vv but did not have any more messages.
However, I edited the fig-1.asy file: the line number three which reads "nosetpagesize();" was deleted.
And, voilà, Asymptote runs the fig-1.asy and the following pdflatex fig creates a perfect fig.pdf.
So, for the moment I let a small filter remove the nosetpagesize-line and the system runs as before.
Ch.G
It seems you have a mixture of two different Asymptote versions.
The easiest fix for you is to upgrade to version 1.33 of Asymptote.sty, which is auto-generated by running latex on
https://raw.githubusercontent.com/vectorgraphics/asymptote/HEAD/doc/asy-latex.dtx
Indeed. LeXLive has version 1.32 of the asymptote.sty file.
The asy-latex.dtx was run through latex, it created the asymptote.sty which file replaced the
C:\sys\TeXLive\texmf-dist\tex\latex\asymptote\asymptote.sty
The example above was run without error into a pdf file.
Thank you for the kind help.