![如何在文本前显示小图片(或图标)?](https://linux22.com/image/453069/%E5%A6%82%E4%BD%95%E5%9C%A8%E6%96%87%E6%9C%AC%E5%89%8D%E6%98%BE%E7%A4%BA%E5%B0%8F%E5%9B%BE%E7%89%87%EF%BC%88%E6%88%96%E5%9B%BE%E6%A0%87%EF%BC%89%EF%BC%9F.png)
答案1
要在文本中间添加图像,请使用\includegraphics
graphicx。如果图像尺寸不合适,您可以像这样调整其大小:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
Here is an image: \includegraphics[height=1ex]{example-image-a}.
\end{document}
稍微降低图像可能会看起来更好。您可以使用\raisebox
(带负参数)来实现这一点,例如:
A bit bigger: \raisebox{-.2ex}{\includegraphics[height=2ex]{example-image-a}}.