我在LaTeX中遇到了表格问题。我正在使用会议中的预定义格式,这使得页面由两列组成。我的表格太宽,无法包含在一列中,因此它会转到页面的第二列并与文本重叠!
这是我的代码:
\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}
提前感谢您的帮助。
的问候,
Rafid
答案 0 :(得分:7)
通常,浮动环境的已加星标版本用于告诉LaTeX跨越两列。所以,像:
\begin{table*}
% Table contents
\end{table*}
同样可以用数字来完成。
答案 1 :(得分:1)
代替tabular
,使用tabularx
,例如:
\begin{tabularx}{\textwidth}{|c|c|c|c|c|X|}
抱歉,@ Rafid,我通常使用memoir
,其中包括它,所以我忘记了这一点:
\usepackage{tabularx}