Dear PyX developers,

I have a problem similar to the one fixed by SVN commit r3682: I create a  PDF
using PyX (see image.py). When including this PDF file in a latex document and
compiling, pdflatex aborts:

ts/map/pdftex/updmap/pdftex.map} <./image.pdfInternal Error (0): Call to
Object where the object was type 2, not the expected type 1
Aborted

I have not used the latest developer version of PyX, but I have manually
applied the changes of r3682. Also, pdflatex seems to work with newer version,
but I have no distribution to test this at the moment.

I have attached a minimal example to reproduce the crash. Probably, this is
not a bug in PyX, but a bug with pdflatex.

This is my version of pdflatex (Debian jessie):
$ pdflatex -v
pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian)
kpathsea version 6.2.1dev
Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.13; using libpng 1.6.13
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.26.5

Kind regards, :)

--Michael
\documentclass{article}

\usepackage{graphicx}

\begin{document}

\includegraphics{image.pdf}

\end{document}

Attachment: image.pdf
Description: Adobe PDF document

from pyx import *

text.set(text.LatexRunner)
text.preamble(r"\usepackage{siunitx}")

c = canvas.canvas()
c.text(0, 0, r"\SI{5}{{\um}}")
c.writePDFfile()
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to