Hi,

On 25.05.06, Brett Calcott wrote:
> I've been working around this problem by fiddling with the source for
> a while, but I'd like to sort out a solution. The following should be
> pretty self-explanatory. If I comment out the line that raises this
> error everything works fine. I need to write some message handler to
> fix this. Can you just point me in the right direction...
> 
> Output below ----------------------------
> 
>  File "C:\Python24\Lib\site-packages\pyx\text.py", line 1034, 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:
> 
>      \usepackage[T1]{fontenc}
>      \usepackage{textcomp}
>      \renewcommand{\rmdefault}{pasj}
>      \usepackage[small,euler-digits]{eulervm}
>      \usepackage[scaled=0.92]{asyntax}
>      %
>  \PyXInput{4}%
> After parsing the return message from TeX, the following was left:
>  *(Please type a command or say `\end')
>  *
>  *(C:\miktex\tex\latex\base\fontenc.sty 
>  (C:\miktex\tex\latex\base\t1enc.def))
>  *(C:\miktex\tex\latex\base\textcomp.sty 
>  (C:\miktex\tex\latex\base\ts1enc.def))
>  *
>  (cut after 5 lines, increase errordebug for more output)
> 
> 
> -------------------------------------------------------

Obviously one of the problems is that you pass an empty line to the
preamble method. PyX stumbles about the message "(Please type a
command or say `\end')". We should fix that and I've just added a todo
item for that. But this is not the real problem (at least I guess so).
Maybe some of your other packages fail to load. Could you please try
and run the following code:

    from pyx import *

    text.set(mode="latex", texdebug="test.tex", errordebug=2)
    text.preamble(r"\usepackage[T1]{fontenc}")
    text.preamble(r"\usepackage{textcomp}")
    text.preamble(r"\renewcommand{\rmdefault}{pasj}")
    text.preamble(r"\usepackage[euler-digits]{eulervm}")
    text.preamble(r"\usepackage[scaled=0.92]{asyntax}")

    c = canvas.canvas()
    c.text(0, 0, "Hello, world!")
    c.writeEPSfile("test")

Maybe you already find the problem yourself using the more extensive
debug output. If not you may post the results you get.

HTH,


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/


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to