我引用了一个冰岛人,他的姓氏以 Á 开头 (U+00C1)。如果我在参考书目中用该字符代码 ( ) 写下他的名字,排序就会正确进行。但是,如果我像在序言中\char"00C1
一样用 定义字符 Á ,排序就会失败。这是怎么回事?\auppercaseacute
\newcommand
\documentclass{article}
\usepackage{fontspec, filecontents}
\usepackage[style=authoryear]{biblatex}
%\newcommand{\auppercaseacute}{\char"00C1}
\begin{filecontents}{\jobname.bib}
@BOOK{mccartney1974,
AUTHOR = "Paul McCartney",
TITLE = "A cool book about guitars",
YEAR = "1974"}
@BOOK{arnason2007,
TITLE = "Íslensk orðabók",
YEAR = "2007",
EDITOR = "Mörður {\char"00C1}rnason"}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cites{mccartney1974}{arnason2007}
\printbibliography
\end{document}
\documentclass{article}
\usepackage{fontspec, filecontents}
\usepackage[style=authoryear]{biblatex}
\newcommand{\auppercaseacute}{\char"00C1}
\begin{filecontents}{\jobname.bib}
@BOOK{mccartney1974,
AUTHOR = "Paul McCartney",
TITLE = "A cool book about guitars",
YEAR = "1974"}
@BOOK{arnason2007,
TITLE = "Íslensk orðabók",
YEAR = "2007",
EDITOR = "Mörður {\auppercaseacute}rnason"}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cites{mccartney1974}{arnason2007}
\printbibliography
\end{document}
答案1
这应该在 biber 1.8 中得到修复。问题是当括号包裹时,它会首先尝试删除括号,这会带来很多问题。现在它不会尝试这样做了。