I have PNG image I want to introduce into my presentation. The figure is black and white and the edges are small. When I compile the file in pdflatex everything is fine but when I Compile it with xelatex I get !dimension too large error:
[1] <use "./figs/surface.png" > [2]
! Dimension too large.
<to be read again>
b
l.31 \end{frame}
The line I use:
\includegraphics<2> [width=0.8\textwidth]{./figs/surface.png}\par
And the file:
Here is a MWE:
\documentclass[bigger]{beamer}
\begin{document}
\begin{frame}{Coarse-Grained (CG) simulation of a membrane}
\begin{columns}
\begin{column}{0.6\textwidth}
\includegraphics<2> [width=0.8\textwidth]{./figs/surface.png}\par
\includegraphics<3> [width=1.0\textwidth]{./figs/a_lipid_CG.jpg}
\end{column}
\begin{column}{0.4\textwidth}
\begin{itemize}
\item bla
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\end{document}
Here are links to the used files: http://www.4shared.com/photo/EK4CPOF2/a_lipid_CG.html http://www.4shared.com/photo/un7JtzXa/surface.html
\documentclass. And make sure that you make the real graphic available. – Ulrike Fischer Apr 08 '12 at 13:36\includegraphics" – egreg Apr 08 '12 at 13:51biggeroption? – Yotam Apr 08 '12 at 13:57./figs/surface.pnghas been successively included and even shipped out (on page[2]). So the error must come later. – Stephan Lehmke Apr 10 '12 at 08:40a_lipid_CG.jpgseems to cause the issue. I get the same error with\documentclass{beamer} \begin{document} \begin{frame} \includegraphics{a_lipid_CG.jpg} \end{frame} \end{document}. Note that the[1] <use "./figs/surface.png" > [2]is not part of the error message, but only a info message printed before it. – Martin Scharrer Apr 10 '12 at 08:51ResolutionUnit,XResolutionandYResolution. – caw Dec 03 '19 at 00:54