![如何在封面上对齐 3 张图片](https://linux22.com/image/480093/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%B0%81%E9%9D%A2%E4%B8%8A%E5%AF%B9%E9%BD%90%203%20%E5%BC%A0%E5%9B%BE%E7%89%87.png)
我是 LaTeX 的初学者。我实际上正在写实习报告,封面上出现了问题。我试图对齐三幅图像(徽标),但我做不到正确。以下是代码:
\begin{center}
\includegraphics[width=3.5cm]{./image/Icb.png}
\hfill
\includegraphics[width=5cm]{./image/ubfc.png}
\hfill
\includegraphics[width=4.5cm]{./image/eiphi.png} \[3cm]
\hfil
\end{center}
我希望图像能够很好地对齐,但它们发生了偏移,而且一旦我更改尺寸,情况就会变得更糟。我尝试在互联网上搜索答案,但找不到解决方案……我尝试过使用“minipage”或“figure”,但无法获得所需的结果。
提前感谢 JParize
答案1
\documentclass[english]{article}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}[!htb]
\minipage{0.32\textwidth}
\includegraphics[width=\linewidth]{image.png}
\endminipage\hfill
\minipage{0.32\textwidth}
\includegraphics[width=\linewidth]{image.png}
\endminipage\hfill
\minipage{0.32\textwidth}%
\includegraphics[width=\linewidth]{image.png}
\endminipage
\end{figure}
\end{document}