我没有找到确切问题的解决方案,所以我开了一篇新帖子。我想在文本中引用这样的内容:(Doe,2001),但我的代码中有(Doe,J.,2001)。你能建议我如何更改代码以避免使用名字吗?
\documentclass[12pt,a4paper,openany]{report}
\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={(},close={)}}
...
\begin{document}
\autocite{Doe2001}
...
\bibliography{bib}
\end{document}
.bib 文件是从 Mendeley 导入的,如下所示
@article{Doe2001,
title = {{...}},
year = {2001},
journal = {...},
author = {Doe, J.},
number = {...},
pages = {...},
volume = {...},
doi = {...},
issn = {...},
keywords = {...}