0

In Overleaf I use

\usepackage[backend = biber, style = nature]{biblatex}
\addbibresource{bibfile.bib}

in the preamble and

\printbibliography

in the document. The result is enter image description here

enter image description here

I want to do the same in TeXstudio but I can't. Can you help me?

phymath
  • 323
  • 2
    Overleaf manages most of the compilation steps for you automatically behind the scenes. If you want to compile your document locally you need to compile it with LaTeX, Biber, LaTeX, LaTeX (where LaTeX is your favourite flavour of LaTeX: pdfLaTeX, LuaLaTeX, XeLaTeX). See https://tex.stackexchange.com/q/63852/35864 for background and https://tex.stackexchange.com/q/154751/35864 for help with setting your editor up for Biber. – moewe Apr 03 '20 at 03:38
  • Any new here? Did you manage to run Biber in TeXstudio? Do you get the desired output now? If not, what did you try and how does it nor work for you? – moewe Apr 07 '20 at 19:18
  • I already posted my answer. Thank you! – phymath Apr 08 '20 at 11:31

1 Answers1

1

SOLUTION

1) I installed the "nature" and "biblatex-nature" packages in the MiKTeX console:

enter image description here

2) In the TeXstudio preferences (Options / Configure TeXstudio), I chose the Build tab and changed the 'Default Bibliography Tool' to 'Biber':

enter image description here

3) Finally I compiled as follows:

  1. (F5) PdfLaTeX or LaTeX
  2. (F8) Biber
  3. (F5) PdfLaTeX or LaTeX

The result is:

enter image description here enter image description here

phymath
  • 323