Questions tagged [pst-barcode]

{pst-barcode} concerns the PSTricks package for generating barcodes

Filter by
Sorted by
Tagged with
2 votes
1 answer
148 views

Generating a bar code with the path to the data file with the pst-barcode package

Here is a file that uses the pst-barcode package to generate a barcode. Namely, there is a need for files with ISBN numbers to be located in a separate folder and individual files. The question is how ...
0 votes
1 answer
854 views

How to add custom fields to a QR code generated with pst-barcode?

I am currently using the following code to generate a QR code with my contact data. The idea is that scanning the QR code launches the Contacts app with all my contact information, in a way that it ...
  • 2,213
0 votes
0 answers
197 views

Undefined control sequence with dinbrief and pst-barcode

minimal example: \documentclass{dinbrief} \RequirePackage{auto-pst-pdf,pst-barcode} \begin{document} This is a test. \end{document} running xelatex from texlive 2021 results in >>> Loading ...
2 votes
1 answer
176 views

How to build pst-barcode with xelatex?

In the following example \documentclass{article} \usepackage{tikz} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(1.3in,0.49in) \psbarcode{9781860742712}{textsize=8 includetext height=...
  • 1,303
1 vote
1 answer
242 views

I need a barcode in a PDF/A

as in the title, I need a (simple 128) barcode and I need the PDF/A standard. I know how to do both separately. But pdfx won't run with latex so I cannot create a DVI and so on, which I need for the ...
  • 301
4 votes
1 answer
138 views

Change the Courier default font in pst-barcode (or make it embed)

When I use \pstbarcode command from pst-barcode package, it print a barcode using Helvetica and Courier as fonts, but this fonts are they are not free are not included in the PDF. As you can see, ...
  • 2,209
3 votes
1 answer
112 views

Make barcode “foots” reach the text baseline

With the following MWE: \documentclass{minimal} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(3.5,3) \psbarcode{3-88309-455}{includetext}{isbn} \end{pspicture} \end{document} I get ...
  • 2,209
1 vote
1 answer
366 views

Datamatrix not generated on Mac

When I compile the following file on my Mac, the datamatrix is not generated. When I compile the same file on a Linux server, the datamatrix is shown. Do you have any idea how this datamatrix can be ...
6 votes
1 answer
1k views

Can't generate code128 barcode

Googling already for five hours. I'm very newbie to LaTeX. :( I use pdfLaTeX+MakeIndex+BibTeX in TeXworks (yep, it ran on Windows). Packages from MiKTeX. Sample code, that didn't work: \...
1 vote
0 answers
355 views

Accent on psbarcode and Mecard (QR)

I am currently trying to build some QR code using pst-barcode. I will use it for communicate my contact details. Thus, I have used the \psbarcode command. MWE: \documentclass{standalone} \...
  • 1,463
3 votes
0 answers
125 views

Rendering a pspicture inside another document

I have a C++ program that generates a PDF via LaTeX by writing the data to stdout and piping to pdflatex -shell-escape. The template looks like this: \documentclass[letterpaper,12pt]{article} \...
  • 31
3 votes
2 answers
196 views

How to make work macros work as values in parameters of psbarcode?

TL;DR- Works \psbarcode{NODATA}{height=0.33 width=1.6 includecheck includetext}{code128} But "parametrized", does not work as expected (produces big transparent output) \def\h{0.33} \def\w{1.6} \...
6 votes
2 answers
2k views

How to use \usepackage{pst-barcode}

When using \usepackage {pst-barcode} I get error : \documentclass[10pt,a4paper,twoside,openany]{book} \usepackage[spanish]{babel} \usepackage[dvipsnames,x11names]{pstricks}% Options for xcolor \...
  • 339
2 votes
1 answer
403 views

How to dimensions in mm of barcodes/qrcodes generated with pst-barcode for sticky labels - i.e. when using `labels` package?

How to specify dimensions of barcode in mm ? (when using pst-barcode and labels packages) scalex,scaley seems to work. Why not absolute dimensions specifications ? \documentclass[a4paper,12pt]{...
3 votes
1 answer
294 views

Problem between bookcover.cls and PST-barcode

Please consider the MWE below which just places an ISBN bar-code on the backpage of a book cover using the bookcover.cls \documentclass[coverwidth=16cm,coverheight=23cm,markcolor=black,spinewidth=0....
  • 2,366
1 vote
1 answer
116 views

pst-barcode Argument of \pst@@object has an extra }

I have the ISBN stored in two commands (depending of a class option) \theisbne \theisbnp The boolean options of the class are defined using xifthen \RequirePackage{xifthen} \newboolean{@sbmcpm@...
  • 5,763
1 vote
0 answers
237 views

pst-barcode with MikTeX portable

I have the following problem: Rendering QR codes & Barcodes via psbarcode using Xelatex from Miktex portable just seems to work if the Windows path environment variable is set to MikTeX Portable ...
  • 31
3 votes
1 answer
360 views

pst-barcode with pstool

I would like to use the package pst-barcode with pstool. Is this possible? I am aware of the working pdflatex solution: \documentclass{article} \usepackage{auto-pst-pdf,pst-barcode} \begin{document}...
  • 201
1 vote
1 answer
308 views

psbarcode results in bar codes of different rotation on linux vs. windows environments

I'm using psbarcode to generate a code39 bar code and I've encountered something odd, which I wondering if someone can shed some light on. I'm using a combination of LaTeX and Velocity. \begin{...
2 votes
1 answer
104 views

Growing a Forest by 1 node corrupts PST barcode picture

Working on a different problem, I realized that QR Codes worked or did not work in the documents, different only in their Forest trees. It appears that if the 2nd last node (Child10) of Forest is un-...
  • 2,502
3 votes
1 answer
654 views

Text and picture top-aligned, where text is left-aligned and picture is right aligned

Using the answers from this sight, I tried to accomplish top-aligned text and image where text would have to start from the left side of the page, and picture would be at the right side. However, ...
  • 2,502
3 votes
1 answer
350 views

Upgraded from Texlive 2013 to 2014 and pstbarcode no longer works

\documentclass[border=10pt]{standalone} \usepackage{pst-barcode} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture}(0.7in,0.7in) \psbarcode{http://www.kernel.org}{}{qrcode} \end{...
  • 2,502
3 votes
2 answers
795 views

How can I get pstricks and tikz to work in the same document?

I'm trying to get a \psbarcode in my document which also uses a tikzpicture. I'm using \usepackage{auto-pst-pdf,pst-barcode}, but---even though the document compiles and shows a document afterwards---...
5 votes
1 answer
315 views

How can I get a Royal Mail \psbarcode below addresses in letter?

Here is what I'm working with: \documentclass{letter} \newcommand*{\BottomLeftX}{1.0in+\hoffset+\oddsidemargin}% \newcommand*{\BottomLeftY}{\paperheight-1.0in-\voffset-\topmargin-\headheight-\...
2 votes
2 answers
770 views

Loading TikZ3+PSTricks at the same time

I am also posting my solution. Please save your time and energy on this Question! I have experienced a strange behavior after upgrading TikZ 2 to TikZ 3 when loading and using the TikZ and PSTricks ...
  • 13.3k
8 votes
2 answers
681 views

How can I encode the current document as a QR code with pst-barcode?

\documentclass{article} \usepackage{pst-barcode} \begin{document} \begin{pspicture} \psbarcode{\input{\jobname.tex}}{}{qrcode} \end{pspicture} \end{document} I tried placing \expandafters before ...
  • 27.1k
4 votes
1 answer
479 views

pst-barcode produces PS files which Ghostscript can not read

Weird problem with pst-barcode package. TeX file: \documentclass[a4paper]{minimal} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(.25in,.25in) \psbarcode{tinyurl.com/b5b6du}{format=...
5 votes
2 answers
512 views

using CJK text inside mecard produces errors

I am trying to use \psbarcode to generate a MECARD QR code with CJK characters in the name field. tex: \documentclass[12pt]{memoir} \usepackage{CJKutf8} \usepackage{pstricks} \usepackage{pst-...
4 votes
2 answers
221 views

How to embed verbatim in pspicture?

I'm trying to insert a QR code at the beginning of my thesis with the contents being the BibTeX entry for it. Any way of embedding the raw text in \psbarcode? \documentclass[a4paper,12pt]{minimal} \...
  • 3,352
93 votes
2 answers
10k views

pgf-Tikz QR code generator

This question led to a new package: qrcode I am looking for a Tikz QR code generator. I am aware of pst-barcode as well as several "local" programs, a luatex solution and web services to do ...
  • 5,494
4 votes
2 answers
535 views

size of barcode in pspicture

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 ...
  • 2,710
8 votes
2 answers
1k views

Generating QR-code in header impossible?

I've got a strange issue with the packages pstricks/pst-barcode and fancyhdr. Here is what I like to do: A custom header for every page, Name on the left, QR-code on the right. Although the QR-code ...
  • 81
7 votes
2 answers
553 views

Get \psbarcode to accept custom variable

I'm trying to use \psbarcode in a manner that it will take a premade variable to render the barcode. MWE that fails is below, \documentclass{minimal} \usepackage{auto-pst-pdf} \usepackage{pst-barcode}...
  • 71
3 votes
2 answers
2k views

pst-barcode, textpos and XeLaTeX

Please consider the following MWE, which shall place a QR code (pst-barcode package) at a fixed position on the page using the textpos package: \documentclass{article} \usepackage{pst-barcode} \...
  • 1,245
4 votes
2 answers
2k views

Is there a "smarter" way to know the size of \psbarcode?

The size of 2D barcode depends on the first argument of \psbarcode. I usually do trial and error to find the size of \pspicture such that I get a tight output. \documentclass{article} \usepackage{...
14 votes
1 answer
3k views

How to produce Latex QR-Code (or in general 2d codes) as Vector graphic?

The pst-barcode package is great to produce bar-codes in all flavors. And it does 1d bar-codes like a charm. Also it is capable of generating 2d bar-codes with a command like this for a qrcode: \...
  • 243
4 votes
1 answer
7k views

latex-dvips-ps2pdf

I use pdflatex, Windows7, and TeXnicCenter. I am interested in using \psbarcode in combination with \usepackage{auto-pst-pdf}. A possible solution is to use latex-dvips-ps2pdf. The question is how to ...
  • 51
1 vote
1 answer
2k views

`pdflatex -shell-escape <file>` and \psbarcode from pst-barcode

I use pdflatex and I am interested in using \psbarcode from \usepackage{pst-barcode}. I think I found the answer in the last post here but the explanation starts with run pdflatex -shell-escape <...
  • 51
2 votes
1 answer
1k views

Trying to use parentheses in a "psbarcode" adds a new line after the first right parenthesis + charset encoding error

I'm trying to use the pst-barcode package to create a vcard contained in a qrcode, and I was surprised to see that a vcard that was working with another programming language to generate my qrcode was ...
  • 990
9 votes
1 answer
936 views

Problem with pst-barcode when using \usepackage[utf8]{inputenc}

I've tried to use the pst-barcode to generate QR codes, and ran into an issue with foreign characters. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pst-barcode} \begin{document} \...
6 votes
1 answer
1k views

Barcode with text wrapping and on every page

I am trying to get a dynamic \psbarcode barcode (it changes based on the page) to display in the top right corner of every single page and I would also like the text of the page to wrap around this. I ...
8 votes
1 answer
1k views

How to add text into a QR-Code?

I want to add a text to the QR-Code. I want a small numbers in one of the four black squares. \documentclass[a4paper, 12pt, parskip]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{pst-barcode} \...
  • 1,434
8 votes
1 answer
630 views

how to get PSTricks QR codes to handle tildes properly?

I am getting bitten by the same problem from one of my previous questions: tildes are not handled properly. But now it's the PSTricks QR code package that's not working, and none of the suggestions ...
  • 1,344
7 votes
2 answers
6k views

How to generate QR code for iCalendar event?

I would like to include in a pdf file a QR code containing information from a iCalendar event. Here it is the code to generate a simple event for an iCalendar: BEGIN:VEVENT SUMMARY:event DTSTART:...
  • 225
7 votes
2 answers
3k views

How to make custom page frame using LaTeX?

I need to make questionnaire template for automatic processing with queXF. To do this I need to produce pages like this: The queXF requirements for the pages are unique barcode for each page (done ...
17 votes
3 answers
2k views

Deactivating Anti-Aliasing when typesetting QR-Code

Using the following LaTeX-Code: \documentclass[a4paper]{article} \usepackage[pdf]{pstricks} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(0.7in,0.7in) \psbarcode{01234567890}{...
  • 171
10 votes
1 answer
3k views

How to place in a document a VCard using a psbarcode?

I would like to put a QRCode that contains contact information (VCard). However I don't know how to encode the newline character so VCard is correctly read. Here is a sample document with QRCode ...
  • 1,671
4 votes
1 answer
1k views

Problems while installing pst-barcode

I tried to install pst-barcode, but after moving the files to /usr/share/texmf/dvips/pstricks/ and running texhash, I still can't use them, and have to enter the files manually when compiling the ...
  • 3,485