I've seen this question asked multiple times but I think I have already trouble-shoot all possible problems, when using \Includegraphics I get the error Undefined control sequence.
I am working with MikTex in Windows. Here is my code. I already included the package and the path. I really do not know what else to do.
\documentclass[oneside,11pt]{report}
\usepackage[a4paper,left=3cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[english]{babel}
\usepackage{indentfirst}
\usepackage[square,numbers]{natbib}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\graphicspath{ {C:\folder1\folder2} }
\begin{document}
\linespread{1.25}
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\Large
\includegraphics[width=0.4\textwidth]{image}
\end{center}
\end{titlepage}
\end{document}
\Includegraphicsin the text above the code. – egreg Dec 11 '22 at 13:08C:/folder1/folder2– Ulrike Fischer Dec 11 '22 at 13:10\includegraphics, what is correct – Zarko Dec 11 '22 at 13:10l.28 ...raphics[width=0.4\textwidth]{image} ?"
"Undefined control sequence. C:\Users
\User....
l.28 ...raphics[width=0.4\textwidth]{image}
?"
I doubled check everything, to be honest I am really lost....
– ALB_BUV Dec 11 '22 at 13:33latex(going throughdvi->ps->pdf), but not so much withpdflatex. After correcting\graphicspathto use slashes (this is necessary to avoid an undefined control sequence error unrelated to your graphics problem) you get file not found, because a suitable graphics file is not found. – Dai Bowen Mar 11 '23 at 23:34