【问题标题】:LaTeX - tabular start at new lineLaTeX - 表格从新行开始
【发布时间】:2021-11-01 13:48:13
【问题描述】:

我想在行首开始表格,但是当我将它直接放在例如之后\paragraph{Foo}, 会显示在 'Foo' 的右侧。

\documentclass[twocolumn,a4,titlepage]{article}

\begin{document}

\section{foo}
\paragraph{A}
\begin{tabular}{ccc}
X & Y & Z \\
X & Y & Z \\
X & Y & Z \\
\end{tabular}

\paragraph{B}
\begin{tabular}{ccc}
X & Y & Z \\
X & Y & Z \\
X & Y & Z \\
\end{tabular}

\end{document}

我知道,我可以把它放在\begin{center} 和\end{center} 之间,但它会浮动(即有时会在以下文本之后显示)并且会居中,这对于小桌子来说看起来很奇怪。

我坚信这个问题已经在别处得到解答,但我找不到。

谢谢!!

【问题讨论】:

标签: latex tabular


【解决方案1】:

您可以像这样强制表格从新行开始:

\documentclass[twocolumn,a4,titlepage]{article}

\begin{document}

\section{foo}
\paragraph{A}

\begin{tabular}{ccc}
X & Y & Z \\
X & Y & Z \\
X & Y & Z \\
\end{tabular}

\paragraph{B}\mbox{}\par
\noindent\begin{tabular}{@{}ccc}
X & Y & Z \\
X & Y & Z \\
X & Y & Z \\
\end{tabular}

\end{document}

【讨论】:

    猜你喜欢
    • 2014-03-30
    • 2021-08-23
    • 2010-10-12
    • 1970-01-01
    • 2013-01-21
    • 2019-12-10
    • 1970-01-01
    • 1970-01-01
    • 2020-05-12
    相关资源
    最近更新 更多