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?

thb
  • 507
  • 2
    does it not work with auto-pst-pdf package? (most pstricks works with pdftex via that route, but not all) – David Carlisle Jul 01 '17 at 16:46
  • @DavidCarlisle: I will look into it again. I thought that I tried that a few years ago. It didn't work very well for anything as I recall, but it especially choked on those of my figures that include actual, direct PostScript code. But maybe I was using an old version of auto-pst-pdf? Or maybe I was using it wrong. Thanks for the helpful prod! – thb Jul 01 '17 at 16:50
  • 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} –  Jul 01 '17 at 16:55
  • @DavidCarlisle: By the way, today is the second time in the past two years you have kindly answered a question of mine on this site. You and I are unacquainted except through these occasional questions, but I appreciate your answers and comments very much nevertheless. – thb Jul 01 '17 at 16:59
  • @Herbert: a postscript environment! I didn't know about that. I will try it. – thb Jul 01 '17 at 17:02
  • 1
    don't forget to use the optionsl argument -shell-escape for pdflatex –  Jul 01 '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 01 '17 at 18:16
  • 1
    The clunky solution above is the best way to manage a huge project as yours. – Display Name Jul 01 '17 at 18:49

0 Answers0