\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
与课程一起使用。
您可以将subfig
和caption=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}
注意标签必须后標題。