diff --git a/README.md b/README.md index ba5de5a..3b98924 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -# kif-badges \ No newline at end of file +# 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. diff --git a/badge.tex b/badge.tex index 661d3a2..cc54570 100644 --- a/badge.tex +++ b/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 diff --git a/empty_badges.txt b/empty_badges.txt deleted file mode 100644 index ff77cc7..0000000 --- a/empty_badges.txt +++ /dev/null @@ -1,20 +0,0 @@ -3889744831 -2060815223 -2870887596 -9942826716 -8147090964 -3689932700 -4788964330 -2998912377 -1701827862 -7426068925 -4784224602 -5719312188 -7173459290 -1941379358 -8306879159 -3062530934 -3427708822 -6569714123 -8152759092 -9002159860 diff --git a/list_reorder.py b/list_reorder.py index 586a803..bd13d01 100644 --- a/list_reorder.py +++ b/list_reorder.py @@ -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)