Graphics, Figures & Tables\includegraphics prints file name

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
BalootheBear
Posts: 2
Joined: Sat Jun 18, 2011 5:16 pm

\includegraphics prints file name

Post by BalootheBear »

Hi Gents,

I just started working on latex using TeXnicCenter and Miketex 2.90. I've been editing a work of mine all day yesterday and today and its getting along nicely, however I just cannot include graphics.

I reckon the problem must be something very fundamental, since even this:

Code: Select all

\documentclass[final]{article} 
\usepackage{graphicx} 
\begin{document}
\begin{figure}
	\centering
		\includegraphics{C:/Users/......./.jpg}
	\label{fig:....}
\end{figure}
\end{document}
does not work. All it does is provide the C://Users.... part on the actual output.

Any help greatly appreciated,

Baloo

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Graphics - beginner help?

Post by localghost »

Avoid any special characters like blank spaces or underscores in the path and the name of the file.


Best regards and welcome to the board
Thorsten
BalootheBear
Posts: 2
Joined: Sat Jun 18, 2011 5:16 pm

\includegraphics prints file name

Post by BalootheBear »

Thanks for the response, I've changed the name of the file to just T and it now gives out "graphicx" on the first page?! It nearly seems as if it didn't understand \usepackage{graphicx} and just reads it like text. Am I right in saying that I don't need to download anything special to run this command?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Graphics - beginner help?

Post by localghost »

Upload the log file produced by the example you gave above to the forum server and attach it to your next post.
Post Reply