我在一页(几页)上有一系列表格(长度不一),然后有一个签名位置(需要在页面底部)。这样效果很好,但有时签名最终会成为页面上唯一的项目,这看起来很奇怪。在这种情况下,我希望最后一个表格也被推到下一页,但要放在顶部。我不知道该怎么做
\begin{tabularx}{\textwidth}{Xr}
\arrayrulecolor{tableHeadings}
\multicolumn{2}{l}{\cellcolor{tableHeadings} \textcolor{white}{Academic Subjects}} \\
\hline
Mathematical Methods&2016\\
Chinese Second Language&2015\\
Chemistry&2016\\
Specialist Mathematics&2016\\
English as an Additional Language&2016\\
German&2016\\
\hline
\end{tabularx}
\vspace{1cm}
\begin{tabularx}{\textwidth}{Xr}
\arrayrulecolor{tableHeadings}
\multicolumn{2}{l}{\cellcolor{tableHeadings} \textcolor{white}{House Participation}} \\
\hline
Mathematical Methods&2016\\
Chinese Second Language&2015\\
Chemistry&2016\\
Specialist Mathematics&2016\\
English as an Additional Language&2016\\
German&2016\\
\hline
\end{tabularx}
\vspace{1cm}
\begin{tabularx}{\textwidth}{Xr}
\arrayrulecolor{tableHeadings}
\multicolumn{2}{l}{\cellcolor{tableHeadings} \textcolor{white}{APS / AGSV Sport Participation}} \\
\hline
Table Tennis&2014, 2015, 2016\\
Soccer&2014, 2015, 2016\\
\hline
\end{tabularx}
\vspace{1cm}
%----------------------------------------------------------------------------------------
% Signature
%----------------------------------------------------------------------------------------
\par\vspace*{\fill}
{
\begin{tabular}{ccc}
\line(1,0){200}& \hspace{3cm}& \line(1,0){200} \\
Person A & & Person B \\
\small \textit{Qualifications} && \small \textit{BSc} \\
Title && Position
\end{tabular}
}
{\clearpage}
\newpage
答案1
未经测试,因为您没有提供完整的示例,但是......
\end{tabularx}
\vspace{1cm}
\begin{tabularx}
在水平模式下添加垂直空间,因此后第二张表。
您几乎总是希望\vspace
在垂直模式下添加一个空白行
\end{tabularx}
\vspace{1cm}
\begin{tabularx}
然后为了防止在签名之前出现分页符:
\end{tabularx}
\nopagebreak
%\vspace{1cm}
%----------------------------------------------------------------------------------------
% Signature
%----------------------------------------------------------------------------------------
\vspace{\fill}
{%%%%
\begin{tabular}{ccc}
MWE 在 John 的帮助下
\documentclass{article}
\usepackage{tabularx}
\usepackage{color}
\usepackage{colortbl}
\definecolor{tableHeadings}{gray}{0.6}% previously undefined
\begin{document}
\rule{1pt}{20\baselineskip}
\begin{tabularx}{\textwidth}{Xr}
\arrayrulecolor{tableHeadings}
\multicolumn{2}{l}{\cellcolor{tableHeadings} \textcolor{white}{Academic Subjects}} \\
\hline
Mathematical Methods&2016\\
Chinese Second Language&2015\\
Chemistry&2016\\
Specialist Mathematics&2016\\
English as an Additional Language&2016\\
German&2016\\
\hline
\end{tabularx}
\vspace{1cm}
\begin{tabularx}{\textwidth}{Xr}
\arrayrulecolor{tableHeadings}
\multicolumn{2}{l}{\cellcolor{tableHeadings} \textcolor{white}{House Participation}} \\
\hline
Mathematical Methods&2016\\
Chinese Second Language&2015\\
Chemistry&2016\\
Specialist Mathematics&2016\\
English as an Additional Language&2016\\
German&2016\\
\hline
\end{tabularx}
\vspace{1cm}
\begin{tabularx}{\textwidth}{Xr}
\arrayrulecolor{tableHeadings}
\multicolumn{2}{l}{\cellcolor{tableHeadings} \textcolor{white}{APS / AGSV Sport Participation}} \\
\hline
Table Tennis&2014, 2015, 2016\\
Soccer&2014, 2015, 2016\\
\hline
\end{tabularx}
\nopagebreak
%----------------------------------------------------------------------------------------
% Signature
%----------------------------------------------------------------------------------------
\vspace{\fill}
{\noindent
\begin{tabular}{ccc}
\line(1,0){200}& \hspace{3cm}& \line(1,0){200} \\
Person A & & Person B \\
\small \textit{Qualifications} && \small \textit{BSc} \\
Title && Position
\end{tabular}
}%
{\clearpage}
\end{document}