[Tex/LaTex] How to include graphics from parent directory using \graphicspath

graphicsmiktextexlive

To include graphics from parent directory I am using

\usepackage{graphicx}
\graphicspath{{../pop/}{../graph/}}

This works fine for MiKTeX but seems to fail for TeX live installed on the same computer (compiler did not find graphics files).

What I'm doing wrong? The directories PoP and Graph are located on the same level as the working directory with the source LaTeX file.

Update: Directory structure (for test purposes I put same graphics files in PoP and Graph subdirecrtories)

ECRH 
|- OS2012
|  |- ECRH(proc).tex
|- PoP
|  |- ECRH-Fig1.pdf
|  |- ECRH-Fig2.pdf
|  |- ...
|- Graph
   |- ECRH-Fig1.pdf
   |- ECRH-Fig2.pdf
   |- ...

Best Answer

check your security settings in texmf.cnf access to ../ may be turned off. My (default) TL2012 installation allows them for reading:

% Allow TeX \openin, \openout, or \input on filenames starting with `.'
% (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)?
% a (any)        : any file can be opened.
% r (restricted) : disallow opening "dotfiles".
% p (paranoid)   : as `r' and disallow going to parent directories, and
%                  restrict absolute paths to be under $TEXMFOUTPUT.
openout_any = p
openin_any = a
Related Question