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}