答案1
对于 UTF-8 编码:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc} % for UTF8 codepage in Windows
\usepackage[russian]{babel} % need for russian hyphenation and some typographic rules
\begin{document}
\[
\textrm{текст на русском}
\]
\end{document}
对于 Windows 中的 1 字节代码页:
\documentclass[12pt,a4paper]{article}
\usepackage[cp1251]{inputenc} % for 1-byte russian codepage in Windows
\usepackage[russian]{babel} % need for russian hyphenation and some typographic rules
\begin{document}
\[
\textrm{текст на русском}
\]
\end{document}
使用过时的软件包,mathtext
可以在数学模式下用俄语书写,而无需任何额外的命令:
\documentclass[12pt,a4paper]{article}
\usepackage{mathtext} % must be before codepage and localization
\usepackage[cp1251]{inputenc} % for 1-byte russian codepage in Windows
\usepackage[russian]{babel} % need for russian hyphenation and some typographic rules
\begin{document}
\[
\alpha,\,\beta\quad текст\ на\ русском
\]
\end{document}
并按拉丁文命令输入俄文字母:
\documentclass[12pt,a4paper]{article}
\usepackage[OT1,T2A]{fontenc}
\begin{document}
\[
\textrm{\cyrb\CYRB\cyrshch\cyryu\cyryo\cyrery\cyrie\cyry\cyrm\cyrya\cyrishrt\CYRISHRT}
\]
\end{document}
您可以在本文档中找到俄语(和其他西里尔字母)命令的完整列表:西里尔字体编码:T2A、T2B、T2C 和 X2。