![Elsevier cas-sc 文档类别:无法打印由方括号括起来的引文标注](https://linux22.com/image/473020/Elsevier%20cas-sc%20%E6%96%87%E6%A1%A3%E7%B1%BB%E5%88%AB%EF%BC%9A%E6%97%A0%E6%B3%95%E6%89%93%E5%8D%B0%E7%94%B1%E6%96%B9%E6%8B%AC%E5%8F%B7%E6%8B%AC%E8%B5%B7%E6%9D%A5%E7%9A%84%E5%BC%95%E6%96%87%E6%A0%87%E6%B3%A8%20.png)
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}