[pstricks] includegraphics and texlive-2019 - Error: Cannot determine size of graphic

Herbert Voss Herbert.Voss at fu-berlin.de
Thu Jun 13 11:05:20 CEST 2019


Am 13.06.19 um 10:39 schrieb Juergen Rose:

> I know that this is not a PSTricks problem, but at least it is graphics
> under TeX and maybe some reader of this ML has a workaround.
> 
> Since the upgrade to texlive-2019 includegraphics does not work anymore
> for me. If I try to include a PNG or PDF file, xelatex complains about
> "Cannot determine size of graphic ... (no Bound
> ingBox)":


> ! LaTeX Error: Cannot determine size of graphic in stabwerk_4.1_7.png
> (no Bound
> ingBox).


The _two_ dots are the problem. In such cases use
package grffile. However, some more hints: Load
amsmath _always_ before fontspec.

\defaultfontfeatures{Mapping=tex-text}

is the default

\usepackage{xunicode}
\usepackage{xltxtra}

are no more needed.

\documentclass[10pt,a4paper,final]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{grffile}
\begin{document}
   \includegraphics[width=0.4\textwidth]{stabwerk_4.1_7.png}
\end{document}

Herbert


More information about the PSTricks mailing list