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 и,ии,иии,...

  • 1
    What do you mean by “in Roman letters also written in Cyrillic”?
    – egreg
    Apr 4, 2018 at 21:40
  • Instead of i, ii, iii,.. writes и,ии,иии,...
    – BranislavM
    Apr 5, 2018 at 6:27
  • Please, add a minimal example of code producing the issue.
    – egreg
    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}
    – BranislavM
    Apr 5, 2018 at 7:49
  • 1
    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?
    – egreg
    Apr 5, 2018 at 9:43

1 Answer 1


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



% let's use scalable fonts
\DeclareFontFamily{OT2}{cmr}{\hyphenchar\font45 }

  \textlat{\romannumeral #1}%




enter image description here

  • 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} ?
    – BranislavM
    May 6, 2018 at 21:10
  • @BranislavM Your code doesn't load rsfs, so I can't tell more about the problem.
    – egreg
    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.
    – BranislavM
    Aug 16, 2019 at 13:38
  • @BranislavM Please, make a new question with the details about indexing.
    – egreg
    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!
    – BranislavM
    Apr 2, 2020 at 15:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.