\includegraphics 导致缺少数字,视为零错误

\includegraphics 导致缺少数字,视为零错误

我试图在我的文件中包括一张图片,但出现了这个错误:

! Missing number, treated as zero.
<to be read again> 
                   o
l.207               \includegraphics{rate\_of\_return}

我找遍了所有地方并尝试了很多方法,但问题仍然没有解决。

这是我的代码:

% ... some stuff

\item[c)] \hfill \\
    In the graph below, the full line is for 7\%, the long-short dashed
    line is for 6\%, and the regular dashed line is for 5\%.
        \includegraphics{rate\_of\_return}

% ... some stuff

答案1

您不必在文件名中转义下划线。因此您应该使用\includegraphics{rate_of_return}。其他文件命令(如\input\include或 )也是如此\includeonly

_当您想在文本中间输入内容时,需要转义下划线。

相关内容