# roman page numbers problems OT2

I have a problem. I am writing a book in Cyrillic, but the numbers of pages are marked in roman letters also written in Cyrillic. How can they be written in Latin only? Instead of i, ii, iii,.. writes и,ии,иии,...

• What do you mean by “in Roman letters also written in Cyrillic”? Apr 4, 2018 at 21:40
• Instead of i, ii, iii,.. writes и,ии,иии,... Apr 5, 2018 at 6:27
• Please, add a minimal example of code producing the issue. Apr 5, 2018 at 6:38
• \documentclass[a4paper,12pt]{book} \usepackage[english,serbian]{babel} \usepackage{amstext,amsfonts,amsmath,amssymb,amsthm} \usepackage[OT1,OT2]{fontenc} \usepackage[utf8]{inputenc} \usepackage[hidelinks]{hyperref} \newcommand{\lat}{\fontencoding{OT1}\fontfamily{cmr}\selectfont} \begin{document} \frontmatter \include{Naslovna} \mainmatter \include{Gl_1} {\pagestyle{index} \include{Indeks} } \end{document} Apr 5, 2018 at 7:49
• The example code you showed in the comment should be an edit to the question. Anyway, the problem seems to be in you using OT2; isn't typing directly Cyrillic better for you? Apr 5, 2018 at 9:43

It would be much better to use T2A rather than OT2. Anyway, here is how you can do:

\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}


• Thank you for your help! When I put in what you wrote to me, I get an error message ("C:\Program Files\MiKTeX 2.9\tex\latex\jknappen\ursfs.fd") ! Argument of \@tforloop has an extra }. <inserted text> \par l.53 \end{titlepage} ? May 6, 2018 at 21:10
• @BranislavM Your code doesn't load rsfs, so I can't tell more about the problem. May 6, 2018 at 21:20
• Thank you for your help.I`ve changed code as you suggested and problem was solved -for the moment, but now new problem is arising . The problem is with names that are written on the pages where the previous problem existed : after changing the code, those names are not showing in Index. If I switch to the old code,names are listed in the Index but than pages are marked in Cyrilic letters. Aug 16, 2019 at 13:38
• @BranislavM Please, make a new question with the details about indexing. Aug 16, 2019 at 15:38
• Dear Sir, I have succeeded in following your instructions to resolve the problem I have written about. Thank you very much! Now I noticed a new problem occurred to me: The names of the mathematicians who are on pages marked as you wrote (pages are marked in roman letters) are not visible on the Index name page. I hope you will help me! Greeting! Apr 2, 2020 at 15:46