[Tex/LaTex] Adding more \graphicspath causes images to not be found

graphicspaths

The structure of the document I'm writing is the following.

Top level -> Plots -> some images
                   -> 1 -> some images
                   -> 2 -> some images
                   -> 3 -> some images
                   -> 4 -> some images

Using the command:

\graphicspath{{./Plots/}{./Plots/1/}

Seems to work fine and allow me to add images from these two folders, however, when I try to add folders 2, 3 and 4 to the \graphicspath, I get an error for all figures saying that it cannot find the images.

Is there a way to fix this, or for the graphics package to look within all subfolders?

\documentclass[12pt, a4paper, notitlepage]{article}
\usepackage[margin=2.5cm]{geometry}
\usepackage{parskip}
\usepackage{setspace}
\renewcommand{\arraystretch}{1.15}
\onehalfspacing
\usepackage[pdftex]{graphicx}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\graphicspath{ {/Plots/}{/Plots/1/}{/Plots/2/}{/Plots/3/}{/Plots/4/} }

\title{Report}
\author{Me}
\date{April 2013}

\begin{document}

\maketitle
\thispagestyle{empty}

\newpage
\section{1}
Text.

\begin{figure}
\includegraphics[width=1\textwidth]{ImageFromPlots1}
\end{figure}    

\end{document}

Best Answer

There shouldn't be a problem.

I'm using:

\graphicspath{{images/}{../images/}{svg/}{gnuplot/}{gnuplot/examples/}}

and it works just fine. You can also get down and into another directory as you can see in my example.

You access the filesystem-root and not the subfolders (as you access / and not ./). This is most likely your fault.

Try

\graphicspath{ {Plots/}{Plots/1/}{Plots/2/}{Plots/3/}{Plots/4/} }

rather than

\graphicspath{ {/Plots/}{/Plots/1/}{/Plots/2/}{/Plots/3/}{/Plots/4/} }

On Linux/Unix systems you won't need the ./ at the beginning. Not sure about it on a Mac-system.

Related Question