endfloat - 出现顺序

endfloat - 出现顺序

我使用endfloat包将表格放在文档末尾。默认情况下,首先显示表格列表,然后显示表格本身。我想更改顺序,以便我们首先显示表格,然后在最后显示其列表。可以吗?

这是一个类似的例子,但带有数字。

\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

这是你想要的吗?

\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}

或者这更像它?

\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}

相关内容