0

This has been working before, see e.g. here for reference. The png picture is in the same folder as the latex document. Do I miss anything?

\documentclass[12pt]{article}

\usepackage{fancyhdr}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{url}
\usepackage[parfill]{parskip}
\usepackage{enumerate}
\usepackage{framed}
\usepackage{xcolor}

\begin{document}

Start with nice text...

\begin{figure}[h!]
\centering
  \includegraphics[width=0.5\textwidth]{Temperatur.png}
  %\caption{}
    %\caption{Schema des Verkehrsflusses \protect\\\hspace{\textwidth} aus http://www.mathe.tu-freiberg.de/~bernstei/HMI/Verkehr.html.
  %\label{}
\end{figure}

\end{document}

The first part of the error:

enter image description here

  • 1
    Your code works fine for me, may be this tex.stackexchange.com/questions/511138/… will helps you... – MadyYuvi Oct 15 '19 at 12:21
  • Update your miktex both in user mode and admin mode. – daleif Oct 15 '19 at 12:38
  • 1
    @MadyYuvi The link solved my problem!! Thanks a lot - you saved my life ;-) – Christoph Oct 15 '19 at 12:40
  • @daleif the update was the problem - see above ;-) – Christoph Oct 15 '19 at 12:40
  • @Christoph Glad to hear that you solved the issue.... – MadyYuvi Oct 15 '19 at 12:59