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:
\include{../../Templates/letter_header.txt}
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?
UPDATE:
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:

\includerather than\inputor better just use\documentclass{myletter}that way you only ever need to write aux files to teh current directory – David Carlisle May 07 '14 at 12:04\input{letter_header}and arrange that Documents/Templates is in your TEXINPUTS path, you should not need to put tthe path in the document, just as you don't use\input{/texlive/texmf-dist/tex/latex/base/article.cls}– David Carlisle May 07 '14 at 12:07\fancyhead[RE,LO]{\includegraphics[width=1cm]{sm_stamp.png}}
If I use \input instead of \include then I get this:
LaTeX Warning: File `sm_stamp.png' not found on input line 48. ! Unable to load picture or PDF file 'sm_stamp.png'.
The png file and the letter_header.tex file are in the same directory. So I guess \include changes to the directory of letter_header.tex and \input doesn't. As a result, relative image paths cannot be used from letter_header.tex.
– nagylzs May 07 '14 at 19:02TEXINPUTS=.//: pdflatex myfileand then tex will find any tex or image files at any depth of any subdirectory of the current directory. Replace.//by any suitable place on your machine where you want it to look – David Carlisle May 16 '14 at 15:00:to search the standard places as well as .// – David Carlisle May 16 '14 at 15:15