I receive two errors when using \includegraphics
command in pdflatex. I've never seen these particular errors discussed/answered before.
I have the following MWE (this is all I have in the document so far):
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\begin{center}
\includegraphics[scale=0.92]{box.png}
\hspace{0.5in}\parbox{6in}{\caption{Box comparing two methods \label{box}}}
\end{center}
\end{figure}
\end{document}
where box is the figure to be included. There are two errors produced. Both of them say the following:
! Undefined control sequence.
recently read \ltx@zapspace
I do not know what these errors mean. I assume they have something to do with \ltx@zapspace
. I appreciate any help or clarification of this error or how to correct it.
Best Answer
Driver file
pdftex.def
uses packageltxcmds
since version2011/04/21 v0.06
:Macro
\ltx@zapspace
is provided by packageltxcmds
since this version2010/12/07 v1.14
.Thus very likely an outdated package is the cause and LaTeX throws a warning, e.g.:
Solution: update at least package
ltxcmds
, better the whole bundleoberdiek
.