考虑最小的工作示例(来自这里):
\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
minalphanames=3,maxalphanames=3 %https://github.com/moewew/biblatex-trad/issues/22
]{biblatex}
\usepackage[colorlinks]{hyperref}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A. and Duthor, D.},
year = {2001},
title = {Alpha},
shortdesc = {Conference1},
}
@misc{N02,
author = {Nuthor, C.},
title = {New title},
year = {2001},
}
@misc{N03,
author = {Nuthor, C},
title = {More new title},
year = {2000},
}
@misc{badum,
author = {ba Du Tssh},
title = {No new title},
year = {2010},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\chapter{First Chapter}
Some more text \cite{A01}. More citation \cite{N02} and again \cite{N03}
Here is Ba-dum-tssh \cite{badum}.
\printbibliography
\end{document}
从图中可以看出我无法解决的问题:
基本上,作者姓名的 3 个字符和年份之间有一个额外的空格(可能是因为作者姓名包含两个空格?)。我想删除多余的空格,就像这样[bDu10]。