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?
Best Answer
This problem was solved by renaming
pdflatex.fmt
andpdftex.fmt
in theCommonConfig/miktex/data/le/pdftex
directory and then recreating formats as "user".