我有两个图,每个图都有多个子图。第一个图中的子图名为 a)、b)、c)、d)。在第二个图中,我希望子图从第一个图结束的地方开始编号,即 e)、f)、g))。有人知道怎么做吗?提前致谢
\usepackage{子标题}
代码:
\begin{figure}[H]
\centering
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth,trim={2cm 7cm 2cm 6cm},clip]{figures/Ellipse10.pdf}
\caption{}
\label{}
\end{subfigure}
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth,trim={2cm 7cm 2cm 6cm},clip]{figures/Ellipse25.pdf}
\caption{}
\label{}
\end{subfigure}
%
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth,trim={2cm 7cm 2cm 6cm},clip]{figures/Ellipse15.pdf}
\caption{}
\label{}
\end{subfigure}
%
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth,trim={2cm 7cm 2cm 6cm},clip]{figures/Ellipse30.pdf}
\caption{}
\label{}
\end{subfigure}
\caption{}
\label{}
\end{figure}
\begin{figure}
\centering
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth,trim={2cm 7cm 2cm 6cm},clip]{figures/Ellipse50.pdf}
\caption{}
\label{}
\end{subfigure}
%
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth,trim={2cm 7cm 2cm 6cm},clip]{figures/Ellipse70.pdf}
\caption{}
\label{}
\end{subfigure}
%
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth,trim={2cm 7cm 2cm 6cm},clip]{figures/Ellipse90.pdf}
\caption{}
\label{}
\end{subfigure}
\caption{}
\label{}
\end{figure}
答案1
使用包\ContinuedFloat
中的宏caption
,将继续前面的图形,并且编号将正确:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[htbp]
\centering
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{}
\label{}
\end{subfigure}
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{}
\label{}
\end{subfigure}
%
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{}
\label{}
\end{subfigure}
%
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{}
\label{}
\end{subfigure}
\caption{}
\label{}
\end{figure}
\clearpage
\begin{figure}[htbp]
\ContinuedFloat
\centering
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{}
\label{}
\end{subfigure}
%
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{}
\label{}
\end{subfigure}
%
\begin{subfigure}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{}
\label{}
\end{subfigure}
\caption{}
\label{}
\end{figure}
\end{document}