4

This question already has an answer here:

I am trying to include the bibliography in a file I'm writing. The editor I'm using is TeXShop (OS is mac OSX).

I'm following a tutorial where I found that to include the bibliography using Biber I need a .bib file and the following commands:

\usepackage[autostyle]{csquotes} 
\usepackage[backend=biber]{biblatex}
\addbibresource{bib_file.bib}

and then

\printbibliography

Then it says that, in order to make the bibliography appear in the document, I should:

  • Compile
  • Run Biber from the editor
  • Re-compile twice

But how do I run Biber from TeXShop?

PS I've already set Biber as my default BibTeX Engine in Preferences/Engine, but I don't know how to run it. If I simply compile the document (i.e. press "Typeset") no bibliography will appear.

marked as duplicate by Alan Munn, Henri Menke, Mensch, Werner, user36296 Aug 5 '16 at 19:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 6
    Funny you should ask, we seem to have just the answer for you Biblatex with Biber: Configuring my editor to avoid undefined citations – moewe Aug 5 '16 at 16:21
  • @moewe I've already set Biber as my default BibTeX Engine in Preferences/Engine, but I don't know how to run it. If I simply compile the document (i.e. press "Typeset") no bibliography will appear. – valerio Aug 5 '16 at 16:37
  • 2
    Hotkey: typeset/bibtex = Shift-Cmd-B – ccorn Aug 5 '16 at 16:39
  • 2
    BibTeX doesn't produce any .bbl files on Mac OS seems to suggest you have to choose "BibTeX" in the drop-down menu or use some kind of hotkey: SHIFT+CMD+B. – moewe Aug 5 '16 at 16:40
  • 3
    @valerio92 I've updated the linked answer to make it clear how to run biber as well. – Alan Munn Aug 5 '16 at 19:14
3

Assuming you have the .bib file place the line

% !TEX TS–program = pdflatexmk

at the top of your .tex file. Then typeset using Typeset->Typeset (Cmd-T). That will automatically run biber when necessary and all the necessary runs of pdflatex.

If you want to create a .bib file try using BibDesk which you can find in /Applications/TeX.

If you always will use biber you can also make it the default bibtex engine in TeXShop->Preferences->Engine.

  • It works. But could I ask what does this command do exactly? – valerio Aug 5 '16 at 22:51
  • 1
    That `command', called a directive, tells TeXShop to use one of the special processing engines. The pdflatexmk engine uses the latexmk pearl program to use pdflatex then bibtex or biber (automatically) and make index, if necessary, finishing off with the proper number of runs of pdflatex to resolve all cross references. See Help->TeXShop Tips and Tricks for more information. – Herb Schulz Aug 5 '16 at 23:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.