TexStudio 中的 \includegraphics 错误

TexStudio 中的 \includegraphics 错误
\documentclass[ captions=tableheading, chapterprefix]{scrreprt} 

\usepackage{pgfplots}               % benötigt für Vektorgrafiken
\pgfplotsset{compat=newest,compat/show suggested version=false} %aktuelle 
%Version ohne Meldung
\usepackage{float}                  % Befehel [H] nagelt Grafiken an eine 
%Position fest
\usepackage{pdfpages}               % Einbinden von PDF Dateien 

\usepackage{graphicx}               % Einbinden von Grafiken 
\graphicspath{{../Grafiken/}}       % Grafiken Pfad
\usepackage{color}                  %farbiger Text, Hintergrund etc



\begin{document}

Test
\begin{figure}

    \includegraphics{Kraftschlussellipse}

\end{figure}

\end{document}

我在使用软件包时遇到错误includegraphics。我读到我应该更新 TeXstudio 和 MikTeX,但什么都没变。当我将鼠标指向代码时,会出现图片预览,路径一定是正确的。代码有什么问题?

总共test.log超过 30000 个字符。我希望我在这里得到了有用的信息:

l.21    \includegraphics{Kraftschlussellipse}

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.

! Undefined control sequence.
\Ginclude@graphics ...e \expandafter {\@curr@file 
                                                  }}\expandafter \filename@p...
l.21    \includegraphics{Kraftschlussellipse}

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.

! Undefined control sequence.
<recently read> \unquote@name 

l.21    \includegraphics{Kraftschlussellipse}

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.

! Undefined control sequence.
<recently read> \quote@name 

l.21    \includegraphics{Kraftschlussellipse}

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.

! Undefined control sequence.
<recently read> \quote@name 

l.21    \includegraphics{Kraftschlussellipse}

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.


! LaTeX Error: File `Kraftschlussellipse' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.21    \includegraphics{Kraftschlussellipse}

I could not locate the file with any of these extensions:
.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPEG,.JBIG2,.JB2,.eps
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

[1{C:/Users/student2/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}

答案1

Ulrike 是对的。我通过右键单击管理员模式启动了 MiKTeXConsole,而不是单击切换到管理员模式来启动它。感谢所有作者的快速帮助!

如何解决问题:启动 MiKTeX 控制台 --> 点击“切换到管理员模式” --> 点击更新。重启控制台 --> 点击“保持用户模式” --> 更新

相关内容