I would like to create a folder in my home directory to store a few files in it that should serve as templates e.g. handout.tex. I begin to write my specific file somewhere in my filesystem. Now I want to use something like:


or perhaps use an extra variable so I can put the template folder somewhere else and change only the variable.

Does anybody know how to use environment variables in LaTeX commands?

  • 1
    You should rather move these files to your texmf-local folder, where texhash can store its location. It's similar in nature to the environment variables, but local to TeX. – Werner Feb 8 '14 at 15:10
  • I am very new to LaTeX. What is the folder I have to put in my templates to use they for all my documents? I use Ubuntu Linux and my TeXLive installation is at /usr/local/texlive. I use the manually installed version of 2013. – Nick Lehmann Feb 9 '14 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.