1

我想在乳胶背页并排创建 10 个子图。所以,我想将每两个子图以适当的大小放在一起(我需要保持大小而不减小大小)。我已经这样做了,但问题是最后两个子图(9 和 10)超出了页面大小,因为单个页面无法容纳所有子图。因此,我正在寻找一种方法将前八个子图保留在第一页中,然后将最后两个子图放在下一页中。有什么方法可以做到吗?

\documentclass{article}

\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx}

\begin{document}    
\begin{figure}[hi]
    \centering
    \begin{subfigure}[b]{0.45\textwidth}
        \centering
        \includegraphics[width=\textwidth]{example-image-a} 
        \caption{A subfigure} \label{fig:sub1}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
        \centering
        \includegraphics[width=\textwidth]{example-image-b} 
        \caption{B subfigure} \label{fig:sub2}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image-c} 
        \caption{C subfigure} \label{fig:sub3}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image-d} 
        \caption{D subfigure} \label{fig:sub4}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image-e} 
        \caption{E subfigure} \label{fig:sub5}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image-f} 
        \caption{F subfigure} \label{fig:sub6}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image-g} 
        \caption{G subfigure} \label{fig:sub7}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image-h} 
        \caption{H subfigure} \label{fig:sub8}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image-i} 
        \caption{I subfigure} \label{fig:sub9}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image-j} 
        \caption{J subfigure} \label{fig:sub10}
    \end{subfigure}
    
    \caption{the main caption of the figures} \label{fig:figure}
\end{figure}
\end{document}
4

1 回答 1

1

您可以\ContinuedFloatcaption包装中使用将您的身材一分为二。如果您的文档中的其他文本干扰了图形,请\clearpage在它之前/之后添加。

\documentclass{article}

\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx}

\begin{document} 
   
\begin{figure}[htbp]
    \centering
    \begin{subfigure}[b]{0.45\textwidth}
        \centering
        \includegraphics[width=\textwidth]{example-image-a} 
        \caption{A subfigure} \label{fig:sub1}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
        \centering
        \includegraphics[width=\textwidth]{example-image-b} 
        \caption{B subfigure} \label{fig:sub2}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image-c} 
        \caption{C subfigure} \label{fig:sub3}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image} 
        \caption{D subfigure} \label{fig:sub4}
    \end{subfigure}
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image} 
        \caption{E subfigure} \label{fig:sub5}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image} 
        \caption{F subfigure} \label{fig:sub6}
    \end{subfigure}
    \hfill    
  \end{figure}
  \begin{figure}[htbp]
    \centering    
    \ContinuedFloat
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image} 
        \caption{G subfigure} \label{fig:sub7}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image} 
        \caption{H subfigure} \label{fig:sub8}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image} 
        \caption{I subfigure} \label{fig:sub9}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.45\textwidth}
    \centering
        \includegraphics[width=\textwidth]{example-image} 
        \caption{J subfigure} \label{fig:sub10}
    \end{subfigure}
    
    \caption{the main caption of the figures} \label{fig:figure}
\end{figure}
\end{document}
于 2021-10-22T08:13:23.213 回答