按姓氏字母顺序对书目进行排序

按姓氏字母顺序对书目进行排序

我想按作者姓氏的字母顺序引用文档中的参考文献。我使用的是 BibTek 和plain参考书目样式。

以下是使用参考书目样式的 MWE plain

\documentclass [12pt]{report}
\usepackage{hyperref}

\begin{document}

\cite{CMR}
\cite{stacks}
\cite{CotComplex}
\cite{CTC}

\bibliographystyle{plain}
\bibliography{testbib}

\end{document}

@book{CMR,
   author = {Jürgen H. Herzog and Bruns Winfried},
   city = {Cambridge{,} UK},
   edition = {1st},
   month = {December},
   publisher = {Cambridge University Press},
   title = {Cohen-Macaulay Rings},
   year = {2009}}

@misc{stacks,
  author       = {The Stacks Project authors},
  title        = {The {S}tacks {P}roject},
  howpublished = {\url{https://stacks.math.columbia.edu}},
  year         = {2023}}

@misc{CTC,
  author = {nLab authors},
  title = {Cotangent complex},
  howpublished = {\url{https://ncatlab.org/nlab/show/cotangent+complex}},
  version = {21}
}

@article{CotComplex,
  title={The cotangent complex of a morphism},
  volume={128},
  DOI={10.1090/s0002-9947-1967-0209339-1},
  number={1},
  journal={Transactions of the American Mathematical Society},
  author={Stephen Lichtenbaum and Michael Schlessinger},
  year={1967},
  pages={41–70}}

输出如下: 在此处输入图片描述

这基本上是可行的。唯一的问题是例外条目(Stacks Project 和 nLab)。Stacks Project 条目似乎按作者姓氏“author”排序,而 nLab 条目似乎按作者姓氏“nLab”排序。理想情况下,我希望这两个引文出现在最后。我该如何创建这样的例外?谢谢。

相关内容