Hi Ian,

Am Montag 02 Juni 2008 11:53 schrieb Renton Ian:
> I'd like to manually put line breaks into some text I'm displaying using
> PyX.  From the archives of this list I've discovered that the proper
> LaTeX command to use is "\linebreak".  However, I can't seem to make it
> break properly.

The following works for me

from pyx import *
width = 1
c = canvas.canvas()

text.set(mode="latex")
text.preamble(r"\parindent0ex")

c.text(0, 0, r"Hello, \linebreak world!",
       textattrs=[text.parbox(width)])

c.writeEPSfile("hello")

Greetings,
Stefan

Attachment: pgphQsyNr0w8v.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to