如何在表格单元格中换行?

3

我想把一段文字放在一个表格中。我尝试了下面的方法,但是这段文字超出了表格宽度和页面宽度。

\begin{landscape}
\begin{table} 
\begin{center}
\begin{tabular}{lll}
 \multicolumn{3}{l}{Table 1: Dataset, Sources and Construction}         \\ \hline \hline                                          
 No & Abbrev. & Construction                                                 \\ \hline

1 & EquityM & Logarithmic returns of 6 equity markets (FTSE100, NIKKEI225, SPI, DAX30, SPTSX, AllOrds for UK, Japan, Switzerland, Eurozone, Canada, Australia, respectively) \\


 \hline 
\end{tabular}
\end{center}
\end{table}
\end{landscape}

这是单次输入,还是您希望给定列中的每个条目具有相同的格式?在第一种情况下,您可以使用\parbox,在第二种情况下可以使用p列类型。 - Andrew Swann
1个回答

3

对我来说有效:

\begin{figure}[h]
\centering
\begin{tabular}{ |p{2cm}|p{2cm}|p{6cm}| }

 \hline
 No     & Abbrev. &Construction\\
 \hline
 1       & EquityM & Logarithmic returns of 6 equity markets (FTSE100, NIKKEI225, SPI, DAX30, SPTSX, AllOrds for UK, Japan, Switzerland, Eurozone, Canada, Australia, respectively) \\
 \hline
\end{tabular}

\caption{Dataset, Sources and Construction}
\label{fig:result}
\end{figure}

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接