En elplantilla de Elsevier, hay un problema como se indica en el título de la pregunta. Hay otras preguntas relacionadas tex.stackexchange
, sin embargo, no son útiles aquí. ¿Conoce alguna forma de resolver este problema?
El enlace para descargar la plantilla:http://mirrors.ctan.org/macros/latex/contrib/elsarticle.zip
Lo siguiente se refiere a la plantilla:elsarticle-template-num
\documentclass[preprint,12pt]{elsarticle}
\usepackage{amssymb}
\journal{Nuclear Physics B}
\begin{document}
\begin{frontmatter}
\title{}
\author{}
\address{}
\begin{abstract}
\end{abstract}
\end{frontmatter}
\section{}
\label{}
%% If you have bibdatabase file and want bibtex to generate the
%% bibitems, please use
%%
%% \bibliographystyle{elsarticle-num}
%% \bibliography{<your bibdatabase>}
\begin{thebibliography}{00}
%% \bibitem{label}
%% Text of bibliographic item
\bibitem{}
\end{thebibliography}
\end{document}
\endinput
Respuesta1
Algo como esto debería funcionar
\PassOptionsToPackage{sort&compress}{natbib}
\documentclass[preprint,12pt]{elsarticle}
\usepackage{amssymb}
\journal{Gnus of the World}
\begin{document}
\begin{frontmatter}
\title{Gnus and Gnats, IV.}
\author{John X. Doe}
\address{Nowhere U.}
\begin{abstract}
No need at this stage
\end{abstract}
\end{frontmatter}
\section{Gnus are everywhere}
\begin{filecontents*}{\jobname.bib}
@ARTICLE{Important,
author = "Doe, J.",
title = "Gnus and Gnats, {I}.",
journal = "Gnus of the world",
year = "2020",
volume = "2456",
number = "1",
pages = "123--2567",
}
@ARTICLE{Importantb,
author = "Doe, J.",
title = "Gnus and Gnats, {II}.",
journal = "Gnus of the world",
year = "2020",
volume = "2456",
number = "2",
pages = "34562--56210",
}
@ARTICLE{Importantbb,
author = "Doe, J.",
title = "Gnus and Gnats, {III}.",
journal = "Gnus of the world",
year = "1998",
volume = "2",
number = "1",
pages = "1--3",
}
\end{filecontents*}
\cite{Important,Importantb,Importantbb}
\bibliographystyle{elsarticle-num-names}
\bibliography{\jobname}
\end{document}