Latex表格的用法,以及表格大小的调整方法

1. 表格的用法

1.2表格的格式代码

  • 起始命令:\begin{specialtable}[H] \end{specialtable}
  • 居中命令(默认值是靠左):\centering
  • 字号大小设置命令:\small
  • 表格说明:\caption {}
  • 给表格打上饮用标签:\label{}
  • 开始绘制表格: \begin{tabular}{ccc} \end{tabular}
  • 表格上顶线: \toprule
  • 表格中线: \midrule
  • 表格底线: \bottomrule
\begin{ specialtable}[H]
\centering
\small
\caption{ This table illustrate the size and channels of the output feature maps for each subnet.\label{ tab1}}
\setlength{ \tabcolsep}{ 16mm}{ 
\begin{ tabular}{ ccc}
\toprule
\textbf{ Branch}	& \textbf{ Channels}	& \textbf{ Size/Pixel}\\
\midrule
Branch 1		& 32			& 64*64\\
Branch 2		& 64			& 32*32\\
Branch 3		& 128			& 16*16\\
Branch 4		& 256			& 8*8\\
\bottomrule
\end{ tabular}
}
\end{ specialtable}

1.2 引用表格代码

 Table~\ref{tab1}

1.3 效果图

  • 表格效果
    《Latex表格的用法,以及表格大小的调整方法》
  • 表格引用效果
    《Latex表格的用法,以及表格大小的调整方法》

2 表格大小调整

  • 代码:\setlength{\tabcolsep}{7mm}{XXXXX} (需要把XXXXX替换为 \begin{tabular}{ccc} \end{tabular})

2.1 调整效果

《Latex表格的用法,以及表格大小的调整方法》

    原文作者:拾夕er
    原文地址: https://blog.csdn.net/weixin_42279212/article/details/120487075
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞