Latex 中的表格与页面的第二列重叠

发布于 2024-09-30 23:57:43 字数 1196 浏览 3 评论 0原文

我在 LaTeX 中的表格方面遇到了问题。我正在使用会议中的预定义格式,这使得页面由两列组成。我的表格太宽,无法包含在一列中,因此它转到页面的第二列并与文本重叠!

  1. 为什么 LaTeX 允许这样做?
  2. 在当前格式下,是否可以将表格制作为一个块,以便它使用两列,并将另一列中的文本向下拖动一点?
  3. 还有其他建议吗?

这是我的代码:

\begin{table}
\centering
\begin{tabular}{|c|c|c|c|c|c|}
\hline
Rule & Factor & Best Value & Delta_t & Delta_{do} & Comments \\
\hline
\multirow{3}{c}{Diagonal Dominance} & Line Angle & 45 & 15 & 30 & The angle between the prominent line of the object and
the diagonal lines \\ % TODO: What object? Make sure it is clear.
                                    & Line Distance & 0 & 0.25 & 1 & The distance, in screen coordinates, from the
prominent line of the object to the diagonal lines. \\ % TODO: Need to define screen coordinates
                                    & Corner Distances & 0 & 0.1 & 0.7 & The distance, in screen coordinates, from the
end of the prominent line of the object to the corners of the screen. \\
\hline
\end{tabular}
\caption{The factors of each rule and their parameters.}
\label{table:factors}
\end{table}

提前感谢您的帮助。

问候,
拉菲德

I got a problem with tables in LaTeX. I am using a pre-defined format from a conference, which makes a page consists of two columns. My table is too wide to be contained in one column, so it goes to the second column of the page and overlaps with text!

  1. Why is LaTeX allowing this?
  2. Is it possible in the current format, to make the table a block, so that it uses two columns, and the text in the other column dragged down a bit?
  3. Any other suggestion?

This is my code:

\begin{table}
\centering
\begin{tabular}{|c|c|c|c|c|c|}
\hline
Rule & Factor & Best Value & Delta_t & Delta_{do} & Comments \\
\hline
\multirow{3}{c}{Diagonal Dominance} & Line Angle & 45 & 15 & 30 & The angle between the prominent line of the object and
the diagonal lines \\ % TODO: What object? Make sure it is clear.
                                    & Line Distance & 0 & 0.25 & 1 & The distance, in screen coordinates, from the
prominent line of the object to the diagonal lines. \\ % TODO: Need to define screen coordinates
                                    & Corner Distances & 0 & 0.1 & 0.7 & The distance, in screen coordinates, from the
end of the prominent line of the object to the corners of the screen. \\
\hline
\end{tabular}
\caption{The factors of each rule and their parameters.}
\label{table:factors}
\end{table}

Thank you in advance for your help.

Regards,
Rafid

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

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

发布评论

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

评论(2

多像笑话 2024-10-07 23:57:44

通常,带星号的浮动环境版本用于告诉 LaTeX 跨越两列。所以,类似这样的事情:

\begin{table*}
% Table contents
\end{table*}

同样可以用数字来完成。

Generally, the starred version of floating environments are used to tell LaTeX to span two columns. So, something like:

\begin{table*}
% Table contents
\end{table*}

The same can be done with figures.

ぶ宁プ宁ぶ 2024-10-07 23:57:44

使用 tabularx 代替 tabular,例如:

\begin{tabularx}{\textwidth}{|c|c|c|c|c|X|}

抱歉,@Rafid,我通常使用 memoir,其中包含它,所以我忘记了这一点少量:

\usepackage{tabularx}

In place of tabular, use tabularx, for example:

\begin{tabularx}{\textwidth}{|c|c|c|c|c|X|}

Sorry, @Rafid, I normally use memoir, which includes it, so I forgot this bit:

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