my-include.tex contains things like:
Code: Select all
\newcommand{\abs}[1]{\left\vert #1 \right\vert}
\newcommand{\set}[1]{\left\{ #1 \right\}}
Code: Select all
\include{my-include}
I also have a bib file that need to be shared by a lot of my papers.
I want to do the same thing with my shared bib file called my-reference.bib.
I put my-reference.bib at ~/texmf/tex/latex/ and wrote a test document abc.tex that contains \bibliography{my-reference} and ran:
Code: Select all
texhash
latex abc.tex
latex abc.tex
bibtex abc
latex abc.tex
If I change \bibliography{my-reference} to use absolute path (\bibliography{/home/fj/texmf/tex/latex/my-reference}), then it works.