末端浮动:章节末尾每页多个表格的间距

末端浮动:章节末尾每页多个表格的间距

作为将每个表格或图片放在每章末尾单独页面上的替代方法,我使用命令在每个图片/表格周围放置一个 \mbox。我该如何控制间距,因为有些表格从每页的中间开始,而其他表格从顶部开始?

\documentclass[oneside,12pt]{book}
\usepackage[tablesfirst,notablist]{endfloat}
\usepackage{titletoc}
\usepackage[demo]{graphicx}
\renewcommand\theposttable{\arabic{chapter}.\arabic{posttbl}}
\renewcommand\thepostfigure{\arabic{chapter}.\arabic{postfig}}
\renewcommand{\efloatseparator}{\mbox{}} %Rather than a separate page between each table


\begin{document}
\chapter{Data}
\startlist{lot}
\begin{table}
\caption{First Table} \label{tab:table1}
\end{table}

\begin{table}
\caption{First Table} \label{tab:table1}
\end{table}

\begin{table}
\caption{First Table} \label{tab:table1}
\end{table}

\printlist{lot}{}{\chapter*{List of tables in Chapter~\thechapter}}
\processdelayedfloats

\chapter{Learning}
\startlist{lot}
\begin{figure}
\centering
\includegraphics{histoOne1}
\caption{My caption for this figure}
\label{fig:MyFigure}
\end{figure}
\begin{figure}
\centering
\includegraphics{histoOne1}
\caption{My caption for this figure}
\label{fig:MyFigure}
\end{figure}
\begin{figure}
\centering
\includegraphics{histoOne1}
\caption{My caption for this figure}
\label{fig:MyFigure}
\end{figure}
\printlist{lot}{}{\chapter*{List of tables in Chapter~\thechapter}}
\processdelayedfloats

\end{document}

答案1

看来人们对此没有多少控制权。

无论如何,在这种情况下,似乎使用

\renewcommand{\efloatseparator}{\vfill}

给出了一个好的结果。

梅威瑟:

\documentclass[oneside,12pt]{book}
\usepackage[tablesfirst,notablist]{endfloat}
\usepackage{titletoc}
\usepackage[demo]{graphicx}
\renewcommand\theposttable{\arabic{chapter}.\arabic{posttbl}}
\renewcommand\thepostfigure{\arabic{chapter}.\arabic{postfig}}
\renewcommand{\efloatseparator}{\vfill} %Rather than a separate page between each table


\begin{document}
\chapter{Data}
\startlist{lot}
\begin{table}
\caption{First Table} \label{tab:table1}
\end{table}

\begin{table}
\caption{First Table} \label{tab:table2}
\end{table}

\begin{table}
\caption{First Table} \label{tab:table3}
\end{table}

\printlist{lot}{}{\chapter*{List of tables in Chapter~\thechapter}}
\processdelayedfloats

\chapter{Learning}
\startlist{lot}
\begin{figure}
\centering
\includegraphics{histoOne1}
\caption{My caption for this figure}
\label{fig:MyFigure1}
\end{figure}
\begin{figure}
\centering
\includegraphics{histoOne1}
\caption{My caption for this figure}
\label{fig:MyFigure2}
\end{figure}
\begin{figure}
\centering
\includegraphics{histoOne1}
\caption{My caption for this figure}
\label{fig:MyFigure3}
\end{figure}
\printlist{lot}{}{\chapter*{List of tables in Chapter~\thechapter}}
\processdelayedfloats

\end{document} 

输出:

在此处输入图片描述

相关内容