1

I use the endfloat package to place tables at the end of the document. By default, the table list appears first and then the tables themselves. I would like to change the order so that we first have tables and then, at the very end, their list. Is it possible?

Here is an analogous example, but with figures.

\documentclass{article}

\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[tablefirst,markers]{endfloat}

\begin{document}

\section{Example}

It is an example. 
\begin{figure}[h!]
    \centering
    \rule{1cm}{1cm}
    \caption{Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption}
    \label{sample}
\end{figure}

\end{document}
  • 1
    Do you want the list of table before or after the figures? – John Kormylo Mar 11 '19 at 16:30
3

Is this what you want?

\documentclass{article}

\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[tablesfirst,markers,nolists]{endfloat}
\AtBeginFigures{\clearpage\listoftables\clearpage\listoffigures\clearpage}

\begin{document}

\section{Example}

It is an example. 
\begin{figure}[htp]
    \centering
    \rule{1cm}{1cm}
    \caption{Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption}
    \label{sample}
\end{figure}

\begin{table}[htp]
    \centering
    \rule{1cm}{1cm}
    \caption{Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption}
    \label{table}
\end{table}

\end{document}

Or is this more like it?

\documentclass{article}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[tablesfirst,markers,nolists]{endfloat}
\begin{document}

\section{Example}

It is an example. 
\begin{figure}[htp]
    \centering
    \rule{1cm}{1cm}
    \caption{Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption}
    \label{sample}
\end{figure}

\begin{table}[htp]
    \centering
    \rule{1cm}{1cm}
    \caption{Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption. Sample caption}
    \label{table}
\end{table}

\clearpage
\processdelayedfloats
\listoftables\listoffigures

\end{document}
| improve this answer | |

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.