Now I want to generate some labels to put onto photo prints taken from old albums. I bought some 3M 3700-R blank label sheets. These sheets are letter sized, with 15 rows by 4 columns of labels. I only need very simple photo IDs, like "A-002" or "BX-125". 'A' and 'BX' are album indices, and '002' and '125' are photo numbers within their albums. I can fit 3 such IDs side-by-side per label, or 180 IDs per sheet. Two sheets per album ought to be enough. I will split the labels into their 3 parts with a paper cutter.
To do this, I need to be able to align the IDs precisely within TeX. I am having problems. The code below just experiments with one aspect of my task, drawing line segments across the width of the 4 labels in a row. The code contains all relevant dimensions, named (I hope) in an obvious way. I get too large a gap on the left side, lines that are too short, and a gap on the right that is shorter than the one on the left. Thanks for any help.
Process:
- tex labels (latest version packaged with openSUSE)
- dvipdf labels (ditto)
- then print the TeX files
labels.tex:
Code: Select all
\nopagenumbers%
%
\hsize=8.5in \hoffset=-1in%
\vsize=11in \voffset=-1in%
%
\newdimen\hMargin \hMargin=7mm%
\newdimen\vMargin \vMargin=9mm%
\newdimen\colGap \colGap=8mm% unused
\newcount\nRow \nRow=15%
\newcount\nCol \nCol=4%
\newdimen\hLabel \hLabel=1.75in%
\newdimen\vLabel \vLabel=.6666666666667in%
%
\ \vfill%
\vbox{%
\hbox to\hsize{%
\hfill%
\hbox to\hLabel{\hrulefill}%
\hbox to\colGap{\hfill}%
\hbox to\hLabel{\hrulefill}%
\hbox to\colGap{\hfill}%
\hbox to\hLabel{\hrulefill}%
\hbox to\colGap{\hfill}%
\hbox to\hLabel{\hrulefill}%
\hfill%
}%
}%
\vfill\eject%
\end