Replace qrcode with barcode, print-ready
This commit is contained in:
parent
d4995d4f01
commit
4517633ffc
|
@ -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.
|
||||
|
|
21
badge.tex
21
badge.tex
|
@ -12,9 +12,9 @@
|
|||
contents = {\includegraphics[width = \paperwidth, height = \paperheight,
|
||||
keepaspectratio] {templates/Badge_Helfer.pdf}}}%
|
||||
|
||||
\usepackage{qrcode}
|
||||
\usepackage{pst-pdf}
|
||||
\usepackage{pst-barcode}
|
||||
\usepackage{ifthen}
|
||||
\usepackage{lastpage}
|
||||
|
||||
\usepackage{xcolor}
|
||||
\definecolor{helfer} {rgb}{0.69, 0.88, 0.11} % #B1E11C (grün)
|
||||
|
@ -204,7 +204,7 @@
|
|||
\begin{document}
|
||||
|
||||
\newread\file%
|
||||
\openin\file=list_helfer_impr.csv
|
||||
\openin\file=../_kif_csv/helfer_badges_duplex.csv
|
||||
|
||||
\loop%
|
||||
\read\file%
|
||||
|
@ -214,11 +214,12 @@
|
|||
\else
|
||||
\expandafter\chopline\line\\
|
||||
|
||||
\ifthenelse{\equal{\thepage}{1}} {
|
||||
\vspace*{11.55mm}
|
||||
}{
|
||||
\vspace*{16mm}
|
||||
}
|
||||
\vspace*{11.55mm}
|
||||
% \ifthenelse{\equal{\thepage}{1}} {
|
||||
% \vspace*{11.55mm}
|
||||
% }{
|
||||
% \vspace*{16mm}
|
||||
% }
|
||||
\begin{minipage}[t][][c]{\textwidth}
|
||||
\begin{fitbox}{\textwidth}{.075\textheight}
|
||||
\centering
|
||||
|
@ -243,7 +244,9 @@
|
|||
\end{minipage}
|
||||
|
||||
\vspace{32mm}
|
||||
\qrcode[height=24mm]{\kdvCode}
|
||||
\begin{pspicture} (0mm, 22.75mm)
|
||||
\psbarcode{\kdvCode}{includetext height=0.9 width=1.125}{ean13}
|
||||
\end{pspicture}
|
||||
|
||||
\pagebreak
|
||||
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
3889744831
|
||||
2060815223
|
||||
2870887596
|
||||
9942826716
|
||||
8147090964
|
||||
3689932700
|
||||
4788964330
|
||||
2998912377
|
||||
1701827862
|
||||
7426068925
|
||||
4784224602
|
||||
5719312188
|
||||
7173459290
|
||||
1941379358
|
||||
8306879159
|
||||
3062530934
|
||||
3427708822
|
||||
6569714123
|
||||
8152759092
|
||||
9002159860
|
|
@ -26,7 +26,7 @@ def main():
|
|||
# add padding
|
||||
chunksize = 4
|
||||
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()
|
||||
for c in chunk(lines, chunksize):
|
||||
ret.append(c)
|
||||
|
@ -35,7 +35,6 @@ def main():
|
|||
for c in ret:
|
||||
for l in c:
|
||||
f.write(l)
|
||||
return
|
||||
with open(sys.argv[3],'w+') as f:
|
||||
for s in secrets:
|
||||
f.write(s)
|
||||
|
|
Loading…
Reference in a new issue