I am using elsarticle-harv.bst as my bst file which can be reached here. When I include a reference with a DOI entry in the bib file, it shows adjacent to the page information as shown below. How can I have a gap between the page and DOI information?
Below I am sharing a MWE.
\documentclass[11pt]{article}
\usepackage{natbib}
\newcounter{bibcount}
\begin{document}
\cite{cite}
\bibliographystyle{elsarticle-harv}
\bibliography{mybibfile}
\end{document}
@article{cite,
title={Title information},
author={Smith, Joe and Kurtz, Marry},
journal={{IEEE Journal}},
year={2021},
pages= {1--5},
publisher={IEEE},
doi= {10.2456/TR.2021.54782}
}
If I update the page information in the bib item as pages= {1--5. $ $}
, it does solve my issue, but clearly, it is not an efficient solution.
elsarticle-harv
has a few peculiarities that essentially mean that the style expects@article
entries to have avolume
field. If an@article
entry misses thevolume
, the code used in the.bst
file causes some weird side effects like this one. If at all possible try to give avolume
field (or change the style). If you must useelsarticle-harv
and cannot give avolume
field, you can try fixing the.bbl
file manually for a one-off. ....bst
file to allow for@article
s withoutvolume
, but the code is quite complex and I don't quite understand why certain things are defined the way they are, so I cannot be sure that my attempts to fix this issue do not have bad side effects..bst
file, but it is quite complex and at least to me some bits of the code are unclear, so changes are a bit dangerous. You are presumably usingelsarticle-harv
because you want to publish with Elsevier, so you should probably contact them about this: Let them know that you need to cite a paper without volume and that their style does not handle it properly.