GeneralBibliography File Path relative to Home with Tilde

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
cosmicraga
Posts: 3
Joined: Sat Oct 13, 2012 3:03 pm

Bibliography File Path relative to Home with Tilde

Post by cosmicraga »

Hi,

Can I use the bib file path using the tilde (~).

For example, I cannot use \bibliography{~/Bib/RefAbv} where my bibliography file name is "RefAbv.bib". It gives warnings about undefined citations. I do not want to use \bibliography{/home/username/Bib/RefAbv}.

I use DropBox. So if I can use tilde, then synchronization is perfect. I can work in any machine without changing the path of my bibliography files.

Also I do not want to put the bibliography file in my working directory.

I am using Ubuntu 12.04.
Last edited by cgnieder on Sat Oct 13, 2012 6:40 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

dmbortz
Posts: 1
Joined: Sun Sep 01, 2013 12:05 am

Bibliography File Path relative to Home with Tilde

Post by dmbortz »

Check out this interaction on TeX.SX. I think it will answer your question.

To be more precise, what I've done is make a symbolic link from ~/texmf/bibtex/bib/mypersonalbibfile.bib to the bibliography file on DropBox. Then you just need this line in your source file and BibTeX will find your bib database.

Code: Select all

\bibliography{mypersonabibfile}
D
Post Reply