I seem to be getting a strange error after updating MiKTeX 2.9. I am using pdfLaTeX and TeXmaker with the graphicx
package to include .png
images. When I try to compile, I get the error LaTeX Error: File 'title' not found.
If I include the file extension, then the error becomes LaTeX Error: Cannot determine size of graphic in title.png (no BoundingBox)
. I wasn't getting these errors a few days ago when I started creating my presentation. It has also worked without problems in the past.
MWE:
\documentclass{beamer}
\usepackage{graphicx}
\graphicspath{{figures/}}
\begin{document}
\title{title}
\author{author}
\date{date}
\titlegraphic{\includegraphics[scale=0.5]{title}}
\frame{\titlepage}
\end{document}
Also, from the logfile it seems that pdfLaTeX is not in PDF mode, and that all graphics are being treated as .eps
:
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is not detected.
...
File: title.png Graphic file (type eps)
Does anyone know how to fix this problem?
latex
cannot determine the natural dimensions of an image. So the real question is: Why is pdfLaTeX not in PDF mode? Does your MWE compile if you usepdflatex
from the command line (pdflatex <filename>
)? It seems as if your editor is set up to uselatex
rather thanpdflatex
.title
, that some of them have apdf
or aneps
extension and that they're corrupt? If yes, a possible solution may be adding the extension to the filenametitle
.\pdfoutput=1
at the start of your document, this will switch the mode back to pdf.miktex/config
formats.ini
,language.ini
and if it existspdflatex.ini
. And then recreate the formats again. (This can change the language and format settings, you can reset them in miktex->settings).