Hi
seems that something doesn't like underscores in pYx text strings. This script
====================
from pyx import *
c = canvas.canvas()
c.text(0, 0, "Hello world!")
c.text(0, 2, "Hello_world!")
c.writeEPSfile("hello")
c.writePDFfile("hello")
====================
gave these error messages:
====================
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\PyX-0.9\hello_bug.py", line 5, in
-toplevel-
c.text(0, 2, "Hello_world!")
File "C:\Python24\Lib\site-packages\PyX-0.9\pyx\canvas.py", line 308, in
text
return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
File "C:\Python24\Lib\site-packages\PyX-0.9\pyx\text.py", line 1199, in text
self.finishdvi(ignoretail=1)
File "C:\Python24\Lib\site-packages\PyX-0.9\pyx\text.py", line 1042, in
finishdvi
self.execute(None, self.defaulttexmessagesend + self.texmessagesend)
File "C:\Python24\Lib\site-packages\PyX-0.9\pyx\text.py", line 1034, in
execute
raise TexResultError("unhandled TeX response (might be an error)", self)
TexResultError: unhandled TeX response (might be an error)
The expression passed to TeX was:
\end%
After parsing the return message from TeX, the following was left:
*! Missing $ inserted.
<inserted text>
$
<to be read again>
\end
(cut after 5 lines, increase errordebug for more output)
======================
I am running pYx 9.0 under XP Pro with TeX support from MiKTeX 2.4
Best regards
Alun Griffiths
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user