我想使用aastex
overleaf 文档的样式,但我需要更改参考书目样式,以便文本中的参考文献可以按照 来指示,并且this is the references [1]
参考书目中的参考文献可以保持标准\bibliographystyle{aasjournal}
。我读到过,使用 可以得到类似的效果\usepackage[square,numbers]{natbib}
。
但是,如果我只是尝试编译
\documentclass{aastex63}
\usepackage{comment}
\usepackage[square,numbers]{natbib}
它返回一个冲突错误:
LaTeX Error: Option clash for package natbib.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.4
The package natbib has already been loaded with options:
[sort&compress]
There has now been an attempt to load it with options
[square,numbers]
Adding the global options:
sort&compress,square,numbers
to your \documentclass declaration may fix this.
Try typing <return> to proceed.
现在,如果我查看文档,我只会发现两个与此问题aastex63.cls
相关的条目:natbib
% Restore natbib package without sorting.
\def\NAT@sort{0}
\def\NAT@cmprs{0}
% only redefine sort@cites for natbib versions < 2009
\@ifundefined{NAT@sort@cites@}{\def\NAT@sort@cites#1{\edef\NAT@cite@list{#1}}}%
我以为注释掉前两行就足够了,但这显然是错误的。有什么建议吗?
答案1
尝试这个:
\usepackage{natbib}
\setcitestyle{square}
\renewcommand\bibnumfmt[1]{[#1] }