-
Notifications
You must be signed in to change notification settings - Fork 10
/
brainhack_id_cards.tex
51 lines (44 loc) · 1.42 KB
/
brainhack_id_cards.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
\documentclass[12pt]{letter}
\usepackage{graphicx}
\usepackage[nocapaddress]{envlab}
\usepackage{multido}
\SetLabel
{88.9mm} % width
{57.0mm} % height
{21.4mm} % top margin
{19.05mm} % left margin
{19.05mm} % inter-label gap + right margin
{2} % columns
{4} % rows
\setlength{\ToAddressTopMargin}{0in}%
\setlength{\ToAddressLeftMargin}{0in}%
\setlength{\ToAddressWidth}{3.5in}%
%\addtolength{\ToAddressWidth}{-\ToAddressLeftMargin}%
%\addtolength{\ToAddressWidth}{-\LabelRightMargin}}
\makelabels % Tell envlab to make labels in the document.
%%make a very thin box around the labels
%\setlength{\fboxsep}{0pt}
%\setlength{\fboxrule}{0.005pt}
%\renewcommand{\PrintLabel}[1]{\fbox{\parbox[t][\LabelHeight][t]{\LabelWidth}{\PrintAddress{#1}}}}
%%original \PrinLabel command from envlab.sty
%\renewcommand{\PrintLabel}[1]{\parbox[t][\LabelHeight][t]{\LabelWidth}{\PrintAddress{#1}}}
\usepackage{datatool}
\DTLloaddb{names}{../data/namelist/example_namelist.csv}
\begin{document}%
\startlabels%
%\multido{\i=1+1}{8}{%
\DTLforeach{names}{
\name=Name}{
\mlabel{}{%
\begin{center}
\includegraphics[width=.95\linewidth]{../data/logos/bhgn.pdf}\\
\vskip4ex
{\Huge\bfseries \name} \\
\vskip2ex
\vspace*{\fill}
{Brainhack \{City\} \{Year\}} \\
\emph{Reliability and Reproduciblity in Connectomics} \\
{\small \{Month\} \{Start day\} - \{End day\}, \{City\}}\\
\end{center}
}}
\end{document}