Hello again,

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.

I'm combining strings in this way:

output = r"\textsf{" + string1 + r"\linebreak" + string2 + "}"

I've also tried appending the "\linebreak" string with a space, a \n,
and "{}", but to no avail - the output text always ends up on one line,
just "string1string2". I'm printing the text to the canvas with the
following options:

[pyx.text.valign.middle, pyx.text.halign.boxcenter, pyx.text.size.small,
pyx.trafo.rotate(90)]

Any ideas?

Thanks,

Ian


-- 
The information contained in this E-Mail and any subsequent 
correspondence is private and is intended solely for the intended 
recipient(s).  The information in this communication may be 
confidential and/or legally privileged.  Nothing in this e-mail is 
intended to conclude a contract on behalf of QinetiQ or make QinetiQ 
subject to any other legally binding commitments, unless the e-mail 
contains an express statement to the contrary or incorporates a formal Purchase 
Order.

For those other than the recipient any disclosure, copying, 
distribution, or any action taken or omitted to be taken in reliance 
on such information is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be 
monitored and recorded for business purposes including security, audit 
and archival purposes.  Any response to this email indicates consent 
to this.

Telephone calls to QinetiQ may be monitored or recorded for quality 
control, security and other business purposes.

QinetiQ Limited
Registered in England & Wales: Company Number:3796233
Registered office: 85 Buckingham Gate, London SW1E 6PD, United Kingdom
Trading address: Cody Technology Park, Cody Building, Ively Road, Farnborough, 
Hampshire, GU14 0LX, United Kingdom 
http://www.QinetiQ.com/home/legal.html

-------------------------------------------------------------------------
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