![我正在使用 springer nature \documentclass[sn-mathphys]{sn-jnl},我需要像 (Nielsen and Chuang 2010) 这样的引用,但它得到的结果是](https://linux22.com/image/442683/%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20springer%20nature%20%5Cdocumentclass%5Bsn-mathphys%5D%7Bsn-jnl%7D%EF%BC%8C%E6%88%91%E9%9C%80%E8%A6%81%E5%83%8F%20(Nielsen%20and%20Chuang%202010)%20%E8%BF%99%E6%A0%B7%E7%9A%84%E5%BC%95%E7%94%A8%EF%BC%8C%E4%BD%86%E5%AE%83%E5%BE%97%E5%88%B0%E7%9A%84%E7%BB%93%E6%9E%9C%E6%98%AF%20.png)
我正在使用 Springer Nature
\documentclass[sn-mathphys]{sn-jnl},
我需要引用,(Baireuther 2018)
但结果却像1。我用过\usepackage{natbib}
。其次是:
\begin{document}
\bibliographystyle{plainnat}
我不知道我错在哪里。通过示例tex文件输入:
@article{baireuther2018machine,
title={Machine-learning-assisted correction of
correlated qubit errors in a topological code},
author={Baireuther, P and others},
journal={Quantum},
volume={2},
pages={48},
year={2018},
publisher={Verein zur F{\"o}rderung des Open Access
Publizierens in den Quantenwissenschaften}
}
样本:
\documentclass[sn-mathphys]{sn-jnl}
\usepackage{natbib}
\usepackage{enumerate}
\usepackage{lmodern}
\begin{document}
\bibliographystyle{plainnat}
\title{ aaa bbb ccc}
\author*[1]{\fnm{xxx} \sur{ yyy}}
\maketitle
\section{Introduction}\label{sec1}
aaaaa \cite{baireuther2018machine}
\bibliography{sn-bibliography}
\end{document}
答案1
使用\documentclass[sn-mathphys]{sn-jnl}
已经定义了参考书目样式,即\bibliographystyle{sn-mathphys}
。因此,写入\bibliographystyle{plainnat}
会尝试重新定义参考书目样式并导致错误。一种可能的解决方案是只写入\documentclass{sn-jnl}
而不使用“ sn-mathphys
”,或者您可以编辑定义本身sn-jnl.cls
。