I am writing a mathematical document in Hebrew and I "forced" the page numbers to be the English font (using \selectlanguage) so they will be consistent with the font used in the formulas. However, my table of contents uses the different (smaller, to me stranger) font used in Hebrew for section and page numbers. Is there anyway to change that, perhaps by redefining a command?snippet from Hebrew ToC

Thanks for the answers. John's "\def" worked and I added similar definitions for chapter and sections. I hope I did it correctly.

The only problem is that I get "Please insert into preamble" at the start of the toc, but it is not really a problem because it goes away upon a third run of pdflatex.

Here is a MWE:






\chapter{פרק ראשון}
\section{סעיף ראשון בפרק ראשון}
\section{סעיף שני בפרק ראשון}


\chapter{פרק שני}
\section{סעיף ראשון בפרק שני}
\section{סעיף שני בפרק שני}

  • could you add a mwe? and welcome to TeX.SE. – Raaja Apr 1 at 15:00
  • Just guessing, but try \def\thepage{\bgroup\selectlanguage{english}\arabic{page}\egroup} in the preamble (after babel, natch). – John Kormylo Apr 1 at 15:32
  • This will depend, among other things, on your document class. A MCVE is important here. – Davislor Apr 1 at 15:34
  • The Koma classes, for example, define the font styles partentrypagenumber, chapterentrypagenumber and sectionentrypagenumber, so switching to \documentclass{scrartcl}, scrreprt or scrbook might work for you. – Davislor Apr 1 at 15:37

Your Answer

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

Browse other questions tagged or ask your own question.