2

I want to force my document to be in this order:

  • text

  • tabular

  • image

This group is repeated some times; as you can imagine the compiler mix the elements (e.g. text1, tab1, text2, tab2, img1, img2).

How can I force the correct order?

lockstep
  • 250,273
user12818
  • 399

1 Answers1

3

Have a look at the endfloat package, especially at sections 3.4 and 7 of its manual.

\documentclass{article}

\usepackage[nolists,nomarkers,tablesfirst]{endfloat}
\renewcommand{\efloatseparator}{\vspace{\floatsep}}

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\begin{figure}
\centering
\rule{1cm}{1cm}
\caption{A figure}
\end{figure}

\begin{table}
\centering
(Tabular material)
\caption{A table}
\end{table}

\begin{table}
\centering
(Tabular material)
\caption{Another table}
\end{table}

\end{document}
lockstep
  • 250,273