多行多列表
我需要在 LaTeX 中创建下表,但我似乎无法正确完成它。
单元格内的文本未正确居中,“眼睛运动”单元格也是如此。你们有人能看出我做错了什么吗?
\begin{tabular}{ccc|c}
& & \multicolumn{2}{c}{\textbf{Response}} \\
& & unnatural & natural \\ \cline{3-4}
\multicolumn{1}{c}{\multirow{2}{*}{\begin{sideways}\textbf{Eye movement}\end{sideways}}} &
\multicolumn{1}{c|}{\begin{sideways}unnatural\end{sideways}} & 1 & \multicolumn{1}{c|}{2} \\ \cline{2-4}
\multicolumn{1}{c}{} &
\multicolumn{1}{c|}{\begin{sideways}natural\end{sideways}} & 3 & \multicolumn{1}{c|}{4} \\ \cline{3-4}
\end{tabular}
I need to create the following table in LaTeX and I just cannot seem to get it right.
The text inside the cells is not centered correctly and the same goes for the "Eye movements" cell. Could any of you see what I doing wrong?
\begin{tabular}{ccc|c}
& & \multicolumn{2}{c}{\textbf{Response}} \\
& & unnatural & natural \\ \cline{3-4}
\multicolumn{1}{c}{\multirow{2}{*}{\begin{sideways}\textbf{Eye movement}\end{sideways}}} &
\multicolumn{1}{c|}{\begin{sideways}unnatural\end{sideways}} & 1 & \multicolumn{1}{c|}{2} \\ \cline{2-4}
\multicolumn{1}{c}{} &
\multicolumn{1}{c|}{\begin{sideways}natural\end{sideways}} & 3 & \multicolumn{1}{c|}{4} \\ \cline{3-4}
\end{tabular}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谢谢指点。我终于用下面的代码让它工作了:
Thanks for the pointer. I finally made it work with the following code:
关于 LaTeX 的 Wikibooks 文档非常好,您应该仔细阅读 不同表格格式的众多示例中的一些。其中一些只需要稍微修改即可重现您的图像。
The Wikibooks documentation on LaTeX is very good, and you should take a look through some of the numerous examples for different table formats. Some of them only need to be modified slightly to reproduce your image.