I'm trying to get BibLatex to work on my MacTex installation. I'm using this tutorial over at sharelatex.com.
They give the following MWE
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{biblatex}
\addbibresource{sample.bib}
\begin{document}
Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's
book \cite{dirac} are physics related items.
\printbibliography
\end{document}
When I compile this, I get something different from them. They get
but I get
Note mine has no references section, and my citations aren't written the same.
Possibilities
- It's not finding my
.bibfile. I notice that MacTex didn't create the file~/Library/texmffor me. I tried creating it myself, and putting my bib file in~/Library/texmf/bibtex/bib/. I'm not sure how to tell if this is working or not. I assume it would complain if it couldn't see my bib file, but maybe not. - biblatex isn't installed properly. I did just update tlmgr and updated biblatex.
Added: In response to a question, here is what my "pdfTeX" field says: Tex:pdftex --file-line-error --synctex=1 Latex:pdflatex --file-line-error --synctex=1
Here is what my "TeX + divps + distiller" field says: Tex: simpdftex etex --maxpfb --extratexopts "-file-line-error -synctex=1" Latex: simpdftex latex --maxpfb --extratexopts "-file-line-error -synctex=1"


biberbetween two latex runs? – Sergei Golovan Feb 23 '18 at 05:10bibtex ~/.../Playing-with-biblioit saysI couldn't open file name /.../Playing-with-biblio.blg. In fact, I don't know of any such file, and I don't know what that means. – Eric Auld Feb 23 '18 at 05:17.texat the end of the main file name. Most recently the biber one gave me the errorCannot find control file '/Users/ericauld/Desktop/Latex test/Playing-with-biblio.bcf'! - did you pass the "backend=biber" option to BibLaTeX?– Eric Auld Feb 23 '18 at 05:35backend=bibercommand. (And also tried it without) – Eric Auld Feb 23 '18 at 05:35.texfile there is now a.bcffile. Then run Biber. Biber should now find the.bcffile, the.blgfile should contain any other warnings and errors you need to worry about. Then run (pdf)LaTeX twice again. – moewe Feb 23 '18 at 11:05.bibfile calledsample.bib? – cfr Feb 24 '18 at 03:04.logand.blgfiles. – moewe Mar 01 '18 at 10:55\DeclareLanguageMappingshould not be needed in current versions ofbiblatex-apa. Other than that it's pretty solid. There are lots more things to be said, and I would probably always loadbabelandcsquoteswithbiblatex, but if we start with that, the page size would explode. – moewe Mar 10 '18 at 23:37.texfile (I'm not sure which ones that TeXShop creates are the temporaries.) When I runpdflatex, it tells meNo file Playing-with-biblatex.bbl. That is not even one of the files I had deleted. Further, it is spitting out the.logand.bcffiles in another directory, namely/users/ericauld. So I'm not sure if I should fix these issues before runningbiber. – Eric Auld Mar 30 '18 at 18:36/users/ericauldinstead of the working directory that is a potential problem. I assume you use TeXshop to call TeX? Can you show us a screenshot of the compilation settings? Please copy and paste the value of the most important fields, so that we can see the complete value in case it is cut off in the picture. You can try if your installation is OK by runningpdflatex foo,biber foo,pdflatex foo,pdflatex foofrom the command line (assuming your.texfile is calledfoo.tex). – moewe Mar 30 '18 at 20:10biber <filename>, it told me it couldn't find the bcf file, and asked whether I passed thebackend=bibercommand to BibLatTeX. (I went back and made sure that option was written in the TeX file, and the message still came up.) It's still putting the .bcf and .log files in that other directory when I compile from the command line. – Eric Auld Apr 06 '18 at 17:22/users/ericauldas well? Is the directory of your.texfile writeable? What doeskpsewhich -var-value TEXMFOUTPUTreturn if you type it in the command line? The fact that temporary files are sent to the wrong directory is definitely the problem here. The question is why that happens. It should not happen if the system has write access to the directory with the.texfile and you only callpdflatex foowithout further options. Did you at some point change settings to allow for a separate build directory or to send temporary files elsewhere? – moewe Apr 06 '18 at 18:56pdflatex <filename>were you in the directory of filename? Or did you saypdflatex ~/full/path/to/file? You must be in the directory of the file for things to work properly, i.e.cd ~/full/path/toand thenpdflatex file. – moewe Apr 06 '18 at 19:05pdflatex document,biber document,pdflatex document,pdflatex documentdo you get a complete document with citations and bibliography? Does Biber give an error? If everything is fine, double check with https://tex.stackexchange.com/questions/154751/ that your editor is set up correctly. If it is, it should be fine. In the screenshots you posted a while ago your editor is set up to use BiBTeX by default, which means you need a magic command to make it use Biber. See the link. – moewe Apr 07 '18 at 04:59.logand.bcffiles in the right place. When I typekpsewhich -var-value TEXMFOUTPUTinto the command line, it just thinks for a second, does nothing, and takes me back to the prompt. And no, I have never changed settings to allow for another build directory or to send temp files somewhere else. – Eric Auld Apr 21 '18 at 16:09bibtextobiberin theBibTeX enginefield. – Eric Auld Apr 21 '18 at 17:32