xtab:如果没有打印行,则防止表格中断

xtab:如果没有打印行,则防止表格中断

对于这个 MWE,表格标题和表头在打印时不包含表格主体的任何行。那么,如何确保在打印至少一行时表格会中断?

\documentclass{article}
\usepackage{xtab,booktabs,multirow,lipsum,showframe}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}

\lipsum[1-3]
newline\\
newline\\
newline\\
newline\\
newline\\

\begin{center}
\tablecaption{this is table caption}
\tablefirsthead{\toprule First&\multicolumn{1}{c}{Name} \\ \midrule}
%
\tablehead{%
\multicolumn{2}{c}%
{{\bfseries  Continued from previous column}} \\
\toprule
First&\multicolumn{1}{c}{Name}\\ \midrule}
%
\tabletail{\\ \midrule}
\tablelasttail{%
\\\midrule
\multicolumn{2}{r}{{Concluded}} \\ \bottomrule}
\begin{xtabular}{ll}
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text comes\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text comes here too \\
    content & some text\\
    content & some text\\
    content & some text\\
    content & some text
\end{xtabular}%
\end{center}
\end{document}

在此处输入图片描述

相关内容