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?

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.