这是我的原始文档的一个最小工作示例。
\RequirePackage{filecontents}
\begin{filecontents}{bib.bib}
@article{luka,
author = {Luka Modri\'{c}},
journal = {Euro},
pages = {1--2},
title = {Birkh\"{a}user},
year = 2016
}
\end{filecontents}
\documentclass{article}
% for biblatex with biber
\usepackage[
backend=biber,
style=alphabetic,
citestyle=alphabetic,
backref=true]{biblatex}
\addbibresource{bib.bib}
\begin{document}
Test Modri\'{c} in Birkh\"auser \cite{luka}.
%%% bibliography
\printbibliography
\end{document}
如您所见,特殊字符在主文档中运行良好,但在参考书目中却不能正常工作\"{a}
。\'{c}
我该如何修复它?
答案1
如果没有 ,使用 XeLaTeX 就没有多大意义fontspec
。特别是,你可以看到.bbl
文件包含
\refsection{0}
\sortlist[entry]{anyt/global/}
\entry{luka}{article}{}
\name{author}{1}{}{%
{{hash=8778d2a5968de5f48517c0ace345d5a1}{%
family={Modrić},
family_i={M\bibinitperiod},
given={Luka},
given_i={L\bibinitperiod}}}%
}
因为 Biber 使用的引擎是 XeTeX,输出的是 UTF-8 字符。事实上,如果你输入
Test Modrić in Birkhäuser \cite{luka}.
完整示例
\begin{filecontents}{\jobname.bib}
@article{luka,
author = {Luka Modri\'{c}},
journal = {Euro},
pages = {1--2},
title = {Birkh\"{a}user},
year = 2016
}
\end{filecontents}
\documentclass{article}
\usepackage{fontspec}
% for biblatex with biber
\usepackage[
backend=biber,
style=alphabetic,
citestyle=alphabetic,
backref=true]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
Test Modrić in Birkhäuser \cite{luka}.
%%% bibliography
\printbibliography
\end{document}