Replace qrcode with barcode, print-ready

This commit is contained in:
cirdeirf 2019-06-11 15:58:36 +02:00
parent d4995d4f01
commit 4517633ffc
Signed by: pius
GPG key ID: 130876AF66F40378
4 changed files with 20 additions and 32 deletions

View file

@ -1 +1,7 @@
# kif-badges # KIF 47.0 Badges
Badges for KIF 47.0 in Dresden.
1. Set desired template/background and CSV-file in badge.tex.
2. Compile bad.tex with XeLaTeX.
3. Compile druck.tex.

View file

@ -12,9 +12,9 @@
contents = {\includegraphics[width = \paperwidth, height = \paperheight, contents = {\includegraphics[width = \paperwidth, height = \paperheight,
keepaspectratio] {templates/Badge_Helfer.pdf}}}% keepaspectratio] {templates/Badge_Helfer.pdf}}}%
\usepackage{qrcode} \usepackage{pst-pdf}
\usepackage{pst-barcode}
\usepackage{ifthen} \usepackage{ifthen}
\usepackage{lastpage}
\usepackage{xcolor} \usepackage{xcolor}
\definecolor{helfer} {rgb}{0.69, 0.88, 0.11} % #B1E11C (grün) \definecolor{helfer} {rgb}{0.69, 0.88, 0.11} % #B1E11C (grün)
@ -204,7 +204,7 @@
\begin{document} \begin{document}
\newread\file% \newread\file%
\openin\file=list_helfer_impr.csv \openin\file=../_kif_csv/helfer_badges_duplex.csv
\loop% \loop%
\read\file% \read\file%
@ -214,11 +214,12 @@
\else \else
\expandafter\chopline\line\\ \expandafter\chopline\line\\
\ifthenelse{\equal{\thepage}{1}} { \vspace*{11.55mm}
\vspace*{11.55mm} % \ifthenelse{\equal{\thepage}{1}} {
}{ % \vspace*{11.55mm}
\vspace*{16mm} % }{
} % \vspace*{16mm}
% }
\begin{minipage}[t][][c]{\textwidth} \begin{minipage}[t][][c]{\textwidth}
\begin{fitbox}{\textwidth}{.075\textheight} \begin{fitbox}{\textwidth}{.075\textheight}
\centering \centering
@ -243,7 +244,9 @@
\end{minipage} \end{minipage}
\vspace{32mm} \vspace{32mm}
\qrcode[height=24mm]{\kdvCode} \begin{pspicture} (0mm, 22.75mm)
\psbarcode{\kdvCode}{includetext height=0.9 width=1.125}{ean13}
\end{pspicture}
\pagebreak \pagebreak

View file

@ -1,20 +0,0 @@
3889744831
2060815223
2870887596
9942826716
8147090964
3689932700
4788964330
2998912377
1701827862
7426068925
4784224602
5719312188
7173459290
1941379358
8306879159
3062530934
3427708822
6569714123
8152759092
9002159860

View file

@ -26,7 +26,7 @@ def main():
# add padding # add padding
chunksize = 4 chunksize = 4
for _ in range((chunksize - len(lines) % chunksize) % chunksize): for _ in range((chunksize - len(lines) % chunksize) % chunksize):
lines.append("\#\#\#,{},\#\#\#\n".format(secrets.pop(0)[0:-2])) lines.append("\#\#\#,{},\#\#\#\n".format(secrets.pop(0)[0:-1]))
ret = list() ret = list()
for c in chunk(lines, chunksize): for c in chunk(lines, chunksize):
ret.append(c) ret.append(c)
@ -35,7 +35,6 @@ def main():
for c in ret: for c in ret:
for l in c: for l in c:
f.write(l) f.write(l)
return
with open(sys.argv[3],'w+') as f: with open(sys.argv[3],'w+') as f:
for s in secrets: for s in secrets:
f.write(s) f.write(s)