# LaTeX Images in LaTeX

Tags:
1. May 11, 2014

### Rectifier

Hey!

I cant get my images to appear in $LaTeX$ :(
Could you please help me out?

I have read that you can use \includegraphics but when I add it in my code nothing happens.

Code (Text):
\documentclass[a4paper,11pt]{article}
\usepackage[swedish]{babel}
\usepackage{graphicx}

\begin{document}

\begin{graphics}
\includegraphics[width=0.7\textwidth]{folder/test.jpg}
\end{graphics}

\end{document}
Where image is in the same folder as the LaTeX file.

What am I doing wrong?

Last edited: May 11, 2014
2. May 12, 2014

### Staff: Mentor

There are many threads on the problem, they are listed below as related discussions - see if comments in these threads don't help.

AFAIR in most cases it is a problem of correctly assigning directories, but I know next to nothing about LaTeX.

3. May 12, 2014

### Staff: Mentor

There is no such thing as a "graphics" environment. If you want a floating figure, try instead
Code (Text):

\begin{figure}
...
\end{figure}

Otherwise, you can simply put the \includegraphics by itself.

If you figure resides in the same directory as the LaTeX file, don't explicitly include a folder name, just the name of the file.

Last edited: May 12, 2014
4. May 12, 2014

### phyzguy

I think Dr Claude means, "If your figure resides in the same directory as the LaTeX file, don't explicitly include a folder name, just the name of the file."

In other words, if the file test.jpg is in the same folder as the latex file, the includegraphics line should read:

Code (Text):

\includegraphics[width=0.7\textwidth]{test.jpg}

5. May 12, 2014

### Rectifier

Will try that out when I am home thank you all.

6. May 12, 2014

### Staff: Mentor

Thanks for spotting that!

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook