答案1
也许这对您来说是一个选择:
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{lipsum}
\begin{document}
\begin{figure*}
\begin{subfigure}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 1}\label{fig:Label1}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 2}\label{fig:Label2}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 3}\label{fig:Label3}
\end{subfigure}
\begin{subfigure}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 4}\label{fig:Label4}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 5}\label{fig:Label5}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 6}\label{fig:Label6}
\end{subfigure}
\begin{subfigure}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 7}\label{fig:Label7}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 8}\label{fig:Label8}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 9}\label{fig:Label9}
\end{subfigure}
\begin{subfigure}{.3\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 10}\label{fig:Label10}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{.3\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 11}\label{fig:Label11}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{.3\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Label 12}\label{fig:Label12}
\end{subfigure}
\caption{\lipsum[1]}
\end{figure*}
\end{document}
答案2
您可以使用“表格”进行所有组装。如果您增加图形的大小,环境将使图形在其单元格中居中,同时保持它们的相对距离。
原型包括一个长度\figwidth
,可让您在调整所有图形大小时测试行为。
看你的例子,我假设最后一行的数字更大。如果不是这样,请将全部更改1.3\figwidth
为\figwidth
。结果看起来会好得多,并且在到达边距之前可以进行更多调整。
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{kantlipsum} % dummy text
\usepackage[left=1.2in, right=1.2in, top=1in, bottom=1in]{geometry}
\newlength{\figwidth}
\setlength{\figwidth}{1.4in}
\begin{document}
\begin{figure*}[h]
\centering
\begin{tabular}{ccc}
\includegraphics[height=\figwidth,width=\figwidth]{example-image-a}&
\includegraphics[height=\figwidth,width=\figwidth]{example-image-a}&
\includegraphics[height=\figwidth,width=\figwidth]{example-image-a} \\[6pt] %vertical space between the rows
\includegraphics[height=\figwidth,width=\figwidth]{example-image-b}&
\includegraphics[height=\figwidth,width=\figwidth]{example-image-b}&
\includegraphics[height=\figwidth,width=\figwidth]{example-image-b} \\[6pt]
\includegraphics[height=\figwidth,width=\figwidth]{example-image-c}&
\includegraphics[height=\figwidth,width=\figwidth]{example-image-c}&
\includegraphics[height=\figwidth,width=\figwidth]{example-image-c} \\[6pt]
\includegraphics[height=1.3\figwidth,width=1.3\figwidth]{example-grid-100x100pt}&
\includegraphics[height=1.3\figwidth,width=1.3\figwidth]{example-grid-100x100pt}&
\includegraphics[height=1.3\figwidth,width=1.3\figwidth]{example-grid-100x100pt} \\
\end{tabular}
\caption{Some images with tabular: height 1.4in.}
\end{figure*}
2. \kant[2]
\end{document}
笔记。我假设您的图片经过了适当的修剪,例如,它们周围没有空白。如果不是这样,则应在插入 LaTeX 文档之前对它们进行裁剪。
尝试在上面的代码中插入图像,看看会发生什么。