name.jpg is incorrectly on all pictures, on left in this case...

Hi I'm debugging my Schools Thesis template, and name.jpg of figures I import are mysteriously showing up. I have included the caption definition (I think) and the code I used to input image.


  \addcontentsline{\csname ext@#1\endcsname}{#1}%
    {\csname fnum@#1\endcsname.\space\ignorespaces #2}%
    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par


                \caption{words go here

The body.tex seems pretty straightforward, but I don't understand most of .cls coding.

"name.jpg" is also showing up NEXT to one of my figures, in one case, very odd....

  • You have spaces in the name of the file; add quotes around it. – egreg Dec 14 '18 at 18:15
  • "name with space".jpg Got it!!!!!!!!!!!!!! – Philip Dec 14 '18 at 18:37
  • Look at the line \includegraphics[width=0.6\linewidth]Chapter1Figures/name.jpg} of body.tex. I suppose, an opening curly brace before the uppercase C of the directory name "Chapter1Figures"is missing. Should be: \includegraphics[width=0.6\linewidth]{Chapter1Figures/name.jpg} – Ulrich Diez Dec 14 '18 at 18:53