I need to have some text place AFTER an algorithm. Here is an MVE:
\documentclass[12pt,addpoints]{exam}
\usepackage[section]{algorithm}
\usepackage{fixltx2e}
\usepackage{algpseudocode}
\begin{document}
Some text before the algortihm.
\begin{algorithm}
\caption {An algorithm.}
\begin{algorithmic}[H]
\Function{theAlgorithm}{} :
\State test
\EndFunction\\
\end{algorithmic}
\end{algorithm}
Some more text after the algorithm.
\end{document}
The output is formated this way:
Some text before the algorithm. Some text after the algorithm.
---THE ALGORITHM---
I want to have:
Some text before the algorithm.
---THE ALGORITHM---
Some text after the algorithm.
I have tried to put it in a figure with different placement constraints but so far nothing works.
