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.
BibTeX, biblatex and biber ⇒ What is $LOCALTEXMF under OS X?
What is $LOCALTEXMF under OS X?
- Attachments
-
- Screen Shot 2017-02-21 at 6.17.29 PM.png (9.11 KiB) Viewed 5567 times
-
- Screen Shot 2017-02-21 at 6.06.05 PM.png (21.66 KiB) Viewed 5567 times
-
- Screen Shot 2017-02-21 at 6.05.20 PM.png (40.6 KiB) Viewed 5567 times
x_86 / Linux Mint 18.3 / texlive 2015.20160320-1ubuntu0.1 / TeXworks 0.5r1361 (Debian)
NEW: TikZ book now 40% off at Amazon.com for a short time.

What is $LOCALTEXMF under OS X?
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
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
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
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
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
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
- Stefan Kottwitz
- Site Admin
- Posts: 10344
- Joined: Mon Mar 10, 2008 9:44 pm
What is $LOCALTEXMF under OS X?
I got
so it seems also putting into a user library such as
Stefan
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
What is $LOCALTEXMF under OS X?
Code: Select all
kpsewhich -show-path bib
x_86 / Linux Mint 18.3 / texlive 2015.20160320-1ubuntu0.1 / TeXworks 0.5r1361 (Debian)