手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

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

时间:2024-10-29 19:35:28

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中编辑表格,表格内容过长怎么办
© 手抄报圈