[Tex/LaTex] Undefined control sequence `\includegraphics`

graphics

I understand a number of people have asked similar questions to this but I am yet to find an answer in their questions which solves the problem I'm having.

I am trying to put an image into a pdf. I have done this plenty of times and never had any major issues.

This is some of my code:

\documentclass[a4paper]{article}
\usepackage{times}
\usepackage[margin=1in] {geometry}
\usepackage{mathptmx} 
\usepackage{amsmath, amsthm, amssymb}
\usepackage{multirow}
\usepackage[english]{babel}
\usepackage{hyperref}
\usepackage{graphicx}

\graphicspath { {D:\Work\Thesis\Images} }

\begin{document}
\title{Developing...}

\section{xx}

\subsection{xx}

\includegraphics[width=7.5cm]{vv1.jpg} 

\end{document}

I have checked the directory of the image clearly and the image name and both are correct. I have tried putting the image in a different document and its worked just fine.

Best Answer

\graphicspath { {D:\Work\Thesis\Images} }

TeX will look for macros \Work, \Thesis, and \Images. You can use forward slashes instead (also in Windows):

\graphicspath{{D:/Work/Thesis/Images/}}

Also you need the directory separator at the end of the path, because package graphicx only puts the path before the image name.

The additional set of curly braces is correct.