Graphics, Figures & TablesGraphics Placement

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mbanghart
Posts: 1
Joined: Wed Sep 23, 2009 2:17 pm

Graphics Placement

Post by mbanghart »

How do I force latex to put graphics in specific locations? Right now I have a bunch of figures, but they do not show up at the places where I put them in my original document. I read somewhere it has to do with the way the graphcis engine works.

Thanks
Marc

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Graphics Placement

Post by Stefan Kottwitz »

Hi Marc,

welcome to the board!
Graphics are intended to float to a convenient place from a typographical point of view. If you are using a figure environment you could use optional parameters in order to decide where the graphics should be placed, at top, bottom, in the text or on special float pages.
If you don't want the graphics to float, have a look here: Prevent floating of figures or tables Some methods are described there.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Graphics Placement

Post by localghost »

mbanghart wrote:How do I force latex to put graphics in specific locations? Right now I have a bunch of figures, but they do not show up at the places where I put them in my original document. [...]
Start with a special list of placement parameters.

Code: Select all

\begin{figure}[!ht]
  % figure contents
\end{figure}
The exclamation mark is the key. It makes the compiler neglect some other (internal) parameters.


Best regards and welcome to the board
Thorsten
Post Reply