I worked with LaTeX for a short while and now I'd like to create my own templates for e.g. handouts. Here is a example for the beginning of my handout template:
\documentclass[12pt,german,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{url}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\setlength\parindent{0pt}
All of this templates should be in one folder somewhere on my file system e.g. ~/templates. If I start a specific file I'd like to import one of these files with \input{}. I got the advice to use texmf-local for this because the LaTeX commands doesn't understand environment variables (I use Ubuntu Linux). Unfortunately I don't have any experience with that.
So how can I create a central folder for all my templates and input these files with e.g. \input{handout}? It would be cool if I only have to change one variable after moving the template folder to another place.
stypersonal file at/usr/local/texlive/texmf-local/tex/latex/local/mymacros.styand then I can load it using\usepackage{}. – Sigur Feb 10 '14 at 18:05$HOME/texmf, then runningtexhash ~/texmfwhenever you add templates? – Bordaigorl Feb 10 '14 at 18:24texhash. Just create~/texmf/tex/latex/mytemplates/or whatever and put your files there. TeX doesn't rely on the database to find files in yourTEXMFHOME(~/texmf) but searches the relevant paths directly e.g.~/texmf/bibtex/bibfor.bibfiles etc. – cfr Feb 11 '14 at 03:13