[texhax] pst-barcode with pdflatex

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Mar 24 07:11:05 CET 2011


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.

Herbert


More information about the texhax mailing list