I'm writing my Lieder-Package right now, which provides commands to build sty-files which are basically data bases for songs. Inside these data base files, I use \includegraphics and a relative path to call samples. These samples are stored in the same path as the data base file or nearby. i.e.: ~somePath/SoA/SongsOfAcients.sty and ~somePath/SoA/SongsOfAcients/sample1.pdf
The problem is, that when I call the data base file, the relative path refers to my document and not to the package. This is somehow logical, because the code is executed after full expansion, which is in the document.
As far as I can see, the currfile package isn't suitable, because it works only for packages loaded after currfile. Is there maybe a way for a work around with \edefs or is there any TeX-primitive, which could be helpfull?
SongsOfAcients.sty?\usepackage{SongsOfAcients}? – David Carlisle Nov 09 '16 at 16:53\usepackage{../songbooks/SoA/SongOfAncients}. Otherwise the package wont be found. The package itself contains\includegraphics[width=\linewidth]{../SongOfAncients/sample1}. – MaestroGlanz Nov 09 '16 at 16:56\usepackageshould be a package name not a filepath. If the package was properly installed you would be able to use\usepackage{SongOfAncients}in the document and the file could use\includegraphics[width=\linewidth]{sample1}– David Carlisle Nov 09 '16 at 17:00D:/Songs/S.o.A.styand should be added to the MikTeX database. – MaestroGlanz Nov 09 '16 at 17:04\usepackage{../../texmf/tex/latex/tools/array}– David Carlisle Nov 09 '16 at 17:08