I'm trying to insert a file into my document. In the preamble I have
\usepackage{graphicx}
\usepackage{epstopdf}
Then in the text I have:
\begin{figure}[!ht]
\centering
\includegraphics[width={\textwidth}]{C:/..[full file path inserted]/DLSdiameter.eps}
\caption{Sizes of detergent micelles calculated by DLS.}
\label{fig:DLS_diameter}
\end{figure}
(note each command starts a new line, but I can't get that to display here without a linespace as well.)
This inserts the figure but leaves a large blank space above the figure in which parts of the file path are displayed twice. I also get two errors: 'File'C:/filepath' not found' and 'Cannot determine size of graphic in 'C:/filepath''. I initially used the Insert>Figure options in TeXnicCentre with some modifications to the code from internet searches. I am also using the conversion LaTeX=>PS=>PDF, as this is the only option which seems to display the figure. Any suggestions would be welcome. Thanks.
\not/(as on unix/mac). – Ronny Dec 21 '12 at 12:44{}button (just highlight the text first) or simply indent by 4 spaces. For inline code you can use bactickslike this– David Carlisle Dec 21 '12 at 12:47/as the separator (and this is easier as it avoids other uses of\) – David Carlisle Dec 21 '12 at 12:48