我有代码
\documentclass{elsarticle}
\usepackage{pifont, natbib, geometry, graphicx,hyperref,fleqn}
\usepackage{amssymb,float}
\usepackage{txfonts}
\let\iint\relax
\let\iiint\relax
\let\iiiint\relax
\let\idotsint\relax
\usepackage{amsmath}
\begin{document}
\begin{figure}[H]
\centering
\parbox{\textwidth}{%
\centering
\includegraphics[scale=0.45]{example}
\includegraphics[scale=0.45]{example}
\includegraphics[scale=0.45]{example}
\includegraphics[scale=0.45]{example}
}
\caption{bla}
\label{f1}
\end{figure}
\end{document}
这与我想要的结果非常接近,只是四个图形之间的距离太近了。我怎样才能增加图形之间的间距(尽管我仍然希望它们采用 2x2 配置)。
任何帮助都将不胜感激。谢谢!
答案1
\documentclass{article}
\usepackage{graphicx}
\usepackage{float}
\usepackage{geometry}
\begin{document}
\begin{figure}[H]
\centering
\parbox{\textwidth}{%
\centering
\includegraphics[scale=0.45]{example-image-a}\hfill
\includegraphics[scale=0.45]{example-image-a}\vspace{10ex}
\includegraphics[scale=0.45]{example-image-a}\hfill
\includegraphics[scale=0.45]{example-image-a}
}
\caption{bla}
\label{f1}
\end{figure}
\end{document}