是否可以使用嵌入p
的中的属性?multicol
multirow
先前邮政没有提供有用的答案,因为它只适用于除 之外的属性p
。这正是我的问题。
当我尝试这样做时,我遇到了以下错误:Overfull \hbox (901.70518pt too wide) in paragraph at lines 27--27
代码片段:
\documentclass[final,5p,times]{elsarticle}
\usepackage{multirow}
\usepackage{multicol}
\begin{document}
\begin{table}
\begin{tabular}{|c|l|l|c|p{9cm}|}
\hline
1 & & Lorem Ipsum quia & no & \\
\cline{1-1}
\cline{3-4}
2 & \multirow{-2}{*}{Lorem Ipsum} & Lorem Ipsum dolor & yes &
\multicolumn{1}{p{9cm}}{\multirow{-2}{*}{Ut justo ante, euismod a viverra
nec, blandit a diam. Quisque placerat, urna ut fringilla imperdiet, leo nisl
rhoncus lectus, volutpat luctus felis ante in lectus. Sed gravida gravida
neque nec bibendum. Duis fringilla urna et mi tempus in pellentesque velit
cursus. Nullam sit amet porta massa.}}\\
\hline
\end{tabular}
\end{table}
\end{document}
下面是此类意外错误的快照:
更新
预期输出如下:
答案1
[第二次尝试] 是这样的:
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{table}
\def\arraystretch{3}
\noindent
\begin{tabular}{|c|l|l|c|p{9cm}|}
\hline
1 &
\multirow{2}{*}{Lorem Ipsum}&
Lorem Ipsum quia & no &
\multirow{2}{9cm}{Ut justo ante, euismod a viverra
nec, blandit a diam. Quisque placerat, urna ut fringilla imperdiet, leo nisl
rhoncus lectus, volutpat luctus felis ante in lectus. Sed gravida gravida
neque nec bibendum. Duis fringilla urna et mi tempus in pellentesque velit
cursus. Nullam sit amet porta massa.}\\
\cline{1-1}
\cline{3-4}
2 & & Lorem Ipsum dolor & yes &
\\
\hline
\end{tabular}
\end{table}
\end{document}