Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is it possible to generate PDF files in TeX that can be printed to odd-format printers, e.g. the DYMO LabelWriter 450? This label maker prints to a roll of labels with page/label sizes such as, e.g. 1-1/8" x 3-1/2".

My first thought is a package such as EnvLab or labels, however both those packages seem to support only standard sized pages with multiple labels on the page in a grid. I couldn't find a package that supported non-standard sized pages.

My second thought is to use the geometry package, but I'm not sure if that's a plausible or the best solution.

I'd be very grateful for thoughts and suggestions.

share|improve this question
2  
geometry should work fine. –  Ulrike Fischer Feb 16 '11 at 18:30
add comment

1 Answer 1

up vote 6 down vote accepted

As Ulrike said, the geometry package works fine. You customize the stock size as required in the geometry package definition, and then proceed and define a new label with necessary dimensions. Here's a quick and dirty example:

\documentclass{article}
\usepackage[paperwidth=10in, paperheight=7in]{geometry} % Define paper stock size here

\usepackage[newdimens]{labels}
\numberoflabels=20

% These are the label parameters. Customize to your heart's content.
\LabelCols=5           % Number of columns of labels per page
\LabelRows=4           % Number of rows of labels per page
\LeftPageMargin=7mm    % These four parameters give the
\RightPageMargin=7mm   % page gutter sizes. The outer edges of
\TopPageMargin=15mm    % the outer labels are the specified
\BottomPageMargin=15mm % distances from the edge of the paper.
\InterLabelColumn=2mm  % Gap between columns of labels
\InterLabelRow=0mm     % Gap between rows of labels
\LeftLabelBorder=5mm   % These four parameters give the extra
\RightLabelBorder=5mm  % space used around the text on each
\TopLabelBorder=5mm    % actual label.
\BottomLabelBorder=5mm 

\begin{document}

    % Here's your label definition
    \begin{labels}
        Me
        My address
        My City, State, Zipcode
        My Brother
        His address
        His City, State, Zipcode
    \end{labels}

\end{document}

Admittedly, you'll need to do some calculations and assumptions to find all the parameters (assuming your label size is fixed), but here are the handy formulas (from the labels package):

LabelRows × Label height + (LabelRows − 1) × InterLabelRow = paperheight − TopPageMargin − BottomPageMargin

LabelColumns × Label width + (LabelColumns − 1) × InterLabelColumn = paperwidth − LeftPageMargin − RightPageMargin

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.