I want to have a directory called "Templates" where I would like to have .tex files and image files for inclusion. An example template would setup a letter format with watermark, fancy header, language settings, font selection etc. I want to have my templates at one place, and have all other documents at another location. For example:
Documents | |- Templates | | | |-- letter_header.tex | |-- company_watermark.png | |- Contracts | | | |-- Company 01 | | | | | |-- contract01.tex | | |-- contract02.tex | | |-- contract03.tex
Here is my problem. From contract01.tex I would like to do something like this:
However, this won't work because LateX cannot write aux files in that directory. Under Microsoft Windows, there is no symbolic link that could be used. I understand that it is a security risk to allow latex to write into any directory ( (How) can I include the file somedir/file.tex in the file somedir/subdir/anotherfile.tex ). So what is the safe way? Can I specify that under "Documents" it should be able to write to any directory?
Most important question: there must be thousands using LateX with their own templates, and they probably want to separate template code from actual content. Are all of them forced to use clumsy / unsafe solutions?
Uploaded an example here: https://www.dropbox.com/s/15dxnu48wdqp897/SyncedFolder.zip
What I want is to be able to use my businessletter class from test01.tex, test02.tex, test03.text or from any folder under SyncedFolder/Documents. The watermark.jpg file belongs to the businessletter class, and so it should be loaded from the class file.
results of setting TEXINPUT: