I created some rather big glossaries
files with symbols, acronyms, ...
Glossary_Acronyms.tex
Glossary_Glossary.tex
Glossary_Symbols.tex
for a programming project with multiple tex
documents as their documentation. Each glossaries
file is a single tex
file for reuse throughout the multiple documents of the project. I created a single common
directory to store files that are used in all tex
documents throughout the repository. I managed to access this common directory by definition of
\newcommand{\commonpath}{../Common}
and added the paths to the single documents relatively using this path statement.
\input{\commonpath/Glossary_Acronyms.tex}
\input{\commonpath/Glossary_Glossary.tex}
\input{\commonpath/Glossary_Symbols.tex}
The documents are part of a SVN repository. I am on Windows using MikTeX 2.9. I personally use Kile as IDE, but the IDE-dependent files are not part of the repository. I do not use xindy
. I create the glossaries with a batch file using makeindex and imakeidx
for indices for which I have the same problem. And I do not use command aggregation such as arara or latexmk yet, but thanks for the tip.
Now I want to write another new document as part of a another SVN repository and re-use the same glossaries
files. I could of course copy the files to the new project. However, I want to keep one common "language" throughout all of my documents. Thus, I would rather work and change one single file at a single location rather than to keep multiple files synchronized. For my local installation I now the relative positioning of the two repositories and their tex
documents with respect to each other, so I could do
\input{../[THEORIGINALPROJECT]/Common/Glossary_Acronyms.tex}
\input{../[THEORIGINALPROJECT]/Common/Glossary_Glossary.tex}
\input{../[THEORIGINALPROJECT]/Common/Glossary_Symbols.tex}
. However, if a 3rd person checks out both SVN repositories, I cannot assure that they use the same relative path of the 2 repository checkouts.
Now my question is, is there a possibility to add the absolute positioning of \commonpath
to the LaTeX search path? How can I access the unique glossaries
files from multiple projects?
Is there a possibility to make single tex
files available throughout the system, e.g. via the directories
path of the MikTeX Console
? Or is it preferable to pack the files into a new package to deploy myself? I do know that I can add directories having sty
or cls
files by generating a local texmf-like directory. But does this also work for tex
files?
Can someone please give me some hints? What is the best way?