使用图形时未定义的控制序列

使用图形时未定义的控制序列

每当我尝试使用图形时,我都会收到一条错误消息。我在 Windows 上安装了 MikTex 2.9,并多次检查图形包是否已下载并更新。我甚至重新安装了它。

这是我的代码:

\documentclass[a4paper,11pt,titlepage]{article}

\usepackage{graphics}   %%<--Without this line it runs perfectly fine. 

\begin{document}
blablabla
\end{document}

这是我收到的错误消息:

! Undefined control sequence.
<argument> \ifpdf
\let \pdftexcmds@temp \ltx@one \@PackageInfoNoLine {pdftex...
l.440 }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Package pdftexcmds Info: \pdfdraftmode found.
)
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
38.
Package grfext Info: Graphics extension search list:
(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 456.
)
! Extra \fi.
\@begindocumenthook ...}[2009/07/12]\fi }{} }}\fi
\global \let \bibstyle =\@...
l.17 \begin{document}
I'm ignoring this; it doesn't match any \if.
[1
{C:/Users/Lara/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
(SP1_report.toc)
\tf@toc=\write3
\openout3 = `SP1_report.toc'.
[1] [1] [2]

如果不尝试使用图形,也不会出现有关 bibstyle 的警告。我可以尝试什么来解决这个问题?如果您需要更多信息,请告诉我。提前感谢您的帮助!

相关内容