For my thesis I'm using a given package from my university (titlepage.sty). Inside this package a figure is included VUB_logo. However, I wanted to put the packages I use in a folder named packages and then include them. This makes my root directory less polluted with files.
So what I did was create a directory structure as such:
master-thesis
├── bibli.bib
├── images
├── _introduction.tex
├── listings
│ ├── ...
├── packages
│ ├── VUB_logo.pdf
│ ├── VUB_schild.pdf
│ ├── vubtitlepage.sty
│ └── mathpartir.sty
├── _prescience.tex
├── _relatedwork.tex
├── _ruleshorthands.sty
├── _semantic.tex
├── thesis.bbl
├── thesis.tex
└── todo.md
In thesis.tex I included my titlepage package as such \usepackage{packages/vubtitlepage}.
Inside the vubtitlepage.sty there is an include:
\includegraphics[width=75.5mm,height=15.25mm]{VUB_logo}
As I understand it the path is relative to the root directory (i.e., the path of thesis.tex). Consequently it tries to load the image from there. It would be a solution to change the path of VUB_logo to packages/VUB_logo but that would couple my packages folder to parent directory. I was hoping to resolve this.
So far I also tried using subimport as per this question, but it doesn't seem to work. Or I am doing something wrong.
texmf.cnffile or you could useTEXINPUTS=.//: pdflatex thesisas your commandline or you could not set TEXINPUTS at all and put the vubtitlepage in an existing tex input directory such as~/texmf/tex/latex/vub– David Carlisle Apr 15 '15 at 08:26TEXINPUTS=.//:in front of the command was the easiest and most portable solution. Thank you very much! – Christophe De Troyer Apr 15 '15 at 08:34