来源
写论文,双栏排版,表格过宽,到另一侧了
方法
宽度控制
1 | \setlength{\tabcolsep}{1.5mm}{具体表格部分} |
高度控制
1 | \resizebox{\textwidth}{7mm}{具体表格部分} |
具体实例如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | \begin{center} \begin{table}[htpb] \caption{Status Sequence of SMA wires} \label{SMAStatusSequence} % For LaTeX tables use % \resizebox{\textwidth}{7mm}{ % adjust the height of coloum \setlength{\tabcolsep}{1.5mm}{ % adjust the length of coloum \begin{tabular}{cccccccccccccc} \hline\noalign{\smallskip} % first & second & third & third\\ No. &1 &2 &3 &4 &5 &6 &7 &8 &9 &10 &11 &12\\ \noalign{\smallskip}\hline\noalign{\smallskip} % straight line SMA X &O &A &B &C &D &E &F &G &H &I &B &C &\dots \\ SMA Y &O &J &F &G &H &I &B &C &D &E &F &G &\dots \\ \noalign{\smallskip}\hline \end{tabular} } \end{table} \end{center} |