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?
latexcannot 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 usepdflatexfrom the command line (pdflatex <filename>)? It seems as if your editor is set up to uselatexrather thanpdflatex. – Qrrbrbirlbel Feb 18 '13 at 05:17pdflatexfrom the command line. I checked the options in Texmaker, but it does look like it is set up to usepdflatex. The first line of the logfile also showsThis is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=pdflatex 2013.2.18) 18 FEB 2013 16:52– Ian Gralinski Feb 18 '13 at 05:55title, that some of them have apdfor anepsextension and that they're corrupt? If yes, a possible solution may be adding the extension to the filenametitle. – Feb 18 '13 at 06:23pngimages (no other formats). I can open the images to view so they don't appear to be corrupt. I also tried removing all files except thetexsource and images, but the error persists. – Ian Gralinski Feb 18 '13 at 07:00\pdfoutput=1at the start of your document, this will switch the mode back to pdf. – Ulrike Fischer Feb 18 '13 at 08:22miktex/configformats.ini,language.iniand 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). – Ulrike Fischer Feb 18 '13 at 14:30\pdfoutput=1after\documentclass{beamer}, but the error persists. @UlrikeFischer- I tried renamingformats.ini,languages.iniandpdflatex.iniin the installation directory and then updating formats, but I just received error messages so I changed the filenames back to the originals. Is there anything else I can try apart from reinstalling MiKTeX? – Ian Gralinski Feb 19 '13 at 06:41miktex/config) contained theinifiles. So I tried going toCommonConfig/miktex/data/le/pdftex, renamedpdflatex.fmtandpdftex.fmt, and then recreated formats. This then allowed me to compile without errors. If you post an answer, I will accept it. Thanks for your help and patience. – Ian Gralinski Feb 21 '13 at 00:29