New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF parser cannot read documents where /length is a reference #120

gasagna opened this Issue Jan 8, 2017 · 2 comments


None yet
2 participants
Copy link

gasagna commented Jan 8, 2017


It seems there is an issue in importing with \includegraphics some pdf plots generated with matplotib, i.e. those generated by the commands matshow and imshow. The minimal working example is attached here (you might need to change the absolute path to the pdf file in the ipe text element).

The latex compilation reports
screen shot 2017-01-08 at 07 47 36

and the interesting lines in the latexrun log are

(grfext)             [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
(grfext)             \AppendGraphicsExtensions on input line 456.

File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
</Users/davide/example.pdf, id=1, 433.62pt x 433.62pt>
File: /Users/davide/example.pdf Graphic file (type pdf)

<use /Users/davide/example.pdf>
Package pdftex.def Info: /Users/davide/example.pdf used on input line 51.
(pdftex.def)             Requested size: 433.61894pt x 433.61894pt.

Overfull \hbox (170.0pt too wide) in paragraph at lines 55--56


updmap/}>] (./ipetemp.aux) ) 
Here is how much of TeX's memory you used



This comment has been minimized.

Copy link

otfried commented Jan 9, 2017

Have you considered using the Ipe matplotlib backend?

(Has nothing to do with this bug, though.)


This comment has been minimized.

Copy link

gasagna commented Jan 26, 2017

No, have not tried. I guess the problem lies on the matplotlib side rather then here. I know there have been some updates in the imshow/matshow code with the new matplotlib version. I will try again.

@otfried otfried changed the title cannot import matplotlib generated pdf plot using `\includegraphics` PDF parser cannot read documents where /length is a reference Jan 5, 2019

@otfried otfried self-assigned this Jan 5, 2019

@otfried otfried added the enhancement label Jan 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment