[pstricks] problem with pst-pdf in auto-pst-pdf
Patrice.MEGRET at umons.ac.be
Thu Feb 23 16:20:30 CET 2017
Yes, if compilation with pdflatex, first run = latex, second = ... => this creates temporary files with the pictures before the last compilation in pdflatex.
With the off option, the picture file is reused.
But if I compile in Latex, the auto-pst-pdf does nothing except calling pst-pdf with option inactive. If I look at the error it seems that the version 1.2 of pst-pdf does not load the packages ifpdf, ifvtex, ifxetex and os the error I mentioned.
If by luck, these packages are already loaded (by geometry for example) then no problem.
I know that it could be strange the way I am using auto-pst-pdf but the main idea is to be able to compile the file with pstricks commands by the classical way latex->dvips->ps2pdf or by pdflatex.
De : PSTricks [mailto:pstricks-bounces at tug.org] De la part de Herbert Voss
Envoyé : jeudi 23 février 2017 10:37
À : pstricks at tug.org
Objet : Re: [pstricks] problem with pst-pdf in auto-pst-pdf
Am 23.02.2017 um 08:19 schrieb Patrice MEGRET:
> As far as I understand, with auto-pst-pdf, if compilation is done in Latex, the dvi file contains the classical pspicture and all the text and then by dvips we obtain the ps file and with ps2pdf the final pdf file.
> Indeed this compilation calls pst-pdf with option inactive and this option seems to be broken in the new pst-pdf package.
auto-pst-pdf uses the switch \ifpdf to test, if it is the run with latex to create the pictures via pst-pdf or if it is the final pdflatex run to insert the created pictures as images.
If you are using latex as main program then all this cannot work and one should use
PSTricks mailing list
PSTricks at tug.org
More information about the PSTricks