[texhax] pst-barcode with pdflatex

Reinhard Kotucha reinhard.kotucha at web.de
Thu Mar 24 09:19:16 CET 2011


On 2011-03-24 at 07:11:05 +0100, Herbert Voss wrote:

 > Am 23.03.2011 16:25, schrieb Reynolds Carl (ROYAL FREE HAMPSTEAD NHS TRUST):
 > > Hi, I'm trying to build this QR code example:
 > >
 > > \documentclass{article}
 > > \usepackage{pst-barcode}
 > > \begin{document}
 > >    \begin{pspicture}(1in,1in)
 > >      \psbarcode{test string}{}{qrcode}
 > >    \end{pspicture}
 > > \end{document}
 > >
 > > I get this error:
 > >
 > > ! Undefined control sequence.
 > > <recently read>  \c at lor@to at ps
 > 
 > you can not run it directly with pdflatex. Use
 > 
 > \documentclass{article}
 > \usepackage{pst-barcode}
 > \usepackage{auto-pst-pdf}
 > ...
 > 
 > and then "pdflatex -shell-escape <file>" and it should work.

Can't PS Tricks check \AtBeginDocument whether it's run under pdftex
and provide a more specific error message when auto-pst-pdf is not
loaded?

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the texhax mailing list