![Elsevier テンプレートの問題: 引用が [1-5] としてグループ化されるのではなく、[1,2,3,4,5] としてグループ化される](https://rvso.com/image/420943/Elsevier%20%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%81%AE%E5%95%8F%E9%A1%8C%3A%20%E5%BC%95%E7%94%A8%E3%81%8C%20%5B1-5%5D%20%E3%81%A8%E3%81%97%E3%81%A6%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97%E5%8C%96%E3%81%95%E3%82%8C%E3%82%8B%E3%81%AE%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%8F%E3%80%81%5B1%2C2%2C3%2C4%2C5%5D%20%E3%81%A8%E3%81%97%E3%81%A6%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97%E5%8C%96%E3%81%95%E3%82%8C%E3%82%8B.png)
の中にエルゼビアのテンプレート、質問のタイトルに記載されているように問題があります。 には他にも関連する質問がいくつかありますtex.stackexchange
が、ここでは役に立ちません。この問題を解決する方法をご存知ですか?
テンプレートをダウンロードするためのリンク:http://mirrors.ctan.org/macros/latex/contrib/elsarticle.zip
テンプレートのアドレスは次のとおりです。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
答え1
こんな感じでうまくいくはずだ
\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}