使用 endfloat 包生成后续章节中的表格标题

使用 endfloat 包生成后续章节中的表格标题

我使用 endfloat 包将表格和图片放在每章末尾。但是,我发现即使章节结束后也有一个“表格”标题。下面是 MWE:

\documentclass [11pt, proquest] {uwthesis}

\setcounter{tocdepth}{1} 
\usepackage{subcaption}
\captionsetup{compatibility=false}
\usepackage[nomarkers, figuresfirst, nofiglist, notablist]{endfloat}
\usepackage{titletoc}

\begin{document}
\textpages

% ========== Chapter 1
\chapter {Introduction}
some text

\startlist{lot}

\section{chapter 1}
Some text

\begin{table}[htbp]
\caption{Table 1 here \label{tab1}}
table 1 here
\end{table}

\begin{table}[htbp]
\caption{Table 2 here \label{tab2}}
table 2 here
\end{table}

\processdelayedfloats

% ========== Chapter 2
\chapter{chapter 2}

\startlist{lot}
Some text
\begin{table}[htbp]
\caption{Table 3 here \label{tab3}}
table 1 here
\end{table}

\begin{table}[htbp]
\caption{Table 4 here \label{tab4}}
table 4 here
\end{table}

\processdelayedfloats

\end{document}

另一个这里没有显示的问题是,即使我尝试使用 endfloat 中的 [figuresfirst] 选项将图形放在表格之前,它总是在末尾混合表格和图形。任何想法或意见都将不胜感激。谢谢!

在此处输入图片描述

答案1

如果可以避免,请从标准课程开始,而不是从现成的论文课程开始。后者似乎更容易开始,但通常最终会变得更加困难。例外情况是,如果课程是专门为您需要使用的格式设计的,并且您既不需要也不想(或希望但不被允许)对其提供的格式进行任何更改。

但是,如果您接近提交截止日期,并且您的文档几乎符合您需要的格式,那么您可以考虑以下方法,尽管它可能会产生副作用。要检查这一点,请仔细检查使用 触发的延迟浮动输出之后的任何页面\processdelayedfloats

这用于通过附加到每个发生的位置来etoolbox进行修补。\processdelayedfloats\clearpage\markdboth{}{}

根据浮动页面调整页面样式

\documentclass [11pt, proquest] {uwthesis}
\setcounter{tocdepth}{1}
\usepackage{subcaption}
\captionsetup{compatibility=false}
\usepackage[nomarkers, figuresfirst, nofiglist, notablist]{endfloat}
\usepackage{titletoc}
\usepackage{etoolbox}
\apptocmd\processdelayedfloats{\clearpage\markboth{}{}}{\typeout{Hurray! Patched processdelayedfloats.}}{\typeout{Oh no! processdelayedfloats unpatched!}}
\begin{document}
\textpages

% ========== Chapter 1
\chapter {Introduction}
some text

\startlist{lot}

\section{chapter 1}
Some text

\begin{table}[htbp]
\caption{Table 1 here \label{tab1}}
table 1 here
\end{table}

\begin{table}[htbp]
\caption{Table 2 here \label{tab2}}
table 2 here
\end{table}

\processdelayedfloats

% ========== Chapter 2
\chapter{chapter 2}

\startlist{lot}
Some text
\begin{table}[htbp]
\caption{Table 3 here \label{tab3}}
table 1 here
\end{table}

\begin{table}[htbp]
\caption{Table 4 here \label{tab4}}
table 4 here
\end{table}

\processdelayedfloats

\end{document}

相关内容