I'm trying to use datatool
and envlab
to print to and from addresses on a biglabel. Currently my code is close, but not quite there. It will print one combination of to/from on a page and with drastically incorrect margins etc. The MW code is,
\documentclass[12pt]{letter}
% Generates the correct label sheet size
\usepackage[paperwidth=5in, paperheight=7in]{geometry}
\usepackage{datatool}
% loads the csv addr.csv, one row per dest
\DTLloaddb{mailing-list}{addr.csv}
\usepackage[nocapaddress,printbarcodes]{envlab}
%\SetBigLabel{W}{H}{t}{l}{r}{Nc}{Nr}
\SetBigLabel{5in}{7in}{0.25in}{0.25in}{0.25in}{1}{3}
\makelabels
\begin{document}
\startlabels
\DTLforeach{mailing-list}{%
\name=Name,%
\street=Street,%
\suite=Suite,%
\town=City,%
\state=State,%
\zip=Zip,%
\country=Country%,
}{%
\mlabel{%
Joe Casanova\\1 Lambda Street\\Anyplace, NY 12345}{%
\name\\\street\\\town, \state, \zip}}
\end{document}
As I understand it, envlab
and datatool
are at odds in this example but I don't understand how to make each aware of the other. If I make three \mlabel
environments it will print the same information from datatool
. Tricking datatool
by trying to increment it will work but is a dirty patch b/c I would need the same number of \mlabel
environments defined in the code as there are labels on one individual sheet which is kludgy.
Can anyone provide insight? The setup I would like is a 5in x 7in label sheet consisting of 3 vertical labels with 0.25in separation and margins. On each label should be the return address in the upper left and the destination address in the lower right.