![为什么我的表格不居中?](https://linux22.com/image/311404/%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E7%9A%84%E8%A1%A8%E6%A0%BC%E4%B8%8D%E5%B1%85%E4%B8%AD%EF%BC%9F.png)
由于某些原因,我的表格没有居中,这很奇怪,因为我对同一个 tex 文件中的另一个表格做了完全相同的操作,并且成功了。有人能帮帮我吗?
\documentclass[
10pt,
a4paper,
oneside,
headinclude,footinclude,
BCOR5mm,
]{scrartcl}
\usepackage[scale=0.8]{geometry}
\usepackage[flushleft]{threeparttable}
\usepackage{gensymb}
\usepackage{amsfonts}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{caption}
\begin{document}
\begin{table}[hbt]
\centering
\caption{Indicators used by the ARWU and weight associated with each indicator}
\begin{tabular}{lc}
\toprule
\textbf{Indicators} & \textbf{Weight} \\
\midrule
Number of alumni & 10\% \\
Staff winning Nobel Prizes and Fields Medals & 20\% \\
Number of highly cited researchers selected by Thomson Reuters & 20\% \\
Number of articles published in journals of Nature and Science & 20\% \\
Number of articles indexed in SCI - ESSCI & 20\% \\
Per capita performance & 10\% \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\small
\item Abbreviations: SCI, Science Citation Index; ESSCI, Expanded and Social Sciences Citation Index. \\
\end{tablenotes}
\label{tab:label}
\end{table}
\end{document}
答案1
threeparttable
您的 MWE 中没有环境。
\documentclass[
10pt,
a4paper,
oneside,
headinclude,footinclude,
BCOR5mm,
]{scrartcl}
\usepackage[scale=0.8]{geometry}
\usepackage[flushleft]{threeparttable}
\usepackage{gensymb}
\usepackage{amsfonts}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{caption}
\begin{document}
\begin{table}[hbt]
\centering
\begin{threeparttable}
\caption{Indicators used by the ARWU and weight associated with each indicator}
\begin{tabular}{lc}
\toprule
\textbf{Indicators} & \textbf{Weight} \\
\midrule
Number of alumni & 10\% \\
Staff winning Nobel Prizes and Fields Medals & 20\% \\
Number of highly cited researchers selected by Thomson Reuters & 20\% \\
Number of articles published in journals of Nature and Science & 20\% \\
Number of articles indexed in SCI - ESSCI & 20\% \\
Per capita performance & 10\% \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\small
\item Abbreviations: SCI, Science Citation Index; ESSCI, Expanded and Social Sciences Citation Index. \\
\end{tablenotes}
\end{threeparttable}
\label{tab:label}
\end{table}
\end{document}
答案2
这里,我把 放在了宽度有限的tablenotes
范围内\parbox
。
\documentclass[
10pt,
a4paper,
oneside,
headinclude,footinclude,
BCOR5mm,
]{scrartcl}
\usepackage[scale=0.8]{geometry}
\usepackage[flushleft]{threeparttable}
\usepackage{gensymb}
\usepackage{amsfonts}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{caption}
\begin{document}
\begin{table}[hbt]
\centering
\caption{Indicators used by the ARWU and weight associated with each indicator}
\begin{tabular}{lc}
\toprule
\textbf{Indicators} & \textbf{Weight} \\
\midrule
Number of alumni & 10\% \\
Staff winning Nobel Prizes and Fields Medals & 20\% \\
Number of highly cited researchers selected by Thomson Reuters & 20\% \\
Number of articles published in journals of Nature and Science & 20\% \\
Number of articles indexed in SCI - ESSCI & 20\% \\
Per capita performance & 10\% \\
\bottomrule
\end{tabular}\par
\parbox{4.5in}{
\begin{tablenotes}
\small
\item Abbreviations: SCI, Science Citation Index; ESSCI, Expanded and Social Sciences Citation Index. \\
\end{tablenotes}
}
\label{tab:label}
\end{table}
\noindent\hrulefill
\end{document}