如何在表格单元格中包装文本?

时间:2018-03-19 14:13:51

标签: tabular tex

我想在表格中包含文字。我尝试了以下内容,但文本超出了表格宽度和页面。

<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.2/knockout-min.js"></script>
<h3 data-bind="text: city"> </h1>
<span data-bind="text: 'change the country, get out of focus, and behold:'"> </span>
<br/>
<input data-bind="value: country" />

1 个答案:

答案 0 :(得分:0)

它对我有用:

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