0

我正在尝试连续对齐几个子图。2个数字工作正常。当尝试包含第三个子图时,会出现以下错误消息:扫描使用@subfloat 时文件已结束。\包括{文档}

此 tex 文档包含在带有包的主文件中:

\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{subcaption}


%%%%%%new doc
\begin{figure}[h!]
\centering
\subfigure[a]{\includegraphics[width=0.1\textwidth]{Logos/Symbol_One_flow_path}}
\subfigure[b]{\includegraphics[width=0.1\textwidth]{Logos/1920px-Symbol_Two_flow_paths}}
\subfigure[c]{\includegraphics[width=0.1\textwidth]{Logos/Symbol_Two_flow_paths_(diagonally)} \subfigure[d]{\includegraphics[width=0.3\textwidth{Logos/Symbol_Two_flow_paths_with_connection}   
\subfigure[e]{\includegraphics[width=0.3\textwidth]{Logos/graph}    
\end{figure}
4

1 回答 1

1

这个问题可能是由于缺少}图 c、d 和 e 的末尾。这可以解释为什么你只有数字 a 和 b。

\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{subcaption}

\begin{figure}[h!]
\centering
\subfigure[a]{\includegraphics[width=0.1\textwidth]{Logos/Symbol_One_flow_path}}
\subfigure[b]{\includegraphics[width=0.1\textwidth]{Logos/1920px-Symbol_Two_flow_paths}}
\subfigure[c]{\includegraphics[width=0.1\textwidth]{Logos/Symbol_Two_flow_paths_(diagonally)}} %one } was missing here !
\subfigure[d]{\includegraphics[width=0.3\textwidth{Logos/Symbol_Two_flow_paths_with_connection}} % here also
\subfigure[e]{\includegraphics[width=0.3\textwidth]{Logos/graph}} %and here 
\end{figure}
于 2021-02-10T16:41:20.350 回答