Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [pst-barcode]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
168 views

Generating a Visible Barcode to a Darkened Back Cover

This post pertains to the proper way to apply a pst-barcode to the back cover of the book. See, for example, Generating ISBN Barcodes The reason for this question is as follows. Consider the code: \...
DDS's user avatar
  • 8,986
2 votes
1 answer
48 views

On Generating Barcodes with Pst-Barcode

This is a follow-up question to the one posed in Generating ISBN Barcodes. Prior to posting the MWE code: \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-barcode} \begin{document} \...
DDS's user avatar
  • 8,986
8 votes
2 answers
636 views

Generating ISBN Barcodes

Consider the following code which I compile with xelatex: \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(1.3125in,0.7in) \psbarcode{...
DDS's user avatar
  • 8,986
0 votes
0 answers
25 views

"invalidfont" error with LuaLaTex and pst-barcode using basic TexLive install

I am trying to make a minimal TexLive install for a docker container to minimize cloud costs. My web app creates product package labels with a UPC code. In my docker container, I get an "...
jlmontie's user avatar
  • 121
0 votes
0 answers
86 views

Alter the position of barcode in \begin{pspicture} within a rmarkdown document

I'm trying to alter the position of a barcode in a document, but so far I have found nothing... This is my Rmd file (with the YAML header between these two ---)... --- geometry: paperheight = 8cm, ...
tueftla's user avatar
  • 175
4 votes
3 answers
228 views

Barcode output in rmarkdown document

I want to have a barcode like given in this answer Can't generate code128 barcode There also stands that it doesn't work with pdflatex engine - it has to be changed to the xelatex engine and that's ...
tueftla's user avatar
  • 175
1 vote
1 answer
52 views

Why won't pst-barcode display a QR code when working example code is copied to an existing document

I have a pdf form created in latex. A MWE is shown below: NON-WORKING EXAMPLE: work-order-form.barcode-example.tex \documentclass[14pt,a4paper]{extarticle} %\pdfminorversion=6 \usepackage{auto-pst-...
David Fear's user avatar
2 votes
1 answer
49 views

Can't create QR codes with pst-barcode

I am trying to create a QR code with latex, no example I have tried works. barcode-test.tex \documentclass{article} \usepackage[a-1b]{pdfx} \usepackage{pst-barcode} \begin{document} \begin{...
David Fear's user avatar
0 votes
0 answers
40 views

How to give size to psbarcode

I'm using pst-barcode to generate rectangular datamatrix. Although I have problem with the fact "that the barcode is printed in a TEX box of zero dimension". The manual suggest using fbox ...
majkrzak's user avatar
  • 143
2 votes
1 answer
298 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 ...
Zeljko Hrcek's user avatar
0 votes
1 answer
1k 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 ...
EoDmnFOr3q's user avatar
  • 2,301
0 votes
0 answers
302 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 ...
Alexander Stecker's user avatar
2 votes
1 answer
277 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=...
nowox's user avatar
  • 1,397
1 vote
1 answer
351 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 ...
Namal's user avatar
  • 301
4 votes
1 answer
178 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, ...
fauve's user avatar
  • 2,521
3 votes
1 answer
124 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 ...
fauve's user avatar
  • 2,521
1 vote
1 answer
450 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 ...
user3048741's user avatar
7 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: \...
Egor Egorov's user avatar
1 vote
0 answers
398 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} \...
Guuk's user avatar
  • 1,495
3 votes
0 answers
134 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} \...
George's user avatar
  • 31
3 votes
2 answers
214 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} \...
Grzegorz Wierzowiecki's user avatar
6 votes
2 answers
3k 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 \...
casio's user avatar
  • 359
2 votes
1 answer
438 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]{...
Grzegorz Wierzowiecki's user avatar
3 votes
1 answer
312 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....
Paulo Ney's user avatar
  • 2,451
1 vote
1 answer
130 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@...
TeXtnik's user avatar
  • 5,873
1 vote
0 answers
250 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 ...
Zalem's user avatar
  • 41
3 votes
1 answer
380 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}...
jankos's user avatar
  • 201
1 vote
1 answer
314 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{...
user56494's user avatar
2 votes
1 answer
109 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-...
ajeh's user avatar
  • 2,572
3 votes
1 answer
675 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, ...
ajeh's user avatar
  • 2,572
3 votes
1 answer
355 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{...
ajeh's user avatar
  • 2,572
3 votes
2 answers
851 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---...
Green and White's user avatar
5 votes
1 answer
322 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-\...
The South Face's user avatar
2 votes
2 answers
784 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 ...
Malipivo's user avatar
  • 13.3k
8 votes
2 answers
695 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 ...
Sean Allred's user avatar
  • 27.4k
4 votes
1 answer
495 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=...
user38759's user avatar
5 votes
2 answers
517 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-...
bright-star's user avatar
4 votes
2 answers
226 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} \...
juliohm's user avatar
  • 3,462
94 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 ...
Max's user avatar
  • 5,712
4 votes
2 answers
562 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 ...
Dirk's user avatar
  • 2,728
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 ...
Ehmark's user avatar
  • 81
7 votes
2 answers
605 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}...
Joshua's user avatar
  • 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} \...
DigNative's user avatar
  • 1,255
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{...
kiss my armpit's user avatar
14 votes
1 answer
4k 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: \...
loomi's user avatar
  • 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 ...
Ivette's user avatar
  • 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 <...
Ivette's user avatar
  • 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 ...
XaF's user avatar
  • 1,038
9 votes
1 answer
992 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} \...
Per Jakobsen's user avatar
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 ...
fubukada's user avatar