【问题标题】:no page break between table and table caption表格和表格标题之间没有分页符
【发布时间】:2022-07-22 17:35:05
【问题描述】:

我想在上面插入一个带有标题的非浮动表格。 所以我包含了标题包并添加了我的表格:

\usepackage{caption}
...
\begin{center}
    \captionof{table}{Kurvenparameter zur Parametrierung des Spulenstroms}
    \label{tab_kurvenparameter}
    \begin{tabularx}{\columnwidth}{lllX}
        \toprule
        ... table content
        \bottomrule
    \end{tabularx}
\end{center}

现在的问题是:表格对于页面的其余部分来说太大了,所以它被放置在下一页上。但标题仍保留在前一页上。所以现在我的问题是:如何将标题和表格粘合在一起?

【问题讨论】:

  • 请不要发布代码片段,始终发布可编译的minimal reproducible example。在能够测试可能的解决方案之前,必须添加所有无聊的东西,例如缺少包,这非常烦人!

标签: latex


【解决方案1】:

您可以在一个小页面中扭曲整个内容:

\documentclass{article}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{caption}
\begin{document}
\begin{minipage}{\linewidth}
    \centering
    \captionof{table}{Kurvenparameter zur Parametrierung des Spulenstroms}
    \label{tab_kurvenparameter}
    \begin{tabularx}{\columnwidth}{lllX}
        \toprule
        ... table content\\
        \bottomrule
    \end{tabularx}
\end{minipage}
\end{document}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-08-16
    • 2013-05-27
    • 2017-09-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多