Graphics, Figures & TablesFigure not inserted

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dumbchick
Posts: 3
Joined: Wed Dec 22, 2010 12:18 am

Figure not inserted

Post by dumbchick »

Hi, I'm trying to insert a figure in LaTeX, but it won't work.

I have the following code:

Code: Select all

\begin{figure}
  \begin{center}
    \includegraphics[width=0.5\textwidth]{design3}
  \end{center}
  \caption{BlaBla}\label{fig:design}
\end{figure}
And the figure design3.png is located in the same directory as the tex-file.

Thank you

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Figure not inserted

Post by frabjous »

"Won't work" is unhelpful description of the problem. What happens exactly? What error messages do you get?

Do you have \includepackage{graphicx} in your preamble?

Are you compiling with pdflatex?

If the answer to each of these is yes, and it still doesn't work, create a complete compiliable minimal working example (basically just the above along with the preamble) and post it here along with the result .log file from when you compile.
dumbchick
Posts: 3
Joined: Wed Dec 22, 2010 12:18 am

Re: Figure not inserted

Post by dumbchick »

code and log in attachment
Attachments
LaTeX2.log
(3.18 KiB) Downloaded 226 times
LaTeX2.tex
(305 Bytes) Downloaded 290 times
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: Figure not inserted

Post by sommerfee »

See http://miktex.org/2.9/issues , section "TeXnicCenter compatibility".

(As an alternative you could use something less crappy than TeXnicCenter, e.g. TeXworks which is part of MikTeX.)
dumbchick
Posts: 3
Joined: Wed Dec 22, 2010 12:18 am

Re: Figure not inserted

Post by dumbchick »

Ok, thank you! Now it displays the picture :)

And TeXnicCenter is not good? It was adviced by my university.
Post Reply