Hi Simon,

> because there are no examples of it's use, nor does it have a docstring.
> (and i was too lazy to look in the manual)

may be the following example is helpful

==========================================================
from pyx import *

c = canvas.canvas()

text.set(mode="latex")

c.text(0,10,r"This is a simple example for the usage of a parbox.",
           [text.parbox(4)])

# If you do not like the indentation of the first line use the following or
# text.preamble(r"\setlength{\parindent}{0pt}")
c.text(0,5,r"\noindent This is a simple example for the usage of a parbox.",
           [text.parbox(4)])

# If you want to define the linebreaks use the following 
c.text(0,0,r"This is a\\ simple example\\ for the usage\\ of a parbox.",
           [text.parbox(4)])

c.writeEPSfile("parbox_example")
==========================================================

The parbox is a concept from LaTeX and therefore you will find more about
this topic in the LaTeX documentation rather than in the PyX docs.

Best regards,
Gert

-- 
 Gert-Ludwig Ingold        email: [EMAIL PROTECTED]
 Institut für Physik       Phone: +49-821-598-3234
 Universität Augsburg      Fax  : +49-821-598-3222
 D-86135 Augsburg          WWW  : www.physik.uni-augsburg.de/theo1/ingold
 Germany                   PGP  : 86FF5A93, key available from homepage

Attachment: pgpwwGQtHxsEs.pgp
Description: PGP signature

_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to