大量单词无法放入表格(使用多行、多列)

大量单词无法放入表格(使用多行、多列)
\documentclass{article}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}

\begin{table}[h!]
\setlength\extrarowheight{2pt} % for a ever so slightly more open "look"
    \begin{tabularx}{\textwidth}{c X|c |c |c |c|c |}
    \cline{3-7}
     & & \multicolumn{2}{c|}{fference} & \multirow{2}{*}{t} & \multirow{2}{*}{df} & \multirow{2}{*}{Sig.(2-tailed)} \\
    \cline{3-4}
     & & Lower & Upper &  & &  \\
    \hline
    \multicolumn{1}{|c}{Pair 1} & Apple E(AM) & & 33.93\%, 54.47\% & 9.734 & 9 & .000 \\
    \hline
      \end{tabularx}
\caption{too large words}
\end{table}

\end{document}

结果: 在此处输入图片描述

如果我改为:

\documentclass{article}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}

\begin{table}[h!]
\setlength\extrarowheight{2pt} % for a ever so slightly more open "look"
    \begin{tabularx}{\textwidth}{c X|c |c |c |c|c |}
    \cline{3-7}
     & & \multicolumn{2}{c|}{Testing One Testing One Testing One Testing One} & \multirow{2}{*}{t} & \multirow{2}{*}{df} & \multirow{2}{*}{Sig.(2-tailed)} \\
    \cline{3-4}
     & & Lower & Upper &  & &  \\
    \hline
    \multicolumn{1}{|c}{Pair 1} & Apple Banana Bal Bal Bal Bal(AM) & & 33.93\%, 54.47\% & 9.734 & 9 & .000 \\
    \hline
      \end{tabularx}
\caption{too large words}
\end{table}

\结束{文档}

结果:

在此处输入图片描述

答案1

嗯,是这样的:

在此处输入图片描述

\documentclass{article}
\usepackage{}
\usepackage{makecell, multirow, tabularx}
\begin{document}

\begin{table}[h!]
\setlength\extrarowheight{2pt} % for a ever so slightly more open "look"
    \begin{tabularx}{\textwidth}{c X|c |c |c |c |c |}
    \cline{3-7}
     & & \multicolumn{2}{>{\centering\arraybackslash}p{8em}|}{Testing One Testing One Testing One Testing One} & \multirow{5}{*}{t} & \multirow{5}{*}{df} & \multirow{5}{*}{\makecell{Sig.\\(2-tailed)}} \\
    \cline{3-4}
     & & Lower & Upper &  & &  \\
    \hline
    \multicolumn{1}{|c}{Pair 1} & Apple Banana Bal Bal Bal Bal(AM) & 33.93\%, &  54.47\% & 9.734 & 9 & .000 \\
    \hline
      \end{tabularx}
\caption{too large words}
\end{table}
\end{document}

相关内容