I just downloaded the sample manuscript of elsevier on the dedicated Elsevier's Latex Instructions webpage and when I run of the following commands:
pdflatex elsarticle-template && biber elsarticle-template
or
pdflatex elsarticle-template && biber elsarticle-template && pdflatex elsarticle-template
or (three commands sequentially)
pdflatex elsarticle-template
biber elsarticle-template
pdflatex elsarticle-template
or
(with .tex extension
pdflatex elsarticle-template.tex
biber elsarticle-template
pdflatex elsarticle-template.tex
I get the following error message:
ERROR MESSAGE N°1
INFO - This is Biber 2.16
INFO - Logfile is 'elsarticle-template.blg'
ERROR - Cannot find 'elsarticle-template.bcf'!
INFO - ERRORS: 1
There is no import of biblatex written in the template of elsevier. I tried to import manually by writing \usepackage[ backend=bibtex ]{biblatex} inside the preamble of the document elsarticle-template.tex but got the error message
ERROR MESSAGE N°2
! Package biblatex Error: Incompatible package 'natbib'.
See the biblatex package documentation for explanation.
Type H <return> for immediate help.
...
l.202 \blx@packageincompatibility
Elsevier seems to use the 'natbib' package.
How can I compile the document from the command line?
pdflatex elsarticle-template, second runbiber elsarticle-template, third runpdflatex elsarticle-template. – Simon Dispa Jan 31 '22 at 12:49pdflatex elsarticle-template && biber elsarticle-template && pdflatex elsarticle-templatebut get the same error – ecjb Jan 31 '22 at 12:51&&? You runpdflatex elsarticle-template.texand wait for the output? Then runbiber elsarticle-template(no file extension) and after it finished runpdflatex elsarticle-template.texagain. – Simon Dispa Jan 31 '22 at 12:57&&is a way to run the three commands in the command line in one line so that you don't have to type three different lines. I tried it again with the extension (pdflatex elsarticle-template.tex) but I still get the same error. – ecjb Jan 31 '22 at 13:09biberbutbibtex. – Ulrike Fischer Jan 31 '22 at 13:19bibercommand for all my projects so far and never usedbibtex. I replacedbiberbybibtexin the command above but it does not seem to work. Do you have a hint for an alternative command usingbibtex? And more generally isbibtexmore standard thanbiber? Is there an advantage ofbiberoverbibtex? – ecjb Jan 31 '22 at 13:27backend=bibtexas one of the options when loading biblatex. – Mico Jan 31 '22 at 13:55\usepackage[ backend=biber ]{biblatex}inside the preamble of the documentelsarticle-template.texbut got the error message `! Package biblatex Error: Incompatible package 'natbib'.See the biblatex package documentation for explanation. Type H for immediate help.
...
l.202 \blx@packageincompatibility `. What shall I do next?
– ecjb Jan 31 '22 at 14:12biber elsarticle-templateas a command and the second when writing\usepackage[ backend=bibtex ]{biblatex}in the preamble. Is it clearer now? – ecjb Jan 31 '22 at 15:05bibtex elsarticle-templateas a command instead of using biber. – Ulrike Fischer Jan 31 '22 at 15:08bibtex elsarticle-templatein another project? – ecjb Jan 31 '22 at 15:20