![罗马页码问题 OT2](https://linux22.com/image/373496/%E7%BD%97%E9%A9%AC%E9%A1%B5%E7%A0%81%E9%97%AE%E9%A2%98%20OT2.png)
我有一个问题。我正在用西里尔字母写一本书,但页码是用罗马字母标记的,也是用西里尔字母书写的。它们怎么能只用拉丁文书写呢?i、ii、iii、.. 应该写成 и、ии、иии、...
答案1
使用 T2A 比使用 OT2 要好得多。无论如何,您可以这样做:
\documentclass[a4paper,12pt]{book}
\usepackage[OT1,OT2]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,serbian]{babel}
\usepackage{lipsum}
% let's use scalable fonts
\DeclareFontFamily{OT2}{cmr}{\hyphenchar\font45 }
\DeclareFontShape{OT2}{cmr}{m}{n}{<->wncyr10}{}
\DeclareFontShape{OT2}{cmr}{m}{it}{<->wncyi10}{}
\DeclareFontShape{OT2}{cmr}{m}{sc}{<->wncysc10}{}
\DeclareFontShape{OT2}{cmr}{b}{n}{<->wncyb10}{}
\DeclareFontShape{OT2}{cmr}{bx}{n}{<->ssub*wncyr/b/n}{}
\DeclareFontShape{OT2}{cmr}{m}{sl}{<->ssub*wncyr/m/it}{}
\newcommand{\lat}{\fontencoding{OT1}\fontfamily{cmr}\selectfont}
\DeclareTextFontCommand{\textlat}{\lat}
\makeatletter
\renewcommand{\@roman}[1]{%
\textlat{\romannumeral #1}%
}
\makeatother
\begin{document}
\frontmatter
\chapter{Увод}
\lipsum
\end{document}