below is a (long, non-working) minimal example for use of pdftricks with the memoir document class. It is based directly on the (shorter, working) minimal example of use of pdftricks found at http://www.tug.org/pipermail/macostex-archives/2009-June/040498.html. I get an error as follows:

! Undefined control sequence.
\psinputs ->\verbatimwrite 
l.28   \begin{psinputs}

Any help is appreciated!

\documentclass[article, a4paper, 12pt, twoside]{memoir}

\let\footruleskip\relax % for compatibility of memoir and fancyhdr
\let\sl\ttfamily        % for compatibility of memoir and blindtext (silly, but it works) ha ha \ttfamily
%%% End of memoir stuff

    \usepackage{pstricks-add} % <- added this line!
  \usepackage{pstricks-add} % <- added this line!

  • Why do you want fancyhdr compatibility? Memoir can do all that stuff itself... – Seamus Mar 21 '11 at 15:19

Add \DisemulatePackage{moreverb} to the preamble, btw: you can reintroduce \sc using the oldfontcommands class option


use the package auto-pst-pdfinstead of pdftricks. It really simplyfies the use of PSTricks:

\usepackage{pstricks-add} % <- added this line!



run it as usual with pdflatex -shell-escape <file.tex>

  • nice suggestion, I'll try it when I get closer to final draft status. for the moment, installing auto-pst-pdf and all its dependencies is a bit heavy -- I'm using texlive 2007, no tlmgr :(. – Joe Corneli Mar 21 '11 at 19:35
  • 1
    ok, that is really old ... You can try to run pst2pdf. It is a Perl script, which extracts all PostScript specific part of your doc and creates single pdf images which then are used in a last pdflatex run. The script is available from CTAN. – user2478 Mar 21 '11 at 19:45

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.