forked from brainhackorg/brainhack_certificates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
template_id_cards_blank.tex
51 lines (44 loc) · 1.38 KB
/
template_id_cards_blank.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{xcolor}
\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/id_namelist.csv}
\begin{document}%
\startlabels%
%\multido{\i=1+1}{8}{%
\DTLforeach{names}{
\name=Name}{
\mlabel{}{%
\begin{center}
\includegraphics[width=.65\linewidth]{./data/logos/ohbm2022.png}\\
\vskip4ex
\color{white}{\Large\bfseries \name} \\
\vskip2ex
\vspace*{\fill}
% {OHBM Brainhack 2022} \\
\color{black}{\small June 16 - 18, Glasgow, UK}\\
\end{center}
}}
\end{document}