如果使用子图,则图号增加 2

如果使用子图,则图号增加 2
\documentclass{svmult}

% choose options for [] as required from the list
% in the Reference Guide, Sect. 2.2

\usepackage{makeidx}         % allows index generation
\usepackage{graphicx}        % standard LaTeX graphics tool
                             % when including figure files
\usepackage{multicol}        % used for the two-column index
\usepackage[bottom]{footmisc}% places footnotes at page bottom
%\usepackage{subfigure}
\usepackage{caption}
\usepackage{subcaption}
% etc.
% see the list of further useful packages
% in the Reference Guide, Sects. 2.3, 3.1-3.3
\makeindex             

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure*}[t!]
\label{Flowchart}
    \centering
    \begin{subfigure}[b]{0.5\textwidth}
        \centering
        \includegraphics[width=70 mm,height= 50 mm]{Flowchart_SMHI.pdf}
        \caption{(a)}
    \end{subfigure}%
    ~ 
    \begin{subfigure}[b]{0.5\textwidth}
        \centering
        \includegraphics[width=70 mm,height= 50 mm]{Flowchart_FMLI.pdf}
        \caption{(b)}
    \end{subfigure}
    \caption{Flowchart for SMHI and FMLI type of MBs}
\end{figure*}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

如果该图实际上应该显示为图 2,由于使用子图,它显示为图 3。

答案1

caption使用的软件包发出svmult.cls警告

Package caption Warning: \caption will not be redefined since it's already
(caption)                redefined by a document class or package which is
(caption)                unknown to the caption package.
See the caption package documentation for explanation.

更严重的是错误subcaption加载时发出的消息:

! Package caption Error: The `subcaption' package does not work correctly
(caption)                in compatibility mode.

See the caption package documentation for explanation.

这应该让你明白不能subcaption与课程一起使用。

您可以将subfigcaption=false选项一起使用。

\documentclass{svmult}

\usepackage[demo]{graphicx}

\usepackage[caption=false]{subfig}

\makeindex             

\begin{document}

\begin{figure*}[t!]
\centering

\hspace*{\fill}%
\subfloat[]{\includegraphics[width=.4\textwidth]{Flowchart_SMHI.pdf}}%
\hfill
\subfloat[]{\includegraphics[width=.4\textwidth]{Flowchart_FMLI.pdf}}%
\hfill

\caption{Flowchart for SMHI and FMLI type of MBs}\label{Flowchart}
\end{figure*}

\end{document}

注意标签必须標題。

在此处输入图片描述

相关内容