Graphics, Figures & TablesFigures appearing above the section title.

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
fato
Posts: 3
Joined: Sat Feb 06, 2010 12:51 pm

Figures appearing above the section title.

Post by fato »

Hello guys,

I wanted to add some images in the end of my text, under the section "Anhang". The problem is that the first images appear above de section title. I tried to make them smaller but it did not change anything. Do you guys have any solution for me ?


Thanks a lot,

fato

Recommended reading 2024:

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

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

fato
Posts: 3
Joined: Sat Feb 06, 2010 12:51 pm

Re: Figures appearing above the section title.

Post by fato »

That is how it looks like:

[...]

\bibitem{sunier} Sunier Jean, \textit{La fabrication de la bi\`ere}, \textit{Les principes de base et les connaissances pratiques pour \'elaborer de la bonne bi\`ere}, Qu\'ebec, Alliage Editeur, 2007

\bibitem{wikipedia}Wikipedia, \textit{The Free Encyclopedia}, 25.09.09, http://commons.wikimedia.org/wiki/File:Hopfen1.jpg

\end{thebibliography}

\end{multicols}

\newpage

\section{Anhang}

\begin{figure}
\includegraphics[scale = 0.5]{malz.eps}
\caption{Brau-, Karamell- und R\"ostmalz\cite{brouwland}}
\end{figure}

\begin{figure}
\includegraphics[scale = 0.35]{Humulus_haut.eps}
\caption{Hopfen ist eine Kletterpflanze. \cite{bonadea}}
\end{figure}

[...]
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Figures appearing above the section title.

Post by gmedina »

Hi,

use !ht as the placement specifier for your figures:

Code: Select all

\documentclass{article}

\begin{document}

\section{Test section}
\begin{figure}[!ht]
  \centering
  \rule{4cm}{2cm}
  \caption{test figure one.}
  \label{fig:test1}
\end{figure}

\begin{figure}[!ht]
  \centering
  \rule{4cm}{2cm}
  \caption{test figure two.}
  \label{fig:test2}
\end{figure}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
fato
Posts: 3
Joined: Sat Feb 06, 2010 12:51 pm

Re: Figures appearing above the section title.

Post by fato »

It works!

Thank you so much!

Fato
Post Reply