LaTeX forum ⇒ BibTeX, biblatex and biberWhat is $LOCALTEXMF under OS X? Topic is solved

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

What is $LOCALTEXMF under OS X?

Postby erwann » Wed Feb 22, 2017 1:23 am

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 717 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 717 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 717 times
OS X 10.11
pdfTeX 3.14159265-2.6-1.40.17

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

Postby rais » Wed Feb 22, 2017 3:29 am

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
  1. 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
  1. 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: 8296
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Feb 22, 2017 12:14 pm

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
Site admin

erwann
Posts: 21
Joined: Thu Aug 25, 2016 2:24 am

Postby erwann » Tue Mar 14, 2017 6:49 pm

  1. kpsewhich -show-path bib


It worked, thanks.
OS X 10.11
pdfTeX 3.14159265-2.6-1.40.17


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests