Since reading your comment, I investigated Latex (which I've never really used) a bit more and found that Latex should indeed do what I want.  Since I'm building a system in Python, and PyX wraps Latex, I'm not sure that this is a misuse of PyX...

Anyway, what I would like to do is create a class that allows me to create a table, and be able to set for each cell/column/row or entire table:

background color
horizontal alignment
borders (on or off)

to be more general you could add:
text color and vertical alignment to the above list of attributes.

I think I see the path ahead for doing this with the colortbl package in latex.  If I'm feeling enterprising and community oriented, perhaps I'll offer it up to the world when I'm finished...

Incidentally, is anyone else having trouble reading the mailing list archives?


On May 2, 2007, at 7:11 PM, Alan G Isaac wrote:

On Wed, 2 May 2007, Michael Hearne apparently wrote: 
I offhandedly asked this earlier, but I really would like to know: 
Are there any examples out there of PyX being used to create tables 
in PostScript? 
An example of the kind of functionality I'm looking for is in groff/tbl. 

Frankly this sounds to me to be  a misuse of PyX.
Can you motivate it a bit?
I assume you are aware of LaTeX + dvips?

Alan Isaac

Michael Hearne
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.