Hi,
On 20.07.06, Bruce wrote:
> Just to close this subject..
>
> After fixing an error in article.cls and testing that my tex
> installation actually compiles fine,
Ah ... ok. I see. (And I even guessed that already when I was reading
the thread ...)
> I get this Exception raised after
> trying again:
>
> Traceback (most recent call last):
> File "pyxtest3.py", line 7, in ?
> text.preamble("\usepackage{color}")
> File "C:\Python23\lib\site-packages\pyx\text.py", line 1166, in preamble
> self.execute(expr, texmessages)
> File "C:\Python23\lib\site-packages\pyx\text.py", line 985, in execute
> self.defaulttexmessagesdocclass + self.texmessagesdocclass)
> File "C:\Python23\lib\site-packages\pyx\text.py", line 1035, in execute
> raise TexResultError("unhandled TeX response (might be an error)", self)
> pyx.text.TexResultError: unhandled TeX response (might be an error)
> The expression passed to TeX was:
> \documentclass{article}%
> \PyXInput{3}%
> After parsing the return message from TeX, the following was left:
> *
> *(C:\program files\texmf\tex\latex\base\article.cls
> Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
> (C:\program files\texmf\tex\latex\base\size10.clo))
>
> I found that if I uncomment the line raising the error (as suggested
> in another trhead named "latex non errors " or something, it works
> fine. Like in that case referred to I`m using miktex, perhaps that`s
> got something to do with it?
No, I'm pretty sure the problem is the space in the path name
(i.e. "program files"). PyX doesn't find a file "C:\program" and hence
it does not ignore all the stuff in the brackets. Sure, we do have
real problems in parsing TeX's output, but we really try to do our
very best. How should we know that
"files\texmf\tex\latex\base\article.cls" is a continuation of the file
name. We just don't know ...
While it's clearly a bug, I don't know how to properly fix it. We
might need to add some more magic here ... (as we already did with
file names longer than the line length). So thanks for the moment for
the hint and I'll add a todo item ...
André
--
by _ _ _ Dr. André Wobst
/ \ \ / ) [EMAIL PROTECTED], http://www.wobsta.de/
/ _ \ \/\/ / PyX - High quality PostScript and PDF figures
(_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user