\ContinuedFloat 不适用于回忆录类,为什么?

\ContinuedFloat 不适用于回忆录类,为什么?

memoir课堂上使用时\ContinuedFloat,图形会以子图形式标记,例如 (a)、(b)、(c)、(d)、(e)、(f),而在下一页中,它会继续以 (a)、(b)、(c)、(d)、(e)、(f) 的形式再次显示,而不是 (g)、(h)、(i)、(j)、(k)、(l)。但在课堂上,report它运行良好,没有问题。

我还在下面写了一个示例代码:

\documentclass[a4paper,12pt]{memoir}

\usepackage[margin=1 in]{geometry}

\usepackage{graphicx} 

\usepackage{subfigure}

\usepackage[section]{placeins}

\begin{document}

\section{Figure Arrangements}

\begin{figure}

\vspace{-12cm}

\subfigure[a]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_01.jpg}
    \label{fig:fig1}}

\subfigure[b]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_02.jpg}
        \label{fig:fig2}}    
    
\subfigure[c]{
    \centering
        \subfloat\includegraphics[scale = 1]{myfig_03.jpg}
        \label{fig:fig3}}

\subfigure[d]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_04.jpg}
        \label{fig:fig4}}    

\subfigure[e]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_05.jpg}
        \label{fig:fig5}}    

\subfigure[f]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_06.jpg}
        \label{fig:fig6}}        
\end{figure}    

%% The below figures will come in next page

\begin{figure}

\ContinuedFloat    

\subfigure[g]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_07.jpg}
        \label{fig:fig7}}

\subfigure[h]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_08.jpg}
        \label{fig:fig8}}

\subfigure[i]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_09.jpg}
        \label{fig:fig9}}

\subfigure[j]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_10.jpg}
        \label{fig:fig10}}\hspace{-0.25cm}    

\subfigure[k]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_11.jpg}
        \label{fig:fig11}}    

\subfigure[l]{

    \centering
        \subfloat\includegraphics[scale = 1]{myfig_12.jpg}
        \label{fig:fig12}}    

\caption{Figure Arrangements}

\label{fig:all_figures}

\end{figure}

\end{document}

我还附上了带有类的输出图像memoir,以便更清楚。您还可以在第二页中看到 (a)g、(b)h、(c)i、(d)j、(e)k、(f)l 全部用红色四舍五入。它应该是 (g)g、(h)h、(i)i、(j)j、(k)k、(l)l,这是正确的顺序。如果我将\documentclass{report}而不是放入\documentclass{memoir},则正确的顺序就会实现。但我需要 中的这种安排memoir。如何解决这个问题?

在此处输入图片描述

答案1

该软件包subfigure已经过时了很长时间。请考虑使用subfigsubcaption。以下内容应该可以在memoir report

% arara: pdflatex

\documentclass[a4paper,12pt]{memoir}
\usepackage[margin=1 in]{geometry}
\usepackage[demo]{graphicx} 
\usepackage{subcaption}
\usepackage[section]{placeins}

\begin{document}
\section{Figure Arrangements}
\begin{figure}
    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_01.jpg}
        \caption{a}\label{fig:fig1}
    \end{subfigure}\hfil
    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_02.jpg}
        \caption{b}\label{fig:fig2}
    \end{subfigure}

    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_03.jpg}
        \caption{c}\label{fig:fig3}
    \end{subfigure}\hfil
    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_04.jpg}
        \caption{d}\label{fig:fig4}
    \end{subfigure}

    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_05.jpg}
        \caption{e}\label{fig:fig5}
    \end{subfigure}\hfil
    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_06.jpg}
        \caption{f}\label{fig:fig6}
    \end{subfigure}
\end{figure} 

% The below figures will come in next page
\begin{figure}
    \ContinuedFloat
    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_07.jpg}
        \caption{g}\label{fig:fig7}
    \end{subfigure}\hfil
    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_08.jpg}
        \caption{h}\label{fig:fig8}
    \end{subfigure}

    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_09.jpg}
        \caption{i}\label{fig:fig9}
    \end{subfigure}\hfil
    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_10.jpg}
        \caption{j}\label{fig:fig10}
    \end{subfigure}

    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_11.jpg}
        \caption{k}\label{fig:fig11}
    \end{subfigure}\hfil
    \begin{subfigure}[b]{.45\linewidth}
        \centering
        \includegraphics{myfig_12.jpg}
        \caption{l}\label{fig:fig12}
    \end{subfigure}
\end{figure} 
\end{document}

相关内容