On 7/17/06, Michael Schindler <[EMAIL PROTECTED]> wrote:
> Hello Bruce,
>
> On 17.07.06, Bruce wrote:
> > I`m having trouble using latex mode with pyx. I get an error when
> > testing the use of latex, seems like system isn`t set to use latex in
> > some way. I have installed tex and I wonder if I have to do something
> > to make PyX find it or something?
> > If I say
> >
> > pyx.text.set(mode="latex")
> >
> > I get something like:
> >
> > TexResultError: Unhandled tex response
> > expression passed to tex was
> > \doucumentclass{article}%
> > \PyXInput{3}
> > then there`s the path to article.cls
> > path to size10.clo
> > !Ilegal parameter number in definition of \striptwo
>
> Your problem description is not yet sufficient to analyze the problem.
> Please try out one of the example files on the pyx hompage:
> The "hello world" example is a minimal example for the use of TeX. You
> can switch it to use LaTeX as well.
> Please send the whole error output of this example.
>
> Then, we need to know what kind of TeX distribution on what operating
> system you use.
>
> Best,
>  Michael.
>
> --
> "A mathematician is a device for turning coffee into theorems"
>  Paul Erdös.
>
>
> -------------------------------------------------------------------------
> 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
>

Thanks. I`ll try to provide more information. The tex distro is
MiKTeX-TeX 2.4.1986 (3.141592) (MiKTeX 2.4) on Windows XP. The Hello
World example:

from pyx import *

c = canvas.canvas()
c.text(0, 0, "Hello, world!")
c.stroke(path.line(0, 0, 2, 0))
c.writeEPSfile("hello")
c.writePDFfile("hello")

is working fine. However, if try for example this one:

from pyx import *
unit.set(uscale=2, xscale=2)

col = color.cmyk.PineGreen

text.set(mode="latex")
text.preamble("\usepackage{color}")
text.preamble(r"\definecolor{COL}{cmyk}{%(c)g,%(m)g,%(y)g,%(k)g}" % col.color)

c = canvas.canvas()
c.text(0, 0, r"\textcolor{COL}{Text} and outline have the same color")
c.stroke(path.rect(-0.2, -0.2, 6.2, 0.6), [col])
c.writeEPSfile("color")
c.writePDFfile("color")

, I get the errormessage like in previous posting. It`s cut after 5
line, how can I increase errordebug?

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

Reply via email to