I am using Sweave (in Emacs) to generate a report. I can compile the .tex file just fine. There are images (PDFs) that I generate (I have graphicx included in my \usepackage{}; I am not dealing with issues coming from LaTeX looking for EPS files) in my code. When I go to run pdflatex on my resulting *.tex file, I get the error below. The picture in question (normalization_analysis-002) is in the same folder as my *.tex file. Moreover, I get this error whether I attempt to compile through Emacs or via the command line; in Emacs and command line my working directory is the same directory as where the *.tex file is located. Finally, this is the first time this problem has occurred, despite using Emacs + Sweave for some months now on the same computer system for a variety of projects. What is happening?
I should point out that recompiling other files on the same system works. I cannot generate a reproducible error b/c the data I am using is not public yet, so I am asking instead for advice about how to troubleshoot this issue.
The log is available here
! LaTeX Error: File `normalization_analysis-002' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.30 \includegraphics{normalization_analysis-002}
?
! Emergency stop.
...
l.30 \includegraphics{normalization_analysis-002}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on normalization_analysis.log.
Per a comment from @David Carlisle, adding .pdf to the argument to \includegraphic{} yields the following error:
LaTeX Warning: File `normalization_analysis-002.pdf' not found on input line 86
.
! Package pdftex.def Error: File `normalization\unhbox \voidb@x \penalty \@M \h
skip \z@skip \T1\textunderscore \discretionary {-}{}{}\penalty \@M \hskip \z@sk
ip analysis-002.pdf' not found.
See the pdftex.def package documentation for explanation.
Type H <return> for immediate help.
...
l.86 ...degraphics{normalization_analysis-002.pdf}
.logexcerpt the first hyphen is an underscore. – Heiko Oberdiek Feb 26 '15 at 22:06[dvips]would be bad) or the file isn't readable due to permissions or being locked by another process or something, or the current working directory pr pdflatex isn't where you expected so effectively the pdf file isn't there or something I can't guess:-) – David Carlisle Feb 26 '15 at 22:50_defined to a macro to have an effect on typesetting so latex was looking for a file with the namenormalization\unhbox \voidb@x \penalty \@M \h skip \z@skip \T1\textunderscore \discretionary {-}{}{}\penalty \@M \hskip \z@sk ip analysis-002.pdf– David Carlisle Feb 26 '15 at 23:15_is not expandable, it would just write as itself but normally it is a math only character for subscriptsx_2looks like you have a non standard definition of _ so that it makes a _ in text. – David Carlisle Feb 26 '15 at 23:18