When I use elsarticle class; see
http://hess.ess.washington.edu/repository/BCO_neon_2019/tex/elsarticle.cls
I get the below errors:
! Undefined control sequence, \global\bibsep
! You can't use a prefix with ‘the character = '.<to be read again>= \global\bibsep=
How can I fix these errors?
Here is the code:
\documentclass[final,3p,times,10pt]{elsarticle}
\usepackage[T1]{fontenc}
\usepackage{babel,natbib}
\begin{document}
I am confused.
\bibliographystyle{model1-num-names}
\bibliography{Bib}
\end{document}
Best Answer
You are using a copy of natbib in which lines 637-641 have been commented out:
Files in the standard distribution shouldn't be altered in this way. If you edited the file, replace it by the original, if you obtained this from some distribution, report it to the distributor.
As this is removing the definition of
\bibsep
you get an error that\bibsep
is not defined....Several other parts of the file are similarly commented out.