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 would like to place all of the tables in the document at the end but before the bibliography generated by biblatex and the notes printed by endnotes.

In other words, I'd like to collect the tables and output them all in their section using something like

\printtables

or

\printfloats

It seems to me I can't use endfloat because it prints the tables on a new page and literally at the end of the entire document (ie after the bibliography and the end notes)

share|improve this question

1 Answer 1

up vote 11 down vote accepted

Use the endfloat package, loading it in the following way:

\usepackage[tablesonly,nomarkers]{endfloat}

and use

\processdelayedfloats 

before the bibliography or at the point where you want your tables to appear. If you don't want every table to start in a new page, you can redefine \efloatseparator (defaul value: \clearpage); something along these lines:

\documentclass{article} 
\usepackage[tablesonly,nomarkers]{endfloat}

\renewcommand\efloatseparator{\mbox{}}

\begin{document}

\section{test}
\begin{table}
\centering
\begin{tabular}{c}
text \\
text \\
text \\
text  \\
\end{tabular}
\caption{A test delayed table}
\end{table}
\section{test}
\begin{table}
\centering
\begin{tabular}{c}
text \\
text \\
text \\
text  \\
\end{tabular}
\caption{Another test delayed table}
\end{table}

\processdelayedfloats

\begin{thebibliography}{9}
\bibitem{a} test
\end{thebibliography}

\end{document}

And the last page of the document produced:

enter image description here

share|improve this answer
1  
...and regarding the "it prints the tables on a new page" stuff: You can redefine \efloatseparator to change that, see endfloat doc, section 7. (No need to redefine \clearpage) –  Axel Sommerfeldt Apr 28 '12 at 5:11
1  
@AxelSommerfeldt: you're right. I've incorporated your siggestion into my answer. Thanks! –  Gonzalo Medina Apr 28 '12 at 5:16

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.