[Tex/LaTex] Manually Place a Figure in LaTeX (here: End of Chapter/Section)

floatspositioning

I have a little problem with the placement of my picture. I want to insert it at the end of the introduction chapter but its place is not where I want.

I think the problem become from the:

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

Because when I insert the picture without using \begin{figure}... the picture is at the end of the chapter as I want.

Look the picture below.

enter image description here

Best Answer

Exact/Manual Placing/Positioning of Figures/Pictures/Tables/"Normally Floating Objects" in LaTeX by Using the float Package


  • The float package provides the H placement option.
  • H places a figure (float) exactly where you put it in the code.
  • The remaining code is the same as for normal figures (floats).
  • Warning: Many very experienced users here seem to dislike this solution for some reason whereas I still like it because the code is the same for floating and non-floating objects.
  • Normally one is supposed to let LaTeX decide where to place a figure (for a nicer layout).
  • I found myself often in a situation (e. g. supervisor wishes a specific position) where I was happy that the float package offers a manual approach.
  • Highley related questions: Force figure placement in text and How to influence the position of float environments like figure and table in LaTeX? (provided in a comment above).

\documentclass{article}

\usepackage{graphicx}
\usepackage{float}

\usepackage{blindtext}

\begin{document}

\blindtext

\begin{figure}[H] % <-- Use [H] for exactly here
\centering
\includegraphics[width=0.8\linewidth]{example-image-a}
\caption{I am a caption.}
\end{figure}

\blindtext

\end{document}

enter image description here