Another Latex question

M

I have looked on line and don't seem to be able to find the answer to this problem, I am insertying some figures into my report (.jpg format), I can display the images OK but cant seem to stop Latex printing the image file name above it, anybody got any idea how to stop it. I am using the following syntax :


\begin{figure}[h!]
\centering
\includegraphics[height=50mm, width=150mm]{1 GHz Comparison.jpg}
\caption{Vertical Height Scan Comparison-1000 MHz
\label{Height11}
\end{figure}

Thanks
Max

S

hi max
sorry I'm still a new user, just trying :-)
do you think its because the figure is not labeled?
after \label there's no {fig:h!} Height11}
thats why Latex is printing the image file name

this is the simple figure syntax I use

\begin{figure}[hbtp]
\begin{center}
\scalebox{.30}{\includegraphics{TimothyAB}} \caption{
\label{fig:Timothy} Demonstration by Timothy}
\end{center}
\end{figure}

love satchi

A

Hi...I do not know why this is happenning...however you do have a missing } after the caption...try that...

i.e. \caption{Vertical Height Scan Comparison-1000 MHz}

This is the syntax I normally use :D

\begin{figure}[ht]
\centering
\includegraphics[scale=0.8]{app5/Images/MethodFlow.eps}
\caption {Flow diagram indicating sample processing}
\label{fig:MethodFlow}
\end{figure}

PS: Does .jpg work well with Latex? I always converted everything to .eps, because I thought .jpg does not work...

Good luck

J

You need to use PDFlatex for JPEGs and PNGs.

A

Ok Thank you

L

try to put \newline in a few times before typing the above.

L

this is the way i have done my own images

\begin{figure}[!h]
\includegraphics[height=50mm]{graph.jpg}
\caption{GraphB}
\end{figure}

M

Thanks for all the replies, I have managed to find out what the problem is, I have spaces in my file names and Latex doesn't seem to like them for some reason. I removed the spaces and everything seems ok.
Max
:-)

S

:-) love satchi

15385