在 latex 表下添加注释

在 latex 表下添加注释

我有如下代码,我想删除最后一列的多余空格在此处输入图片描述。 提前谢谢了。

\documentclass[11pt,authoryear,sort&compress]{report}
\usepackage{booktabs,tabulary,array,tabularx}
\usepackage{geometry}

\begin{document}




\begin{table}[!ht]
\footnotesize
\begin{tabular*}{1\textwidth}{@{\extracolsep{\fill}}rlrrrrrrrr} 
%\begin{tabularx}{1\textwidth}{l*{9}{R}}
\toprule
& Country & Article.No. & \%Freq & SCP & \%SCP & MCP & \%MCP & TGC & TGC/t \\  
    \midrule
1 & Usa            &  83 & 41.29 &  64 & 47.76 &  19 & 28.36 & 8120 & 97.80 \\ 
2 & United Kingdom &  26 & 12.93 &  19 & 14.18 &   7 & 10.45 & 1024 & 39.40 \\ 
3 & China          &  14 & 6.97 &   7 & 5.22 &   7 & 10.45 & 421 & 30.10 \\ 
4 & Italy          &   7 & 3.48 &   5 & 3.73 &   2 & 2.99 & 125 & 17.90 \\ 
5 & India          &   6 & 2.99 &   5 & 3.73 &   1 & 1.49 & 354 & 59.00 \\ 
6 & France         &   5 & 2.49 &   2 & 1.49 &   3 & 4.48 & 206 & 41.20 \\ 
7 & Germany        &   5 & 2.49 &   2 & 1.49 &   3 & 4.48 & 491 & 98.20 \\ 
8 & Netherlands    &   4 & 1.99 &   2 & 1.49 &   2 & 2.99 & 502 & 125.50 \\ 
9 & New Zealand    &   4 & 1.99 &   4 & 2.99 &   0 & 0.00 & 142 & 35.50 \\ 
10 & South Africa   &   4 & 1.99 &   4 & 2.99 &   0 & 0.00 &  32 & 8.00 \\ 
        \bottomrule
\addlinespace
\multicolumn{10}{@{}p{\textwidth}@{}}{\footnotesize Note: The table is sorted based on total number of Article.No. 
     \%Freq,  \%SCP, and \%MCP are the percentage of the total  Article.No., SCP, and MCP, respectively.} 

%\end{tabularx}
\end{tabular*}
    \caption{The most influential countries}  %he total number published articles
    \label{tab:Most-Cited-Countries}
\end{table}

\end{document}

答案1

我提出这个解决方案,基于tabularx, siunitxthreeparttable

\documentclass[11pt,authoryear,sort&compress]{report}
\usepackage{booktabs,tabulary,array,tabularx}
\usepackage{siunitx}
\usepackage{threeparttable}
\usepackage{geometry}

\begin{document}

\begin{table}[!hb]
\footnotesize
\sisetup{table-number-alignment=center}
\begin{threeparttable}
\begin{tabularx}{\textwidth}{rX *{3}{S[table-format=2.0]S[table-format=2.2]} S[table-format=4.0]S[table-format=3.2]}
\toprule
& {Country} & {Article.No.} & {\%Freq} & {SCP} & {\%SCP} & {MCP} & {\%MCP} & {TGC} & {TGC/t} \\
    \midrule
1 & Usa & 83 & 41.29 & 64 & 47.76 & 19 & 28.36 & 8120 & 97.80 \\
2 & United Kingdom & 26 & 12.93 & 19 & 14.18 & 7 & 10.45 & 1024 & 39.40 \\
3 & China & 14 & 6.97 & 7 & 5.22 & 7 & 10.45 & 421 & 30.10 \\
4 & Italy & 7 & 3.48 & 5 & 3.73 & 2 & 2.99 & 125 & 17.90 \\
5 & India & 6 & 2.99 & 5 & 3.73 & 1 & 1.49 & 354 & 59.00 \\
6 & France & 5 & 2.49 & 2 & 1.49 & 3 & 4.48 & 206 & 41.20 \\
7 & Germany & 5 & 2.49 & 2 & 1.49 & 3 & 4.48 & 491 & 98.20 \\
8 & Netherlands & 4 & 1.99 & 2 & 1.49 & 2 & 2.99 & 502 & 125.50 \\
9 & New Zealand & 4 & 1.99 & 4 & 2.99 & 0 & 0.00 & 142 & 35.50 \\
10 & South Africa & 4 & 1.99 & 4 & 2.99 & 0 & 0.00 & 32 & 8.00 \\
        \bottomrule
\end{tabularx}
\begin{tablenotes}[flushleft]
 \item[\hskip -\fontdimen 2 \font]Note: The table is sorted based on total number of Article.No.
 \%Freq, \%SCP, and \%MCP are the percentage of the total Article.No., SCP, and MCP, respectively.
\end{tablenotes}
    \caption{The most influential countries} %he total number published articles
    \label{tab:Most-Cited-Countries}
\end{threeparttable}
\end{table}

\end{document} 

在此处输入图片描述

答案2


姆韦


\documentclass[11pt,authoryear,sort&compress]{report}
\usepackage{booktabs,tabularx,siunitx,lipsum}
%\usepackage[showframe]{geometry}
\begin{document}
\lipsum[2]
\begin{table}[h]
\small\tabcolsep3pt\belowcaptionskip1ex 
\caption{The most influential countries \label{tab:Most-Cited-Countries}}
\begin{tabularx}{\linewidth}{@{}rX@{}
S[table-format=2]S[table-format=2.2]
S[table-format=2]S[table-format=2.2]
S[table-format=2]S[table-format=2.2]
S[table-format=4]
S[table-format=2.2]@{}} 
\toprule
& Country & {Art. No.} & {\%\,Freq} & {SCP} & {\%\,SCP} & {MCP} & {\%\,MCP} & {TGC} & {TGC/t} \\  
    \midrule
1 & Usa            &  83 & 41.29 &  64 & 47.76 &  19 & 28.36 & 8120 & 97.80 \\ 
2 & United Kingdom &  26 & 12.93 &  19 & 14.18 &   7 & 10.45 & 1024 & 39.40 \\ 
3 & China          &  14 & 6.97 &   7 & 5.22 &   7 & 10.45 & 421 & 30.10 \\ 
4 & Italy          &   7 & 3.48 &   5 & 3.73 &   2 & 2.99 & 125 & 17.90 \\ 
5 & India          &   6 & 2.99 &   5 & 3.73 &   1 & 1.49 & 354 & 59.00 \\ 
6 & France         &   5 & 2.49 &   2 & 1.49 &   3 & 4.48 & 206 & 41.20 \\ 
7 & Germany        &   5 & 2.49 &   2 & 1.49 &   3 & 4.48 & 491 & 98.20 \\ 
8 & Netherlands    &   4 & 1.99 &   2 & 1.49 &   2 & 2.99 & 502 & 125.50 \\ 
9 & New Zealand    &   4 & 1.99 &   4 & 2.99 &   0 & 0.00 & 142 & 35.50 \\ 
10 & South Africa   &   4 & 1.99 &   4 & 2.99 &   0 & 0.00 &  32 & 8.00 \\ 
\bottomrule
\addlinespace
\multicolumn{10}{@{}p{\dimexpr\linewidth}@{}}{\footnotesize Note: The table is sorted based on total number of Article.No. 
     \%Freq,  \%SCP, and \%MCP are the percentage of the total  Article.No., SCP, and MCP, respectively.} 
\end{tabularx}
\end{table}
\lipsum[3]
\end{document}

相关内容