Hi all,
(I am using MikTeX with TeXnicCenter)
With \usepackage{graphicx} in the preamble, I am able to insert an image using \includegraphics{Whatever.png}. However, I have no control over placement of the image (top, bottom, here, etc.); it usually is inserted in the text wherever the command is issued.
But, When I use:
\begin{figure}[tp]
\centering
\includegraphics{Whatever.png}
\caption{blah blah}
\label{fig:WhateverImage}
\end{figure}
No image shows up in my PDF document at all, not even a space for the image.
Very confused.
Thank you for any help,
Dave
Graphics, Figures & Tables ⇒ Problem with Figure Environment
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with Figure Environment
Check the log file for warnings and error messages.gtechdave6 wrote:[...] No image shows up in my PDF document at all, not even a space for the image. [...]
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 3
- Joined: Fri Sep 18, 2009 7:30 pm
Problem with Figure Environment
Thank you for your reply, Thorsten.
Ok, so the warning issued for that error is as follows:
I wasn't aware that I couldn't use the figure environment within the multicols environment. Is there another way to position an image using within the multicols environment?
Ok, so the warning issued for that error is as follows:
!Package multicol Warning: Floats and margins not allowed inside 'multicols' environment!
I wasn't aware that I couldn't use the figure environment within the multicols environment. Is there another way to position an image using
Code: Select all
\includegraphics{}
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Problem with Figure Environment
\includegraphics would work, but single column floats are not possible with multicolumn. Floats spanning all columns may work, using a a starred float environment.
Stefan
Stefan
LaTeX.org admin