我需要使用 longtable 指定必须位于同一页面上的行。我该怎么办?

发布于 2024-09-14 08:30:12 字数 541 浏览 3 评论 0原文

我有很长的图片和描述表(我使用 longtable 环境将其放在页面上的几列中)。我希望将其拆分为图片,而不是中间标题和图片。我的表格看起来像这样:

\multicolumn{3}{2}{description} \\
\includegraphics[]{} &
\includegraphics[]{} &
\includegraphics[]{} \\
\multicolumn{3}{2}{description} \\
\includegraphics[]{} &
\includegraphics[]{} &
\includegraphics[]{} \\
...

我希望 LaTeX 在 \multicolumn 之前的页面之间分割它,而不是在 \multicolumn\includegraphics 之间。 有可能这样做还是我应该尝试其他方法?

我尝试使用 \multirow{3}{*}{ } 将行粘在一起,但它不起作用。

I have long table of pictures and descriptions (I use longtable environment to get it in several columns on page). I want this to be splitted past picture, not between middle title and picture. My table looks like this:

\multicolumn{3}{2}{description} \\
\includegraphics[]{} &
\includegraphics[]{} &
\includegraphics[]{} \\
\multicolumn{3}{2}{description} \\
\includegraphics[]{} &
\includegraphics[]{} &
\includegraphics[]{} \\
...

I want LaTeX to split this between pages before \multicolumn, not between \multicolumn and \includegraphics.
Is there possibility to do this or I should try another way?

I tried to use \multirow{3}{*}{ } to stick rows together but it isn't work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

再见回来 2024-09-21 08:30:16

标准 longtable 文档表示 \\* 是“与 \\ 相同,但不允许在行后分页”。

Standard longtable documentation says that \\* is "The same as \\ but disallows a page break after the row."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文