1

I have a 700+-page manuscript with 70+ PStricks figures like, for example, this one:

A PStricks graphic I don't want to reset in TikZ.

Some of my figures (though not the above example) even use the PostScript interpreter to compute the shape of a curve. Since dvipdf works even on these, it is obviously possible to translate all my figures to PDF. However, unfortunately, PDFLaTeX won't do it.

One would like to use modern tools like PDFLaTeX, XeTeX, etc.—especially, one would like to use PDFLaTeX.

The answer I am not looking for: convert to TikZ. I like TikZ. The next manuscript I write, I mean to use TikZ, but I've already sunk the hours into PStricks for this manuscript.

Here is one clunky solution to a related problem. Surely however there is a better way to do what I want to do, isn't there? (There is also this but I don't think that it has to do with me.)

How can I backfit my PStricks figures to PDFLaTeX, please?

  • 2
    does it not work with auto-pst-pdf package? (most pstricks works with pdftex via that route, but not all) – David Carlisle Jul 1 '17 at 16:46
  • 1
    auto-pst-pdf works only for pspicture environments. If you have not such an environment, e.g. a psmatrix, then you have to put that PSTricks related code into an environment \begin{postscript} ... \end{postscript} – user2478 Jul 1 '17 at 16:55
  • 1
    don't forget to use the optionsl argument -shell-escape for pdflatex – user2478 Jul 1 '17 at 18:04
  • 4
    I would advise to extract the pstricks figures as standalone figures, and include the resulting .pdf figures with \includegraphics. It will be easier to manage. – Bernard Jul 1 '17 at 18:16
  • 1
    The clunky solution above is the best way to manage a huge project as yours. – Gold Digging Programmer Jul 1 '17 at 18:49

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.