如何在 LaTeX 表格中将文本与图像垂直居中?
我想在 LaTeX 中将文本与大图像的中心对齐。不幸的是,文本 some text
与图像底部对齐:
\begin{tabular}{cc}
some text & \includegraphics{image_name.eps}
\end{tabular}
我发现一个网站建议使用 m{width of the cell}
而不是 c
对于表中的该列,但它没有起作用。
\begin{tabular}{m{1in}c}
some text & \includegraphics{image_name.eps}
\end{tabular}
我相信乳胶专业人士会看到这个并知道该怎么做!这意味着在你教我之前我不能成为一名 LaTeX 专家......
I want to align text with the center of a large image in LaTeX. Unfortunately, the text some text
is aligned with the bottom of the image:
\begin{tabular}{cc}
some text & \includegraphics{image_name.eps}
\end{tabular}
I've found a website that recommends using m{width of the cell}
instead of c
for that column in the table, but it hasn't worked.
\begin{tabular}{m{1in}c}
some text & \includegraphics{image_name.eps}
\end{tabular}
I'm sure a latex pro would look at this and know what to do! Which implies that I cannot be a LaTeX pro until you teach me...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用迷你页将文本与图像对齐:
它并不是真正的表格,您必须指定迷你页的宽度,但它可能适合您。
You can use minipages to align your text with the image:
It´s not really a table, and you must specify the width of the minipages, but it may work for you.