修改 `biblatex-trad` 选项

修改 `biblatex-trad` 选项

这是基于本文给出的解决方案问题

我在用着trad alpha,但我不知道同一作者的两篇论文的年份:

\documentclass{book}
\usepackage{filecontents}
\begin{filecontents}{chapterref.dbx}
\DeclareDatamodelFields[type=field,datatype=literal]{
  shortdesc,
}
\DeclareDatamodelEntryfields{shortdesc}
\end{filecontents}

\usepackage[backref, refsegment=chapter, datamodel=chapterref, 
style=trad-alpha % https://tex.stackexchange.com/a/69706/38244
]{biblatex}
\usepackage[colorlinks]{hyperref}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author    = {Author, A. and Duthor, D.},
  year      = {2001},
  title     = {Alpha},
  shortdesc = {Conference1},
}


@misc{noyear,
    author = {Nuthor, C.},
    title = {New title},
}

@misc{noyear2,
    author = {Nuthor, C},
    title = {More new title},
}
\end{filecontents}

\addbibresource{\jobname.bib}


\begin{document}
  \chapter{First Chapter}
  Some more text \autocite{A01}. More citation \autocite{noyear} and again \autocite{noyear2}


  \printbibliography
\end{document}

请注意,引用关键词是[努塔][坚果](以黄色突出显示):

我想要的是,同一个键的索引是阿拉伯数字(而不是字母),前面有一个逗号:

[坚果1],[坚果2]

如何实现这一点?

答案1

你要

\DeclareFieldFormat{extraalpha}{'#1}

或者如果你喜欢直引号(见直接引号?

\usepackage{textcomp}
\DeclareFieldFormat{extraalpha}{\textquotesingle #1}%

相关内容