内容超出了行的限制,当内容很长时,我的代码是
\usepackage{multirow}
\begin{document}
\begin{tabular}{|p{15mm}|c|c|c|c|c|}
\hline
\multirow{2}{=}{hola como estas, yo estoy aprendiendo este mundo bello de la herramienta latex} & \multicolumn{2}{c|}{User B} & %
\multicolumn{2}{c|}{User C}\\
\cline{2-5}
& \multicolumn{2}{c|}{Value} & \multicolumn{2}{c|}{Value} \\
\hline
% etc. ...
\end{tabular}
\end{document}
演示: https://es.sharelatex.com/project/5a3056532fa5c507d4467dc1
答案1
您必须使用易碎物品。对于包装,multirow
您必须确保物品适合自己提供的空间。
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|p{15mm}|c|c|c|c|c|}
\hline
\multirow{2}{=}{This is some equally long content with the difference that it is actually breakable} & \multicolumn{2}{c|}{User B} & %
\multicolumn{2}{c|}{User C}\\
\cline{2-5}
& \multicolumn{2}{c|}{Value} & \multicolumn{2}{c|}{Value} \\
\hline
% etc. ...
\end{tabular}
\end{document}
否则您可以使用 ConTeXt。
\starttext
\startxtable
\NC[ny=2] This is some equally long content with the difference that it is actually breakable \NC User B \NC User C \NR
\NC Value \NC Value \NR
\stopxtable
\stoptext