I'm using Texshop 2.47 on a Mac OS 10.6.8 and I cannot, for the life of me get it to properly include the graphic that is attached. In the preferences, I've set 'Default Script' to pdfTeX because I've read somewhere that latex does not recognize PNG files while pdfLaTeX does. I'm not sure if that makes a difference or not.
I'm getting this error message:
Code: Select all
pdftex.def Error: PDF mode expected, but DVI mode detected!
(pdftex.def) If you are using `latex', then call `pdflatex'.
(pdftex.def) Otherwise check and correct the driver options.
(pdftex.def) Error recovery by switching to PDF mode.
See the pdftex.def package documentation for explanation.
Grateful for any suggestions.
Code: Select all
\documentclass{article}
\usepackage[pdftex]{graphicx}
\begin{document}
test
\begin{figure}
\center
\includegraphics{~/directory/search_details.png}
\caption{This shows the picture}
\label{stuff}
\end{figure}
\end{document}