Roland's homepage

My random knot in the Web

Printing labels with LaTeX

I bought a packet of 500 labels, see below. On the left is the front of the package. A page with four labels is shown in the middle.

Unused and printed labels

These labels were probably originally intended for a matrix printer since the pages are strung together. The page boundary is perforated, so they are easy to separate. I can print them just fine on my laser printer.

The LaTeX code for typesetting the labels shown on the right in the previous picture is shown below..

% -*- latex -*-
% LaTeX sourcecode file for printing 89x36 mm stickers (four on a page).
% Written by R.F. Smith <> in 2003 and placed in the
% public domain
%%%%%%%%%% Normally no changes required below here %%%%%%%%%%
\usepackage{tgpagella} % Default fonts
\usepackage{calligra} % Font for the addresses
% Settings for the label package; 4 89x36 stickers.
% Create an empty label; for if the label has already been used
%%%%%%%%%%%%%%%%%%%%%% Start of the document %%%%%%%%%%%%%%%%%%%%%%%%
  \texttt{Mr S.\,Holmes\\
  221b Baker Street\\
  London NW1\,6XE\\
  \begin{tabular}{ll}% l,c,r
    Hostname: & \texttt{guardian}\\
    Function: & \texttt{router \& firewall}\\
    IP-address: & \texttt{}\\
\addresslabel{\centering{\calligra\Huge Dry Beans}\\(phaseolus vulgaris)}
\addresslabel{\centering\Huge \LaTeX{} rules!}
%%%%%%%%%%%%%% End of the document contents %%%%%%%%%%%%%%%%%%%

The typeset label is shown on the right in the previous picture. The frames around the individual labels are drawn because the \LabelGridtrue command was used to indicate the size of the labels. For printing one would normally not want to have these frames, and the line containing that command should be removed or commented out by putting a % in front of it.

For comments, please send me an e-mail.

Related articles

European labels for chemicals  →