我在 2 列环境(IEEE 转换格式)中工作,需要显示三组图形,第一组有 3 幅图像,因此它们都位于第一行,没有问题。第二组和第三组分别有 2 幅和 1 幅图像。因此,当我写入时\caption
,第三组将转到下一行。如何通过修改以下代码将两个图形放在同一行上?
\usepackage{subcaption}
\begin{figure*}[htb]
\centering
{\includegraphics[width=0.3\textwidth]{demoing}}\hfill
{\includegraphics[width=0.3\textwidth]{demoing}}\hfill
{\includegraphics[width=0.3\textwidth]{demoing}}%
\caption{One group}
\label{one}
{\includegraphics[width=0.3\textwidth]{demoing}}
{\includegraphics[width=0.3\textwidth]{demoing}}
\caption{Another group}
\label{two}
{\includegraphics[width=0.3\textwidth]{demoing}}%
\caption{A third group}
\label{three}
\end{figure*}
答案1
如果我理解正确的话,你喜欢有两行带有三个标题的图像:
使用minipage
s 您可以将图像分组到第二行:
\documentclass[twocolumn]{article}
\usepackage[demo]{graphicx}
\usepackage[skip=1ex, below skip=2ex]{caption}
\begin{document}
\begin{figure*}[htb]
\centering
\includegraphics[width=0.3\textwidth]{demoing}\hfil
\includegraphics[width=0.3\textwidth]{demoing}\hfil
\includegraphics[width=0.3\textwidth]{demoing}%
\caption{One group}
\label{one}
\begin{minipage}[t] {0.65\linewidth}
\centering
\includegraphics[width=0.45\textwidth]{demoing}\
\includegraphics[width=0.45\textwidth]{demoing}
\caption{Another group}
\label{two}
\end{minipage}\begin{minipage}[t] {0.35\linewidth}%
\includegraphics[width=0.9\textwidth]{demoing}%
\caption{A third group}
\label{three}
\end{minipage}
\end{figure*}
\end{document}