好吧,我被打败了。我尝试了几件事,但我无法做到这一点。我现在需要一些帮助。
我希望能够并排显示一些文本和图片(只有一行,因此不需要换行或其他乐趣。图片小到可以放在文本行中):
This is a text <temp.jpg placed center to the textline>
问题是,当我使用
This is a text \includegraphics{temp.jpg}
图片基线与文本基线对齐。我希望图片(垂直)中心与文本基线对齐。我怎样才能做到这一点?
最佳答案
This is a text $\vcenter{\hbox{\includegraphics{temp.jpg}}}$
关于graphics - latex \includegraphics 和文本行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3147707/