cals 表 nobreak

cals 表 nobreak

如何保持相同的数字?这\nobreak行不通。抱歉,我的英语不好 :)

\documentclass[12pt,a5paper,landscape]{article}

\usepackage[utf8]{inputenc}
\usepackage[a5paper]{geometry}
\geometry{top=20mm, bottom=20mm, left=20mm, right=20mm}
\geometry{includemp=false}
\geometry{includehead=true,includefoot=true}
\geometry{layouthoffset=0mm, layoutvoffset=0mm}
\geometry{headsep=10pt}
\usepackage[T1]{fontenc}
\usepackage{cals}

\makeatletter

\begin{document}

\begin{calstable}
\colwidths{
{100pt}
{100pt}
{100pt}
}
\thead{
\brow
\alignC
\cell{head1}
\nullcell{ltb}
\nullcell{tbr}
\spancontent{head2}
\erow
}
\tfoot{
\hrule width 300pt height 0.4pt depth 0pt\relax
}

\brow
\cell{1}
\cell{111}
\cell{111}
\erow

\brow
\cell{2}
\cell{222}
\cell{222}
\erow

\brow
\cell{}
\cell{222}
\cell{222}
\erow

\brow
\cell{3}
\cell{333}
\cell{333}
\erow

\brow
\cell{}
\cell{333}
\cell{333}
\erow

\brow
\cell{}
\cell{333}
\cell{333}
\erow

\brow
\cell{4}
\cell{444}
\cell{444}
\erow

\brow
\cell{}
\cell{444}
\cell{444}
\erow

\brow
\cell{}
\cell{444}
\cell{444}
\erow

\brow
\cell{}
\cell{444}
\cell{444}
\erow

\brow
\cell{5}
\cell{555}
\cell{555}
\erow

%\nobreak

\brow
\cell{}
\cell{555}
\cell{555}
\erow

\brow
\cell{}
\cell{555}
\cell{555}
\erow

\brow
\cell{}
\cell{555}
\cell{555}
\erow

\brow
\cell{}
\cell{555}
\cell{555}
\erow

\brow
\cell{6}
\cell{666}
\cell{666}
\erow

\end{calstable}

\end{document}

答案1

\nobreak我建议不要尝试插入,而是垂直连接单元格。然后,您会自动将行合并在一起。

\brow \nullcell{tlr}\cell{555}\cell{555} \erow
\brow \nullcell{lr}\cell{555}\cell{555} \erow
\brow \nullcell{lr}\cell{555}\cell{555} \erow
\brow \nullcell{lr}\cell{555}\cell{555} \erow
\brow \nullcell{blr}\spancontent{5}\cell{555}\cell{555} \erow

在此处输入图片描述

答案2

\tbreak{<code>}您可以在需要分页的行之间设置手动表格分隔符 ( ):

\brow
\cell{}
\cell{444}
\cell{444}
\erow

\tbreak{\vfill\break} % < - manual break

\brow
\cell{5}
\cell{555}
\cell{555}
\erow

请参阅 Oleg Parashchenko 的文章TUGboat,第 32 卷(2011 年)第 193 页

相关内容