我应该使用哪个库,它可以让我制作相同尺寸的图片网格。就像每行 3 张图片。 有没有一种简单的方法可以对大约 30 张图片执行此操作,而不必担心每一行。 谢谢你
你可以使用这样的东西:
\documentclass{article}
\usepackage{graphicx}
\usepackage{adjustbox}
\usepackage{pgffor}
\usepackage{xcolor}
\newadjustimage{\myimage}{max size={.33\textwidth}{.33\textwidth}}%
\begin{document}
\def\imagelist{example-image, example-image-duck, example-image-a, example-image-b, example-image-10x16, example-image-16x10}
\noindent\foreach \x in \imagelist{%
\makebox[.33\textwidth][c]{\myimage{\x}}\hfill%
}
\end{document}
利用
floatrow
包的解决方案。
\documentclass{article}
\usepackage{graphicx}
\usepackage{floatrow}
\begin{document}
\begin{figure}[H]
\begin{floatrow}[3]
\ffigbox{\includegraphics[width = 0.32\textwidth]{image.jpeg}}{}
\ffigbox{\includegraphics[width = 0.32\textwidth]{image2.jpeg}}{}
\ffigbox{\includegraphics[width = 0.32\textwidth]{image3.jpeg}}{}
\end{floatrow}
\end{figure}
\end{document}