连续几个子图。乳胶只能连续放 2 个。子浮动错误

Several subfigures in a row. Latex only put 2 in a row. subfloat error

我正在尝试将多个子图对齐成一行。 2个数字工作正常。当尝试包含第三个子图时,会出现以下错误消息:File ended while scanning use of @subfloat。 \include{文档}

此 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}

这个问题可能是因为图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}