Elsevier cas-sc 文档类别:无法打印由方括号括起来的引文标注

Elsevier cas-sc 文档类别:无法打印由方括号括起来的引文标注

cas-sc 类和 bibliographystyle {elsarticle-num}。当我运行这个时,我得到了以 ( ) 而不是 [ ] 为界的引用标注。

\documentclass[a4paper,fleqn]{cas-sc}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{subcaption}

我得到的引用标注(1) (2) (3)[1] [2] [3]

\bibliographystyle{elsarticle-num}
\bibliography{mybib}

答案1

您应该\usepackage{natbib}改成\usepackage[numbers,square]{natbib}

在此处输入图片描述

\documentclass[a4paper,fleqn]{cas-sc}

% create a sample bib file "on the fly":
\begin{filecontents}[overwrite]{mybib.bib}
@misc{a,author="Anne Author",    title="U", year=3001}
@misc{b,author="Brenda Branson", title="V", year=3002}
@misc{c,author="Carla Carlucci", title="W", year=3003}
\end{filecontents}

\usepackage[numbers,square]{natbib}
\bibliographystyle{elsarticle-num}

\usepackage{graphicx}
%\usepackage{subfigure} % <-- don't load this package, it's deprecated
\usepackage{subcaption}

\begin{document}
\noindent
\cite{a}, \cite{b}, \cite{c}
\bibliography{mybib}
\end{document}

相关内容