为什么 bibtex 会将 \v{S} 合并为 v?

为什么 bibtex 会将 \v{S} 合并为 v?

我有一个引文,其中作者的名字包含 Š。LaTeX 给出“!Package inputenc 错误:无效的 UTF-8 字节序列。”,很好,我已经习惯了,所以我用 \v{S} 替换它。这只会在输出中给出 av。但 \v{z} 工作正常。

梅威瑟:

\documentclass[]{article}
\usepackage[utf8]{inputenc} %Allows UTF8 input. 

\begin{filecontents}{UTF8.bib}
@Article{UTF8,
    author ="Chen, Teng-Hao and Lee, Semin and Flood, Amar H. and Miljanić, Ognjen Š.",
    title  ="How to print a crystal structure model in 3D",
    journal  ="CrystEngComm",
    year  ="2014",
}
@Article{LaTeX,
    author ="Chen, Teng-Hao and Lee, Semin and Flood, Amar H. and Miljanić, Ognjen \v{S}.",
    title  ="How to print a crystal structure model in 3D",
    journal  ="CrystEngComm",
    year  ="2014",
}
@article{TeachingReview,
    author = "Gra{\v{z}}ulis, Saulius and Sarjeant, Amy Alexis  and Kantardjieff, Katherine A and et al..",
    title = "{Crystallographic education in the 21st century}",
    journal = "Journal of Applied Crystallography",
    year = "2015",
}
\end{filecontents}
\usepackage[utf8]{inputenc}
\usepackage[super,sort&compress,comma]{natbib} 
\usepackage[T1]{fontenc}
\usepackage{natmove}

\begin{document}

Oddly Miljanić, Ognjen Š. works fine in the body of the text.\cite{UTF8} 
If I encode the name in LaTeX it works in body text: Miljanić, Ognjen \v{S}.\cite{LaTeX}
But REALLY oddly Gra{\v{z}}ulis, Saulius works everywhere.\cite{TeachingReview}

\bibliography{UTF8}
\bibliographystyle{abbrvnat} %the RSC's .bst file
\end{document}

答案1

当 bibtex 尝试获取“第一个字母”并只获取第一个字节时,多字节字符会失败。此外,bibtex 的重音命令语法不是,{\v S}因此\v{S}您可以使用以下任一形式:

Ognjen {\relax Š}或者Ognjen {\v S}

答案2

您缺少一个括号,但除此之外,请在 \v{S} 周围添加括号。如果没有它,bibtex 会将其读为“von”:

@Article{LaTeX,
    author ="Chen, Teng-Hao and Lee, Semin and Flood, Amar H. and Miljanić, Ognjen {\v{S}}.",
    title  ="How to print a crystal structure model in 3D",
    journal  ="CrystEngComm",
} 

在此处输入图片描述

相关内容