Theses, Books, Title pagesAdding an image as a figure

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Adding an image as a figure

Post by templateuser »

When I add an image using figure and \includegraphics it never stays in the correct section. It always seems to go to the end of the document. Is there any way to fix this or another way for displaying images. sorry for the noob question haha

ACR

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
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Adding an image as a figure

Post by Vel »

Hey,

Are you using the [h] parameter when you begin the figure environment? Do it like this: \begin{figure}[h]

That should force the figure to be placed where you specify it in the text.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Adding an image as a figure

Post by Stefan Kottwitz »

h is often not sufficient if "here" (h) is not enough space. For easiest placement, use as many options as possible for allowing also moving to top, bottom, or separate page, so that it doesn't land too far away.

\begin{figure}[!htbp]

Or use the H option, but this requires loading the float package.

Stefan
LaTeX.org admin
Post Reply