使用 Texmaker(Windows)引用俄语文章会出现错误

使用 Texmaker(Windows)引用俄语文章会出现错误

我正在用英语写一篇文章,但我想在参考书目中使用俄语引用一些内容。目前我只需要在文件中使用俄语.bib。我安装了该babel软件包,但如果我尝试编译,文件中的每个西里尔字符都会出现错误.bib,例如:

! LaTeX Error: Command \CYRB unavailable in encoding T1!

LaTeX Error: Command \CYRE unavailable in encoding T1

等等。

这是我的文档的开头:

\documentclass[a4paper, 11pt, headings = small]{scrreprt}
\usepackage[T2A,T1]{fontenc}   \usepackage[utf8]{inputenc}    
\usepackage{natbib}            \usepackage{setspace}
\usepackage{lmodern}           \usepackage[russian,UKenglish]{babel}
\usepackage{amsfonts}          \usepackage{amsmath}
\usepackage{amsthm}            \usepackage{rotating} 
\usepackage{amssymb}         \usepackage{thmtools}

如果我更改字体顺序并在 T1 之后设置 T2A,则一切都可以正常编译,因为西里尔字母可以被识别,但效果不佳,因为使用此字体,一切都不同,定理和类似内容与普通文本没有区别。我如何使用 T1 字体编码,但编译.bib包含俄文字符的文件,如果可能的话仍然使用natbib?这是我的 Bib 文件,俄语文章目前没有评论:

@BOOK{Gardner, 
title={Geometric Tomography (Encyclopedia of Mathematics and its Applications)},
author={Richard J. Gardner},
publisher={Cambridge University Press},
year={1995},
month=jun,
edition={1},
isbn={9780521684934},
url={http://amazon.com/o/ASIN/0521684935/},
price={$90.00},
totalpages={424},
timestamp={2014.03.25},
}
@BOOK{Billingsley199907, 
title={Convergence of Probability Measures},
author={Patrick Billingsley},
publisher={Wiley-Interscience},
year={1999},
month=jul,
edition={2},
isbn={9780471197454},
url={http://amazon.com/o/ASIN/0471197459/},
price={$185.00},
totalpages={296},
timestamp={2015.11.08},
}
@ARTICLE{DehlingFried, 
title={Asymptotic Distribution of Two-Sample Empirical U-Quantiles with Applications to Robust Tests for Shifts in Location},
author={H. Dehling and R.Fried},
journal="Journal of Multivariate Analysis",
volume= "105",
PAGES= "124--140",
year={2012},
}
@ARTICLE{WendlerChangepoints, 
title={Change-Point Detection under Dependence Based on Two-Sample U-Statistics},
author={H. Dehling and R.Fried and Isabel García and Martin Wendler},
url={http://arxiv.org/abs/1304.2479},
totalpages={20},
timestamp={2013.04.09},
year={2013},
}

%@ARTICLE{HistoricalDocuments, 
%hyphenation   = {russian},
%title={Методы обнаружения "разладки"  случайных процессов
%и их применение для анализа исторических текстов},
%author={Б.Е.Бродский и Б.С.Дарховский},
%url={http://www.newchrono.ru/frame1/Methods/html/272.htm},
%}

答案1

您必须标记条目:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@ARTICLE{HistoricalDocuments, 
  hyphenation   = {russian},
  title={\foreignlanguage{russian}{Методы обнаружения ``разладки''  случайных процессов
         и их применение для анализа исторических текстов}},
  author={{\SORTNOOPCYR{Brodsky}}{\textcyrillic{Бродский}}, \textcyrillic{Б. Е.} and 
          {\SORTNOOPCYR{Darkhovsky}}{\textcyrillic{Дарховский}}, \textcyrillic{Б. С.}},
  url={http://www.newchrono.ru/frame1/Methods/html/272.htm},
}
@BOOK{Gardner, 
  title={Geometric Tomography (Encyclopedia of Mathematics and its Applications)},
  author={Richard J. Gardner},
  publisher={Cambridge University Press},
  year={1995},
  month=jun,
  edition={1},
  isbn={9780521684934},
  url={http://amazon.com/o/ASIN/0521684935/},
  price={\$90.00},
  totalpages={424},
  timestamp={2014.03.25},
}
\end{filecontents*}

\documentclass[a4paper, 11pt, headings = small]{scrreprt}
\usepackage[T2A,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian,UKenglish]{babel}

\usepackage{natbib}

\newcommand{\SORTNOOPCYR}[1]{}

\begin{document}
\nocite{*}
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}

像往常一样,filecontents环境只是为了使示例自成一体。

在此处输入图片描述

相关内容