When I compile a LaTeX documents containing PSTricks code, I normally use the package auto-pst-pdf, but recently I found pdftricks2.

Should I use auto-pst-pdf or pdftricks2 and what are the differences between the two packages?

P.S. Shouldn't I use one of the packages above at all when compiling documents containing PSTricks code via PDFLaTeX, but a third one? If so, which one?

  • 1
    use xelatex and you do not need any additional package. However, there is not the package when using pdflatex, choose the one which you may prefer. – user2478 Jun 11 '13 at 7:15
  • @Herbert Okay. Do you know what the package differences are? (If you put your comment(s) into an answer, I'll accept it.) – Svend Tveskæg Jun 11 '13 at 10:29
  • Program xelatex: does the conversion of the whole document in the background with xdvipdfmx
  • Program pst2pdf (Perl) extracts all pspicture and postscript environments and creates single standalone documents to run with `latex' to create a graphic for each document which is then used instead of the environment.
  • Package auto-pst-pdf loads internally pst-pdf and runs the document with the pspicture or postscript environments in the background with latex and then uses the created pdf images instead of the environments in the pdflatex run
  • Package pdftricks2 can convert only pspicture environments and needs a special handling of the PSTricks packages in the preamble. It also replaces the pspicture environment with the created image.
  • Package pdftricks works similiar to pdftricks2
  • And the powerdot presentation package works with neither of them. – marczellm Jun 11 '13 at 11:10
  • why should it?? It is per definition created for latex and not pdflatex! – user2478 Jun 11 '13 at 11:13
  • @SvendTveskæg: Using standalone document class compiled with latex-dvips-ps2pdf produces better cropping than using pdfcrop-based workflows. (It is based on my own experiences) Don't trust me without involving your own fingers to prove what I am saying. :-) – kiss my armpit Jun 11 '13 at 11:41
  • @ClickMe: standalone itself also use ps2pdf!t – user2478 Jun 11 '13 at 14:37
  • @Herbert: ps2pdf or pdfcrop? – kiss my armpit Jun 11 '13 at 14:58

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.