我试图引用一篇论文,其中作者和期刊的名称中都有变音符号。
@article{ResonantBhabhafor1980,
Author = {Reinhardt, J. and Scherdin, A. and M{\"{u}}ller, B. and Greiner, W.},
Journal = {Zeitschrift f{\"{u}}r Physik A Atomic Nuclei},
Number = {4},
Pages = {367--381},
Title = {Resonant Bhabha scattering at MeV energies},
Volume = {327},
Year = {1987}
}
但我收到了错误,Extra }, or forgotten \endgroup.
我该如何避免这种情况?
如果有相关性,我会附上
\usepackage[backend=biber,sorting=none]{biblatex}
额外上下文:将变音符号放在作者字段中有效,但放在期刊字段中无效
更多背景信息:我终于得到了一个 mwe:
\documentclass[]{report}
\usepackage[UKenglish]{babel} % useful to change date format
\usepackage{csquotes} % prevents a warning with babel
\usepackage{hyperref}
\usepackage[backend=biber,sorting=none]{biblatex}
\usepackage[capitalise]{cleveref}
\addbibresource{Bibliography.bib}
\usepackage{ulem}
\begin{document}
As discussed in \cite{ResonantBhabhafor1980}, Bhabha scattering provides an excellent method to study the potential existence of a particle of this nature.
\newpage
\printbibliography
\end{document}
评论\usepackage{ulem}
或者\usepackage[UKenglish]{babel}
停止错误
答案1
使用编译示例会pdflatex
产生错误
Extra }, or forgotten \endgroup.
\UL@stop ... \UL@putbox \fi \else \egroup \egroup
\UL@putbox \fi \ifnum \UL@...
可以通过添加来克服
\usepackage[T1]{fontenc}
回到序言。
hyperref
在我的示例中,我将和的加载移到了cleveref
最后,这是这些包的最佳实践。在这种情况下,hyperref
必须在 之前加载cleveref
。
\documentclass[]{report}
\usepackage[UKenglish]{babel} % useful to change date format
\usepackage{csquotes} % prevents a warning with babel
\usepackage[T1]{fontenc}
\usepackage[backend=biber,sorting=none]{biblatex}
\usepackage{ulem}
\usepackage{hyperref}
\usepackage[capitalise]{cleveref}
\begin{filecontents}[overwrite]{\jobname.bib}
@article{ResonantBhabhafor1980,
Author = {Reinhardt, J. and Scherdin, A. and M{\"{u}}ller, B. and Greiner, W.},
Journal = {Zeitschrift f{\"{u}}r Physik A Atomic Nuclei},
Number = {4},
Pages = {367--381},
Title = {Resonant Bhabha scattering at MeV energies},
Volume = {327},
Year = {1987}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\autocite{ResonantBhabhafor1980}
\printbibliography
\end{document}