Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I´m on a way to create a barcode with pst-barcode. How can I get a suitable pspicture environment in a standalone class? In the following example the top and right borders are too big.

% run with XeLaTeX => PDF
\documentclass[border = 1pt]{standalone}

\usepackage{pst-barcode}

\begin{document}

\begin{pspicture}(1in, 1in)
    \psbarcode{http://www.dante.de}{}{qrcode}
\end{pspicture}

\end{document}
share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

the default size of a qrcode is

\begin{pspicture}(50bp,50bp)

  \psbarcode{http://www.dante.de}{}{qrcode}
\end{pspicture}

which can be increased or decreased by setting the optional arguments

share|improve this answer
add comment

OMG!

% run with XeLaTeX => PDF
\documentclass[border = 1pt]{standalone}

\usepackage{pst-barcode}

\begin{document}

\begin{pspicture}(1in, 1in)
    \psbarcode{http://www.dante.de}{width=1.0 height=1.0}{qrcode}
\end{pspicture}

\end{document}
share|improve this answer
    
it depends to the the size you really want to create –  Herbert Dec 10 '12 at 8:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.