I am trying to add a path to texmaker (Texmaker 4.5 on OSX Sierra).
The reason is that i want to be able to do the same template doc every time so i dont have to re-import everything manually.
I successfully did for org-mode, but i could not find the way to do it in LaTeX directly.
Any lead please?
Best Answer
solution 1: symlink
create this folder structure:
to create the symlinks go into the projectX folders and type
ln -s ../template template
then in
myProjectFile.tex
reference the template as\input{template/myTemplateFile.tex}
solution 2: git
git init .
git submodule add https://github.com/someuser/template.git template
content of the project main file looks the same in both approaches:
\input{template/myTemplateFile.tex}
single users should prefer the symlink apprach, for multiple users prefer the git approach.