"Grant Ito" <
leath...@shaw.ca> writes:
> I'm quite new to LaTeX. I'm using TeXworks v.0.4.4.r.1003, MiKTeX 2.9 in
> WindowsXP.
>
> I'm following Andrew Robersts' "Getting to Grips with LaTex" tutorial
> (
http://www.andy-roberts.net/writing/latex), specifically tutorial 5,
> "Importing Images".
>
> Here is my code:
> \begin{figure}
> \begin{center}
don't use center inside a figure (or table) environment; use, rather:
\centering
> \caption{Grant Ito, 2006-08-01 (yikes!)}
> \includegraphics[scale=0.75]{D:/My Documents2/My Pictures/dsc00254.jpg}
>
> \end{center}
delete that, as well as the \begin{center} above
> \end{figure}
>
> I've successfully typset my sample document using the pdfLaTeX option (i.e.,
> no errors or warnings reported), and everything looks great, except for some
> reason I'm getting not only the image but also the filename (minus the drive
> letter, which is odd) printed to the left of the image on the image's
> baseline, causing the whole thing (filename and image together) to be
> centered horizontally.
>
> I would prefer not to have the filename displayed. Can someone please help
> me out?
it's the spaces in the file names; (la)tex comes from a more innocent
age, when you couldn't write essays in file names.
you _could_ read
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=grffilenames
which would tell you two ways out of the dilemma. the simplest, i
guess, is to have
\usepackage{grffile}
before \begin{document} (the area that's referred to as the "preamble"
of the document).
--
Robin Fairbairns, Cambridge