IEEE 模板中的失控参数错误

IEEE 模板中的失控参数错误

我正在使用背面的模板“为 IEEE 赞助会议和研讨会准备论文”。我在 ACM 模板中使用了一个没有错误的图表,我想在这个 IEEE 模板中使用它:

\begin{figure}[thpb]
  \centering
  \includegraphics[width=9cm]{figureName.png}
  \caption{Inductance}
  \label{figureName}
\end{figure}

但是我收到了以下错误(该图是从以前的项目导入的):

失控参数?width=9cm]{figureName.png}
\caption {振荡器电感\ETC。段落在 \Gin@iii 完成之前结束。 \par

有人可以帮忙吗?

答案1

如果加载graphics(with s) 而不是graphicx(with x),然后尝试使用 keyval-syntax,则会出现此错误:

\documentclass{article}
\usepackage{graphics} %<- wrong, should be graphicx
\begin{document}
\begin{figure}[thpb]
  \centering
  \includegraphics[width=9cm]{example-image.png}
  \caption{Inductance}
  \label{figureName}
\end{figure}
\end{document}

给出

Runaway argument?
width=9cm]{example-image.png} \caption {Inductance} \label {figureNam\ETC.
! Paragraph ended before \Gin@iii was complete.

解决方案:加载graphicx

相关内容