BibTeX, biblatex and biberWhat is $LOCALTEXMF under OS X?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
erwann
Posts: 75
Joined: Thu Aug 25, 2016 2:24 am

What is $LOCALTEXMF under OS X?

Post by erwann »

I'm trying to put *.bib in a centralized directory under OS X. How do you do that?

From reading a few posts on this topic, it appears that $LOCALTEXMF is the place to put it. However, in Mac, this is not defined. Putting glossaries in /Users/my-mac/Library/texmf/tex works, so I thought putting *.bib there would work too, but it doesn't. It has to be in the directory from which I typeset the *.tex file containing the bib statements.
Attachments
Screen Shot 2017-02-21 at 6.17.29 PM.png
Screen Shot 2017-02-21 at 6.17.29 PM.png (9.11 KiB) Viewed 5543 times
Screen Shot 2017-02-21 at 6.06.05 PM.png
Screen Shot 2017-02-21 at 6.06.05 PM.png (21.66 KiB) Viewed 5543 times
Screen Shot 2017-02-21 at 6.05.20 PM.png
Screen Shot 2017-02-21 at 6.05.20 PM.png (40.6 KiB) Viewed 5543 times
x_86 / Linux Mint 18.3 / texlive 2015.20160320-1ubuntu0.1 / TeXworks 0.5r1361 (Debian)

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

What is $LOCALTEXMF under OS X?

Post by rais »

I'm not a MAC user, but then again, MACTeX is based on TeXlive, or so I've read at some post or other...
TL doesn't use $LOCALTEXMF anymore, AFAIK. Nowadays, it's $TEXMFLOCAL.
However, $TEXMFLOCAL isn't necessarily an environment variable (unless you set it yourself); use something like

Code: Select all

kpsewhich -var-value TEXMFLOCAL
to find out, if it's set on your system---and where it points to.
Then again, you may need to find out, where bib files are searched for. You can do that with

Code: Select all

kpsewhich -show-path bib
a colon (:) splits one path from another, a leading !! on a sub path indicates, that you have to run `mktexlsr' or `texhash' after dropping something into it---for the (newly dropped) addition to be found.
In my case, the check on $TEXMFLOCAL produces
/usr/local/texlive/texmf-local,
and the corresponding entry in the search path for .bib files in my case is
!!/usr/local/texlive/texmf-local/bibtex/bib//,
which (at least) should tell you, that just dropping some .bib file into $TEXMFLOCAL won't do; if you put this .bib file into $TEXMFLOCAL/bibtex/bib instead, it might just work (if you did the aforementioned texhash...)

KR
Rainer
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

What is $LOCALTEXMF under OS X?

Post by Stefan Kottwitz »

I got

kpsewhich -show-path bib

.:/Users/stefan/Library/texlive/2014/texmf-config/bibtex/bib//:/Users/stefan/Library/texlive/2014/texmf-var/bibtex/bib//:/Users/stefan/Library/texmf/bibtex/bib//:!!/usr/local/texlive/2014/texmf-config/bibtex/bib//:!!/usr/local/texlive/2014/texmf-var/bibtex/bib//:!!/usr/local/texlive/texmf-local/bibtex/bib//:!!/usr/local/texlive/2014/texmf-dist/bibtex/bib//

so it seems also putting into a user library such as /Users/my-mac/Library/texmf/bibtex/bib/ would work. Maybe that's not touched by an update like a central place. if you are the only LaTeX user on your Macbook, a user directory is a good place.

Stefan
LaTeX.org admin
erwann
Posts: 75
Joined: Thu Aug 25, 2016 2:24 am

What is $LOCALTEXMF under OS X?

Post by erwann »

Code: Select all

kpsewhich -show-path bib
It worked, thanks.
x_86 / Linux Mint 18.3 / texlive 2015.20160320-1ubuntu0.1 / TeXworks 0.5r1361 (Debian)
Post Reply