\includegraphics funktioniert nicht

Inhalt, Abbildungen, Tabellen, Quellcodes und andere Verzeichnisse


gary95

\includegraphics funktioniert nicht

Beitrag von gary95 »

Hallo zusammen,

ich möchte gerne eine Grafik in mein Dokument einbinden. Ich habs mit verschiedenen Tutorials versucht, die mir alle folgendes vorgeschlagen haben:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
Test document
\begin{figure}
\includegraphics[width=4cm]{Latex.jpg}
\end{figure}
\end{document}
Die Bilddatei befindet sich im selben Ordner wie die Textdatei, aber ich erhalte folgende Fehlermeldungen:

! Undefined control sequence.
\Ginclude@graphics ...\Ginput@path \set@curr@file
{#1}\edef \uq@curr@file {\...
l.6 \includegraphics[width=4cm]{Latex.jpg}
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. [\b]

! Undefined control sequence.
\Ginclude@graphics ...e \expandafter {\@curr@file
}}\expandafter \filename@p...
l.6 \includegraphics[width=4cm]{Latex.jpg}
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.6 \includegraphics[width=4cm]{Latex.jpg}
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.6 \includegraphics[width=4cm]{Latex.jpg}
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.6 \includegraphics[width=4cm]{Latex.jpg}
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 `Latex.jpg' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.6 \includegraphics[width=4cm]{Latex.jpg}
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


Bisher konnte ich keine Lösung finden. Was mache ich falsch?

PatrickW
Forum-Anfänger
Forum-Anfänger
Beiträge: 29
Registriert: Mi 23. Okt 2019, 13:49

Beitrag von PatrickW »

Schau mal auf deinen Dateinamen, der ist nämlich Case- Sensitive sowie die Dateiendung auch.

DasProblemIstBekannt

Beitrag von DasProblemIstBekannt »

Deine LaTeX-Version und die Version von graphics passen nicht zusammen. Mach ein Komplettupdate der TeX-Distribution (bei MiKTeX sowohl im Admin-Modus der MiKTeX-Console als auch im User-Modus).

Siehe auch: https://github.com/MiKTeX/miktex-packaging/issues/131

Antworten