2

If I use \alph{..} inside a hebrew block in a XeLaTeX document, I get a Hebrew numeral instead of a latin numeral. For example:

\documentclass{standalone}

\usepackage{polyglossia} 
\setdefaultlanguage{hebrew}
\newfontfamily\hebrewfont[Scale=MatchLowercase]{Ezra SIL}

\begin{document}
\setcounter{section}{5}
\alph{section}
\end{document}

gives:

enter image description here

How do I force latin numerals?

1 Answer 1

2

You could load the alphalph package. Then,

\alphalph{\value{section}}

generates a lowercase-latin "numeral" to represent the value of the counter named section.

A full MWE:

enter image description here

\documentclass{standalone}
\usepackage{polyglossia} 
\setdefaultlanguage{hebrew}
\newfontfamily\hebrewfont[Scale=MatchLowercase]{Ezra SIL}

\usepackage{alphalph}

\begin{document}
\setcounter{section}{5}
\alphalph{\value{section}}
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .