I'm trying to make sticky labels with LaTeX. I thought this would be pretty simple because of LaTeX's nice support of absolute units, but it turned out to be quite difficult. This is the specification of the label paper:
- Left and right margin: 0mm
- Upper and lower margin: 8mm
- Label height: 25mm
- Label width: 52mm
- Inner label margin: 2mm
That's 11 rows and 4 columns of labels. The label will contain just text. Here's what I've got to so far:
\documentclass[portrait,a4paper,danish,oneside,final,10pt]{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{geometry}
\usepackage{palatino}
\usepackage{tabularx}
\geometry{hoffset=0mm,
hmargin=0mm,
vmargin=8mm,
footskip=0mm,
papersize={210mm,297mm},
total={210mm,297mm}}
\pagestyle{empty}
\aliaspagestyle{chapter}{empty}
\aliaspagestyle{part}{empty}
\setlength{\tabcolsep}{2mm}
\newcommand{\labeltext}{\textbf{M\&M} er en sød vin lavet på hyben plukket ved Vemmingbund Strand i Sønderjylland. Vinen produceres.}
\begin{document}\noindent
\begin{tabularx}{\textwidth}{X|X|X|X}\hline
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\labeltext & \labeltext & \labeltext & \labeltext \vfill \\%[\mylabelheight]
\hline
\end{tabularx}%
\end{document}
This is almost correct. However, the table cells don't expand their height to fit the paper (this is, bottom row should touch the bottom margin).
Also, I can't figure out how to get an upper and lower margin of 2mm inside each cell. I tried using \vspace{2mm}, but that produces a much larger space than requested.
I tried posting a picture of the result, but I'm not allowed to at the moment. Sorry.
Thanks in advance!


!in front of the string you get (![text][1]). A user with enough rep will put back the!for you. You should also have a look at thelabelspackage. – egreg Sep 24 '12 at 21:46labelspackage. – Brent.Longborough Sep 24 '12 at 22:08labelspackage, but from what I understood from the manual, it only works for ond brand of labels (unless I modified the code itself, which I didn't have the courage to do). – Dan Sep 25 '12 at 7:56