我遇到了这个错误,我无法弄清楚:
\documentclass[12pt,oneside]{书}
\usepackage[]{geometry}
\usepackage{amsmath}
\usepackage{ragged2e}
\usepackage{booktabs, makecell, multirow, tabularx,
threeparttable, tabulary}
\renewcommand\theadfont{\small\bfseries} % for bold in table using \small
\renewcommand\theadgape{}
\usepackage[svgnames, table]{xcolor}
\usepackage{siunitx} %for table spacing to second row
\usepackage{graphicx}
\usepackage[font=small,
labelfont={bf,sf}, textfont={sf},
justification=centering]{caption}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabularx}{\textwidth}{>{\quad}Xlrr}
\toprule
& & \thead{{\textbf{Statistic}}}
& \thead{{\textbf{Std. Error}}}\\
\midrule
\multicolumn{4}{@{}l}{\textbf{\textit{AABC}}}\\
Mean & & 93434.434 & 2.432 \\
\multirow{}{=}{95\% Confidence of Interval of Mean (\%)} & Lower Bound & 44.434 & \\
& Upper Bound & 98.6414 & \\
5\% Trimmed Mean& & 94.1806 \\
\bottomrule
\end{tabularx}
\end{table}
\end{document}
答案1
\documentclass[12pt,oneside]{book}
\usepackage[]{geometry}
\usepackage{amsmath}
\usepackage{ragged2e}
\usepackage{booktabs, makecell, multirow, tabularx,
threeparttable, tabulary}
\renewcommand\theadfont{\small\bfseries} % for bold in table using \small
\renewcommand\theadgape{}
\usepackage[svgnames, table]{xcolor}
\usepackage{siunitx} %for table spacing to second row
\usepackage{graphicx}
\usepackage[font=small,
labelfont={bf,sf}, textfont={sf},
justification=centering]{caption}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabularx}{\textwidth}{>{\quad}Xllrr}
\toprule
& & \thead{{\textbf{Statistic}}}
& \thead{{\textbf{Std. Error}}}\\
\midrule
\multicolumn{5}{@{}l}{\textbf{\textit{AABC}}}\\
Mean & && 93434.4340 & 2.432 \\
\multirow{2}{*}{95\% Confidence of Interval of Mean (\%)} & & Lower Bound & 44.4340 & \\
& & Upper Bound & 98.6414 & \\
5\% Trimmed Mean&& & 94.1806 \\
\bottomrule
\end{tabularx}
\end{table}
\end{document}
编辑
\documentclass[12pt,oneside]{book}
\usepackage[]{geometry}
\usepackage{amsmath}
\usepackage{ragged2e}
\usepackage{booktabs, makecell, multirow, tabularx,
threeparttable, tabulary}
\renewcommand\theadfont{\small\bfseries} % for bold in table using \small
\renewcommand\theadgape{}
\usepackage[svgnames, table]{xcolor}
\usepackage{siunitx} %for table spacing to second row
\usepackage{graphicx}
\usepackage[font=small,
labelfont={bf,sf}, textfont={sf},
justification=centering]{caption}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabularx}{\textwidth}{Xllrr}
\toprule
& & & \thead{{\textbf{Statistic }}}
& \thead{{\textbf{Std. Error}}}\\
\midrule
\multicolumn{5}{@{}l}{\textbf{\textit{AABC}}}\\
Mean & && 93434.4340 & 2.432 \\
{95\% Confidence of Interval of Mean } & & Lower Bound & 44.4340 & \\
(\%) & & Upper Bound & 98.6414 & \\
5\% Trimmed Mean&& & 94.1806 \\
\bottomrule
\end{tabularx}
\end{table}
\end{document}