gpt4 book ai didi

tabular - 如何在表格单元格中换行文本?

转载 作者:行者123 更新时间:2023-12-05 04:06:48 24 4
gpt4 key购买 nike

我想在表格中包装文本。我尝试了以下方法,但文本超出了表格宽度和页面。

\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}

最佳答案

对我有用:

\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}

关于tabular - 如何在表格单元格中换行文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49365079/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com