LaTeX中编辑表格,表格内容过长怎么办

2025-04-21 08:14:50

1、对于这种长表格在WORD里面我们可以应付的来,但是在LaTeX中就没有那么容易了,如果不换行的话,就会出现表格显示不完全。

LaTeX中编辑表格,表格内容过长怎么办

2、现在打开WinEdt7.0

LaTeX中编辑表格,表格内容过长怎么办

3、输入以下代码:\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}} %表格自动换行\begin{table}[htbp]\centering\caption{\label{tab:test}FEATURES USED IN EXPERIMENT}\begin{tabular}{|c|c|c|} \hline\tabincell{c}{Number \\ of \\ features} & Description of each feature \\ \hline9 & \tabincell{c}{Magnitude of second, fourth,and sixth components of \\FFT of 3 axes} \\\hline12 & Mean, standard deviation, energy, correlation of 3 axes \\\hline21 & \tabincell{c}{Magnitude of second, fourth,and sixth components of FFT,\\ Mean,standard deviation, energy,correlation of 3 axes} \\\hline27 & \tabincell{c}{Magnitude of second, fourth,and sixth components of FFT,\\ Mean, standard deviation, energy,correlation, time between\\ peaks, number of peaks per computation unit of 3 axes} \\ \hline\end{tabular}\end{table}

4、这就是生成出来的示意图,通过更改代码的显示方式,还可以改为三线表格

LaTeX中编辑表格,表格内容过长怎么办
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢