"William James" <w_a_x_man / yahoo.com> writes:

> Kevin Brown wrote:
> > On Thursday 10 November 2005 15:52, Joseph Alotta wrote:
> > > Greetings,
> > >
> > > Does anyone know how to print Avery labels with ruby?  Perl has a
> > > library for this, but I couldn't find anything with ruby.   How do you
> > > set the font for printing?  How do you tab over a certain number of
> > > centimeters?
> >
> > The best thing to do would be to either port the Perl CPAN library to Ruby or
> > use PostScript directly.  I'm going to need to do something similar shortly,
> > so I may be porting the library in the first place.
> >
> > Anyone else know of a better solution?
> >
> > > Joe
> > >
> > > jalotta at earthlink dot net
> 
> I print labels with TeX.
> 

As do I (well, with LaTex). Here a test template for Avery 2160
labels:

---snip---
% -*-latex-*-
% avery2160test.tex
%
% dkelley -  13 Apr 2001
%

\documentclass[10pt]{article}
\usepackage{labels}
\LabelCols=1
\LabelRows=10
\LeftBorder=80mm
\RightBorder=80mm
\TopBorder=14mm
\BottomBorder=10mm
\LabelInfotrue
\LabelGridtrue
\begin{document}
\begin{labels}
123456789012345678901234567890
2WWWWWWWWWWWWWW
3WWWWWWWWWWWWWW
4WWWWWWWWWWWWWW
5WWWWWWWWWWWWWW

\end{labels}
\end{document}
---snip---


d.k.

-- 
Daniel Kelley - San Jose, CA
For email, replace the first dot in the domain with an at.