在 LaTeX 中强制 \list 项与其内容的顶部对齐
我正在用 LaTeX 写一些作业。有些问题有多个部分。对于其中一个,我必须插入一张桌子。问题是项目标签相对于表格垂直居中,但是,我希望标签在顶部对齐。要了解我在说什么,您可以在此处查看输出: http:// /ianburris.com/dropbox/public/so/q2/hw1.pdf 并查看问题 5 b 部分。另外,这是该部分的代码:
\item
\begin{tabular}{ll}
pushi & 0\\
load & 15\\
pushi & 12\\
alu.sub & \\
pushi & 0\\
store & 5\\
\end{tabular}
How will do I强制标签与表格顶部对齐?
I'm working on typing up some homework in LaTeX. Some of the questions have multiple parts. For one of them I have to inserted a table. The problem is the item label gets centered vertically with respect to the table, however, I'd prefer the label to be aligned at the top. To see what I'm talking about you can view the output here: http://ianburris.com/dropbox/public/so/q2/hw1.pdf and look at problem 5 part b. Also, here is the code for that portion:
\item
\begin{tabular}{ll}
pushi & 0\\
load & 15\\
pushi & 12\\
alu.sub & \\
pushi & 0\\
store & 5\\
\end{tabular}
How would do I force the label to align with the top of the table?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
tabular
有一个可选参数,用于行内表格的垂直对齐。试试这个:There's an optional parameter to
tabular
for vertical alignment of the tabular within the line. Try this: