多语言展示
当前在线:762今日阅读:197今日分享:19

Latex 中表格添加标注的三种方法

这篇文档介绍Latex 中表格添加标注的三种方法
工具/原料

Latex

方法1

\begin{table}\tbl{Radio-band beaming model parameters for\\ {FSRQs and BL Lacs.}}{\begin{tabular}[l]{@{}lcccccc}\toprule  Class$^{\rm a}$ & $\gamma _1$ & $\gamma _2$$^{\rm b}$         & $\langle \gamma \rangle$         & $G$ & $|{\bm f}|$ & $\theta _{c}$ \\\colrule  BL Lacs &5 & 36 & 7 & $-4.0$ & $1.0\times 10^{-2}$ & 10$^\circ$ \\  FSRQs & 5 & 40 & 11 & $-2.3$ & $0.5\times 10^{-2}$ & 14$^\circ$ \\\botrule\end{tabular}}\tabnote{$^{\rm a}$This footnote shows what footnote symbols to use.}\tabnote{$^{\rm b}$This footnote shows the text turning over when a long footnote is added.}\label{symbols}\end{table}

方法2

注意使用\usepackage{footnote}% \begin{table}[!h]\begin{table}\centering\caption{Optimal results for two different load cases}\label{Tab:03}\begin{tabular}{ccccc}  \hline  % after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...  Cases & Component shapes & Initial layout & Optimized layout & Objective function\\  \hline  \multirow{3}{*}{Case 1}  &rectellipse & \tabincell{c}{(50, 30, $0$) \\ (70, 30, $0$)}  & \tabincell{c}{(35.145, 24.633, 2.0298) \\ (85.182, 24.542, -0.7411)}   & \multirow{3}{*}{67.359}  \\  \cline{2-4}   & calabash-shaped & \tabincell{c}{(10, 30, $\pi /2$) \\ (110, 30, $\pi /2$)}  & \tabincell{c}{(8.635, 28.556, 0.836) \\ (110.299, 28.578, 2.283)}   &   \\  \cline{1-5} \multirow{3}{*}{Case 2} &rectellipse & \tabincell{c}{(50, 30, $0$) \\ (70, 30, $0$)}  & \tabincell{c}{(36.049, 35.603, 0.506) \\ (83.621, 35.087, 0.885)}   & \multirow{3}{*}{199.781}  \\  \cline{2-4}   & calabash-shaped & \tabincell{c}{(10, 30, $\pi /2$) \\ (110, 30, $\pi /2$)}  & \tabincell{c}{(8.469, 31.537, 0.788)$^a$ \\ (112.882, 30.057, 1.864)}   &  \\  \cline{1-5}  \hline\end{tabular}\footnotesize{$^a$ The smallest spatial unit is county}\\\end{table}

方法3

使用 \begin{savenotes}\footnote{This is the first footnote.}……\end{savenotes}具体代码如下\begin{savenotes} \begin{table}[!th]% \begin{table}\centering\caption{Optimal results for different initial layouts}\label{Tab:02}\begin{tabular}{ccccc}  \hline  % after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...  Cases  & Component shapes & Initial layout & Optimized layout & Objective function\\  \hline \multirow{3}{*}{Case 1} & circular & (90, 30) & (95.081, 29.607) & \multirow{3}{*}{220.600 } \\  \cline{2-4}  & rectellipse & \tabincell{c}{(45, 30, $\pi /3$) \\ (135, 30, $\pi /3$)}  & \tabincell{c}{(50.175, 30.334, 0.506\footnote{This is the first footnote.}) \\ (133.936, 32.411, 0.885)} &  \\  \cline{1-5} \multirow{3}{*}{Case 2}  & circular& (90, 30)& (94.412, 29.806)& \multirow{3}{*}{222.011} \\  \cline{2-4}   &rectellipse& \tabincell{c}{(30, 30, $\pi /3$)\\ (150, 30, $\pi /3$)}   & \tabincell{c}{(38.138, 32.599, 0.913) \\ (150.553, 29.921, 0.745)}   &   \\  \cline{1-5}  \multirow{3}{*}{Case 3}  & circular & (90, 30)&(93, 28.573) &\multirow{3}{*}{223.917} \\   \cline{2-4}    & rectellipse & \tabincell{c}{(30, 30, $2 \pi /3$) \\ (150, 30, $2 \pi /3$)}   &\tabincell{c}{(37.341, 28.759, 2.475) \\ (144.557, 27.712, 1.994)}    &   \\  \hline\end{tabular}\end{table}\end{savenotes}编译结果如下

注意事项

欢迎提问,有问必答

推荐信息