2

It seems from the comments in this answer (Can I have a path argument that contains spaces?) that there is not a clear consensus on the use of ~ in the bibliography path.

For me this would be very useful, since I have different home directory names at work and at home, and it saves me forgetting why my bibliography is not working each time I change.

The comment suggesting using \string~ seems to work for me, and just using ~ has not (though someone else commented that this had been fine for them).

So is there a standard here, or does one just have to try a sequence of things and see which works.

In case people suggest the use of ../, this would be okay, but not quite as good, since just using ~ would save me having to edit my template at all.

5
5

To quote Alan Munn in the comments above "Why not put your .bib files in your local texmf folder: ~/texmf/bibtex/bib and then they will be found automatically. (i.e. you don't need to state the full path, just the .bib file name in your source document.)"

Install the latest version of TeXlive, and then place the bibliography in ~/texmf/bibtex/bib e.g.

~/texmf/bibtex/bib/my_bibliography.bib

Then one just needs to enter the line

\bibliography{my_bibliography}

at the end of any .tex file (in this example).

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.