|
From: Brett C. <br...@co...> - 2003-09-18 12:48:19
|
>
> sorry for the delay, I was on holiday and Andr=E9, too.
Hope it was good!
>
> You need the kpathsea header files, which probably are not included
> in the MikTeX distribution. On the other hand, it's no major drawback
> if you use the kpsewhich workaround.
Is it not possible to include them in the distro?
>
> > 2. it reverts to kpsewhich, but on my machine (using MikTeX), this wo=
n't
> > find the psfonts.map file. I hardcoded this in.
>
> This is a bug indeed, which already has been fixed in CVS.
>
I got everything from CVS, installed it and I still get
X:\pyx\examples>python hello.py
Traceback (most recent call last):
File "hello.py", line 6, in ?
c.writetofile("hello")
File "c:\python23\Lib\site-packages\pyx\canvas.py", line 943, in
writetofile
pritem.write(file)
File "c:\python23\Lib\site-packages\pyx\prolog.py", line 123, in write
raise RuntimeError("cannot find type 1 font %s" % self.filename)
RuntimeError: cannot find type 1 font cmr10.pfb
This file is here:
c:\miktex\texmf\type1\bluesky\cm\cmr10.pfb
> > Everything seems to run now, but :
> > 3. fonts don't seem to be produced properly, prbly cos' my hack in 2
didn't
> > work.
>
> Maybe this are the effects of another bug, which also has been fixed
> in CVS. Btw, have you been able to build the t1strip c extension module=
?
tstrip builds fine. I have no idea what it does..
>
> > 4. temporary .dvi files are left around the place.
>
> Is this always the case, or only if PyX exits with an exception?
>
No, they get left around even if everything works.
> > 5. Output in the eps files seems jammed in the bottom left corner (us=
ing
> > ghostscript viewer) is this just a config problem??
>
> This is normal behaviour of EPS files. However, if you don't like this,
> use something like
>
> c.writetofile(filename, paperformat=3D"a4")
>
> to shift the output to the centre of an a4 page.
>
> > Also -- how do I change the default font?
>
> For this, you have to use an appropriate LaTeX package (like times.sty).
> Activate it with
>
> text.preamble(r"\usepackage{times}")
>
I use the mathpazo package (palatino with math) all the time.
I tried it in the hello.py example after the from pyx import *
X:\pyx\examples>python hello.py
Traceback (most recent call last):
File "hello.py", line 2, in ?
text.preamble(r"\usepackage{mathpazo}")
File "c:\python23\Lib\site-packages\pyx\text.py", line 2230, in preambl=
e
self.execute(expr, *args)
File "c:\python23\Lib\site-packages\pyx\text.py", line 2068, in execute
raise TexResultError("unhandled TeX response (might be an error)", se=
lf)
pyx.text.TexResultError: unhandled TeX response (might be an error)
The expression passed to TeX was:
\usepackage{mathpazo}%
\PyXInput{5}%
After parsing the return message from TeX, the following was left:
*! Undefined control sequence.
<*> \usepackage
{mathpazo}%
Sorry I can't be more helpful -- I don't know the internals of latex that
well.
Let me know if you need more info.
Brett
|