Questions tagged [pst-barcode]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
44 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 ...
user avatar
0 votes
1 answer
431 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 ...
user avatar
  • 2,049
0 votes
0 answers
108 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 ...
user avatar
2 votes
1 answer
124 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=...
user avatar
  • 1,087
1 vote
1 answer
181 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 ...
user avatar
  • 311
3 votes
1 answer
101 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, ...
user avatar
  • 2,080
3 votes
1 answer
96 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 ...
user avatar
  • 2,080
1 vote
1 answer
326 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 ...
user avatar
5 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: \...
user avatar
1 vote
0 answers
329 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} \...
user avatar
  • 1,443
3 votes
0 answers
122 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} \...
user avatar
  • 31
3 votes
2 answers
183 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} \...
user avatar
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 \...
user avatar
  • 339
1 vote
1 answer
379 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]{...
user avatar
3 votes
1 answer
278 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....
user avatar
  • 2,356
1 vote
1 answer
105 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@...
user avatar
  • 5,683
1 vote
0 answers
232 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 ...
user avatar
  • 31
3 votes
1 answer
344 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}...
user avatar
  • 201
1 vote
1 answer
300 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{...
user avatar
2 votes
1 answer
103 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-...
user avatar
  • 2,462
3 votes
1 answer
634 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, ...
user avatar
  • 2,462
3 votes
1 answer
347 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{...
user avatar
  • 2,462
3 votes
2 answers
751 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---...
user avatar
5 votes
1 answer
301 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-\...
user avatar
2 votes
2 answers
753 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 ...
user avatar
  • 13.2k
8 votes
2 answers
668 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 ...
user avatar
  • 26.7k
4 votes
1 answer
464 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=...
user avatar
5 votes
2 answers
503 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-...
user avatar
4 votes
2 answers
211 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} \...
user avatar
  • 3,314
93 votes
2 answers
9k 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 ...
user avatar
  • 5,414
4 votes
2 answers
511 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 ...
user avatar
  • 2,680
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 ...
user avatar
  • 81
7 votes
2 answers
535 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}...
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} \...
user avatar
  • 1,215
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{...
user avatar
13 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: \...
user avatar
  • 233
4 votes
1 answer
6k 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 ...
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 <...
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 ...
user avatar
  • 960
8 votes
1 answer
880 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} \...
user avatar
4 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 ...
user avatar
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} \...
user avatar
  • 1,404
8 votes
1 answer
609 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 ...
user avatar
  • 1,334
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:...
user avatar
  • 225
6 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 ...
user avatar
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}{...
user avatar
  • 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 ...
user avatar
  • 1,581
3 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 ...
user avatar
  • 3,385