避免单词断句不均匀。例如“different”

避免单词断句不均匀。例如“different”

回答来自在表格中留出小的行间隙

在此处输入图片描述

单词变成

Std. Error Differ-
ence (%)

我们可以这样做吗:

Std. Error
Difference
(%)

我的完整 MWE:

\documentclass[12pt,oneside]{book}

\usepackage[showframe]{geometry}
\usepackage{amsmath}
\usepackage{ragged2e}
\usepackage{makecell, multirow, tabularx}
\renewcommand\theadfont{\small\bfseries} % for bold in table using \small
\renewcommand\theadgape{}
\usepackage[svgnames, table]{xcolor}
\usepackage{hhline, boldline}
\usepackage{seqsplit, caption} %for table spacing to second row
\usepackage{booktabs, ragged2e} % Use booktabs rules and get rid of vertical rules, ragged2e to ragged text
\usepackage{siunitx} %for table spacing to second row
\usepackage{threeparttable} %to add footnote below table
\usepackage{tabulary}
\usepackage{graphicx}

\begin{document}

\begin{table}[h!]
\centering
    \begin{tabularx}{\textwidth}{>{\raggedright\arraybackslash}XXlrr}
    \toprule
    & & & \multicolumn{2}{c}{\textbf{Bioengineering quizzers  }} \\
     \cmidrule{4-5}
     & &  & \thead{{\textbf{Equal}} \\ \textbf{variances} \\ \textbf{assumed}}
     & \thead{{\textbf{Equal}} \\ \textbf{variances not} \\ \textbf{assumed}}\\
\midrule
\multirow{3}{=}{Levene's Test for Equality of Variances}
    & F 
    & & 0.030 &   \\
    & Sig. & & 0.864 & \\
\midrule
\multirow{8}{=}{t-test for Equality of Means}
    & t
    & & 17.505 & 17.505   \\
    & df & & 18 & 17.750 \\
    & Sig. (2-tailed) &  & 0.000 & 0.000 \\
    & Mean Difference (\%) &  & 56.31 & 56.31 \\
    & Standard Error Difference (\%) &  & 3.22 & 3.22\\
    [+0.5ex]
    & \multirow{1.2}{=}{95\% Confidence of Interval of the Difference(\%)}  &  Lower  & 49.55 & 63.07\\
    & &  Upper& 63.07 & 63.07\\ 
    [+1.0ex]
\bottomrule

\end{tabularx}
\end{table}


\end{document}

答案1

这对于评论来说太长了。如果你使用makecell它可以让你摆脱很多头痛。

\documentclass[12pt,oneside]{book}
\usepackage[showframe]{geometry}
\usepackage{amsmath}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{makecell}
\renewcommand\theadfont{\small\bfseries} % for bold in table using \small
\renewcommand\theadgape{}
\usepackage{booktabs, ragged2e} % Use booktabs rules and get rid of vertical rules, ragged2e to ragged text

\begin{document}

\begin{table}[h!]
\centering
    \begin{tabularx}{\textwidth}{>{\raggedright\arraybackslash}X>{\raggedright\arraybackslash}Xlrr}
    \toprule
    & & & \multicolumn{2}{c}{\textbf{Bioengineering quizzers  }} \\
     \cmidrule{4-5}
     & &  & \thead{{\textbf{Equal}} \\ \textbf{variances} \\ \textbf{assumed}}
     & \thead{{\textbf{Equal}} \\ \textbf{variances not} \\ \textbf{assumed}}\\
\midrule
\multirow{3}{=}{Levene's Test for Equality of Variances}
    & F 
    & & 0.030 &   \\
    & Sig. & & 0.864 & \\
\midrule
\multirow{8}{=}{t-test for Equality of Means}
    & t
    & & 17.505 & 17.505   \\
    & df & & 18 & 17.750 \\
    & Sig. (2-tailed) &  & 0.000 & 0.000 \\
    & Mean Difference (\%) &  & 56.31 & 56.31 \\
    & \makecell[l]{Standard Error\\ Difference (\%)} &  & 3.22 & 3.22\\
    [+0.5ex]
    & \makecell[l]{95\% Confidence of\\ Interval of\\ the Difference(\%)}  &  
    \makecell[l]{Lower\\[0.6ex] Upper}  & \makecell[r]{49.55\\[0.6ex] 63.07} & 
    \makecell[r]{63.07\\[0.6ex] 63.07}\\
\bottomrule

\end{tabularx}
\end{table}
\end{document}

在此处输入图片描述

请注意:

  • 我对右下角的数字做了一些猜测。它们很容易重新排列。
  • 实际上,如果我是你,我会把桌子的顶部(桌子的右上方)烤熟。
  • 我努力简化了序言。请考虑在您的帖子中使用更简洁的序言。

这里的布局略有不同。

\documentclass[12pt,oneside]{book}
\usepackage[showframe]{geometry}
\usepackage{amsmath}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{makecell}
\renewcommand\theadfont{\small\bfseries} % for bold in table using \small
\renewcommand\theadgape{}
\usepackage{booktabs, ragged2e} % Use booktabs rules and get rid of vertical rules, ragged2e to ragged text

\begin{document}

\begin{table}[h!]
\centering
    \begin{tabularx}{\textwidth}{>{\raggedright\arraybackslash}X>{\raggedright\arraybackslash}Xlrr}
    \toprule
    & & & \multicolumn{2}{c}{\textbf{Bioengineering quizzers}} \\
     \cmidrule{4-5}
     & & &\multicolumn{2}{c}{\textbf{Variances}}\\
     & & & \textbf{are equal} & \textbf{may differ}\\
\midrule
\multirow{3}{=}{Levene's Test for Equality of Variances}
    & F 
    & & 0.030 &   \\
    & Sig. & & 0.864 & \\
\midrule
\multirow{8}{=}{t-test for Equality of Means}
    & t
    & & 17.505 & 17.505   \\
    & df & & 18 & 17.750 \\
    & Sig. (2-tailed) &  & 0.000 & 0.000 \\
    & Mean Difference (\%) &  & 56.31 & 56.31 \\
    & \makecell[l]{Standard Error\\ Difference (\%)} &  & 3.22 & 3.22\\
    [+0.5ex]
    & \makecell[l]{95\% Confidence of\\ Interval of\\ the Difference(\%)}  &  
    \makecell[l]{Lower\\ {} \\ Upper}  & \makecell[r]{49.55\\ {} \\ 63.07} & 
    \makecell[r]{63.07\\ {} \\ 63.07}\\
\bottomrule

\end{tabularx}
\end{table}
\end{document}

在此处输入图片描述

答案2

我会减少列数,为表格主体的两个部分制作副标题:

\documentclass[12pt,oneside]{book}

\usepackage[pass,showframe]{geometry}
\usepackage{booktabs}
\usepackage{siunitx}

\begin{document}

\begin{table}[!htp]
\centering
\begin{tabular*}{\textwidth}{
  @{\extracolsep{\fill}\hspace{\tabcolsep}}
  l@{}l
  S[table-format=2.3]
  S[table-format=2.3]
  @{\hspace{\tabcolsep}}
}
\toprule
\multicolumn{4}{c}{\textbf{Bioengineering quizzers}} \\
\midrule
&& \multicolumn{2}{c}{\textbf{Equal variances}} \\
\cmidrule{3-4}
&& {\textbf{assumed}} & {\textbf{not assumed}} \\
\midrule
\multicolumn{4}{l}{\textit{Levene's Test for Equality of Variances}} \\
F    && 0.030 & \\
Sig. && 0.864 & \\
\midrule
\multicolumn{4}{l}{\textit{t-test for Equality of Means}} \\
t                              && 17.505 & 17.505 \\
df                             && 18     & 17.750 \\
Sig. (2-tailed)                &&  0.000 &  0.000 \\
Mean Difference (\%)           && 56.31  & 56.31  \\
Standard Error Difference (\%) &&  3.22  &  3.22  \\
95\% CID (\%) & Lower           & 49.55  & 63.07  \\
              & Upper           & 63.07  & 63.07  \\ 
\midrule[\heavyrulewidth]
\multicolumn{4}{l}{\footnotesize 95\% CID: 95\% Confidence of Interval of the Difference}
\end{tabular*}
\end{table}

\end{document}

在此处输入图片描述

相关内容