
\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}