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?

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}
| improve this answer | |

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.