I have read the following posts on this site: How to avoid showing the filename when using graphicx? and Include figure from PDF file, but havent had any luck following the answers posted in the questions.
I am using \includegraphics to bring in figures and the file locations for the figures are showing up with the figures when I compile the PDF.
A working example:
\documentclass[12pt]{article}
%preamble - set document settings
%package for loading images
\usepackage{graphicx}
%package needed for setting graphicspath with spaces in directory name
\usepackage[space]{grffile}
\begin{document}
\includegraphics[width=0.5\linewidth]{{S:/Adv/Scallop Central/Logos/fullcolorlogo}.png}
\end{document}
I have also tried the following:
\includegraphics[width=0.5\linewidth]{{"S:/Adv/Scallop Central/Logos/fullcolorlogo"}.png}
\includegraphics[width=0.5\linewidth]{"S:/Adv/Scallop Central/Logos/fullcolorlogo".png}
but the PDF did not compile. There was a warning that the image couldn't loaded because it is not a recognized file format.
When I do get the image in the PDF it looks like:
Any help would be appreciated .


{"S:/Adv/Scallop Central/Logos/fullcolorlogo.png"}? – Sigur Feb 12 '19 at 19:56.pngoutside? I've never seen anyone do that"...."Ln the entire file name should be enough. Best if course is to never use spaces in folder or file names – daleif Feb 12 '19 at 19:57\begin{document} \begin{figure} \includegraphics{{"../Current folder/1.This file"}.png} \end{figure} \end{document}
– user41509 Feb 12 '19 at 20:01\includegraphics[width=0.5\linewidth]{"S:/Adv/Scallop Central/Logos/fullcolorlogo".png}should work (although not having spaces is better and not having the full path makes the document more portable) so\includegraphics[width=0.5\linewidth]{fullcolorlogo}would be best. If you are using latex+dvips then it can not include png files. This form should work just with graphicx, you don't need grffile – David Carlisle Feb 12 '19 at 20:52\usepackage{grffile}before...graphicx. I'm not sure that this is necessary here, but my advice stems from using the pdfpages package. If pdfpages is loaded before grffile, grffile doesn't work. – Keks Dose Feb 13 '19 at 08:37