1

This the first document I am making in LaTeX and I am having some problems with the images.

As you can see, I placed the figure in section "Metologia y Procedimiento" but it goes to the top of that page right after the first image in section "Marco Teorico". I saw some answers on other forums/pages but they required to get rid of the captions (as I understood it) but the captions are required by my professor.

\documentclass[12pt,letterpaper]{report}

% % %Package loading
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{fullpage}
\usepackage{gensymb}

Here is the part that is giving me problems (i substituted the text for something random to avoid being lengthy):

\section{Marco Teórico}

 Random Paragraph

\begin{figure} 
\centering 
\includegraphics[width=0.57\textwidth]{diferenciales}
\caption[Long caption]{Elemento de fuerza hidrostática sobre una placa plana}
\label{fig: diferenciales}
\end{figure}

\section{Objetivos}

\begin{itemize}
\item Item 1
\item Item 3
\item Item 3
\end{itemize}

\section{Metodología y Procedimiento}

Random paragraph

\begin{figure} 
\centering 
\includegraphics[width=0.4\textwidth]{Equipo}
\caption[Long caption]{Equipo utilizado para la medición de fuerzas hidroestáticas}
\label{fig: equipo}
\end{figure}

\chapter{Datos y Ejemplos del Laboratorio}

Thank you in advance.

First Page

Second Page

Sigur
  • 37,330

1 Answers1

4

I went another route and used the [H] option for the float and added \usepackage{float} to the document.

\begin{figure}[H]
\centering
\includegraphics[width=0.4\textwidth]{Equipo}
\caption[Long caption]{Equipo utilizado para la medición de fuerzas hidroestáticas}
\label{fig: equipo}
\end{figure}

The second answer on How to influence the position of float environments like figure and table in LaTeX? led me to this solution.

enter image description here