<div>I am a TeXnician not a LaTeXnician.</div>
<div> </div>
<div>I am using plain XeTeX to produce persian typesetting, everything is good.</div>
<div>1) I just want to know how do you make the page numbers Arabic/Persian, I tried very hard but could not do it.</div>
<div> </div>
<div> </div>
<div>2) I tried to make digits to be Persian/arabic in mathmode by defining:</div>
<div> </div>
<div>***************************************************************************</div>
<div>%to make the digits in math formula persian<br>\font\tenrgm="Nazli" at 12pt<br>\font\sevrgm="Nazli" at 10pt<br>\font\fivrgm="Nazli" at 7pt<br>\newfam\fardig<br>\textfont\fardig=\tenrgm<br>
\scriptfont\fardig=\sevrgm<br>\scriptscriptfont\fardig=\fivrgm<br>\def\mathfnumber{<br> \XeTeXmathcode`0="7 "4 "06F0%<br> \XeTeXmathcode`1="7 "4 "06F1%<br> \XeTeXmathcode`2="7 "4 "06F2%<br>
\XeTeXmathcode`3="7 "4 "06F3%<br> \XeTeXmathcode`4="7 "4 "06F4%<br> \XeTeXmathcode`5="7 "4 "06F5%<br> \XeTeXmathcode`6="7 "4 "06F6%<br> \XeTeXmathcode`7="7 "4 "06F7%<br>
\XeTeXmathcode`8="7 "4 "06F8%<br> \XeTeXmathcode`9="7 "4 "06F9%<br> \XeTeXmathcode`.="7 "4 "066B%decimal point<br>}<br>\XeTeXmathcode`٫="7 "4 "066B%decimal point<br>
\XeTeXmathcode`۰="7 "4 "06F0%<br>\XeTeXmathcode`۱="7 "4 "06F1%<br>\XeTeXmathcode`۲="7 "4 "06F2%<br>\XeTeXmathcode`۳="7 "4 "06F3%<br>\XeTeXmathcode`۴="7 "4 "06F4%<br>
\XeTeXmathcode`۵="7 "4 "06F5%<br>\XeTeXmathcode`۶="7 "4 "06F6%<br>\XeTeXmathcode`۷="7 "4 "06F7%<br>\XeTeXmathcode`۸="7 "4 "06F8%<br>\XeTeXmathcode`۹="7 "4 "06F9%</div>
<div>************************************************</div>
<div>Can please anyone help me with this matter?</div>
<div> </div>
<div> </div>
<div> </div>