Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I wrap text in a Table cell?

Tags:

tex

tabular

I would like to wrap a text in a table. I've tried the following but the text exceeds both table width and page.

\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}
like image 391
user7137145 Avatar asked Mar 17 '26 02:03

user7137145


1 Answers

It works for me:

\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}
like image 122
Amin Rashidbeigi Avatar answered Mar 19 '26 23:03

Amin Rashidbeigi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!