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}

相關內容