[Tex/LaTex] Replacing Western Arabic numerals with Arabic–Indic numerals in formulas

arabic

Is there a way to use non-Western Arabic digits in formulas of an English tex document? For example in output of

$$\frac{100x}{25}$$

Arabic–Indic numerals/Eastern Arabic digits (٠ ١ ٢) will appear instead of Western Arabic (0, 1, 2) ones. I'm looking for a way workable with latex without using xetex.

Best Answer

with arabtex package

enter image description here

\documentclass{article}     
\usepackage{arabtex,utf8}   \setcode{utf8}            
\begin{document}
test 
\[\ell+\frac{\RL{100}x}{\RL{25}}\]
\end{document}
Related Question