Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
Does tex.stackexchange.com/questions/8625/… help you? –  Thorsten Mar 26 '12 at 8:57
    
or tex.stackexchange.com/questions/2275/…? –  Thorsten Mar 26 '12 at 8:58
    
Or this reference answer regarding floats: tex.stackexchange.com/a/39020/8344 –  Roelof Spijker Mar 26 '12 at 9:00

1 Answer 1

up vote 3 down vote accepted

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}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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