![同一行上有两个单独的带标题的图片](https://linux22.com/image/428226/%E5%90%8C%E4%B8%80%E8%A1%8C%E4%B8%8A%E6%9C%89%E4%B8%A4%E4%B8%AA%E5%8D%95%E7%8B%AC%E7%9A%84%E5%B8%A6%E6%A0%87%E9%A2%98%E7%9A%84%E5%9B%BE%E7%89%87.png)
我在 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}