Sure. Check xepersian package documentation on page 42 for

 \DefaultMathsDigits \PersianMathsDigits \AutoMathsDigits


xepersian-mathsdigitspec achieves this using \everymath and \everydisplay primitives. Note that xepersian-mathsdigitspec for this feature to work relies on \if@Latin conditional of bidi package. polyglossia does not know about this so you may have to do some adjustments, i.e. \if@Latin should be true inside non-RTL script and false inside RTL script.


On Jan 13, 2013, at 02:58 AM, Nathan Camillo Sidoli <[email protected]> wrote:

Is there anyway to change the math mode digits for only certain parts of
a text?

I have some math in Arabic text in a largely English document. I would
like to change the math mode digits in this parts to use Eastern Arabic
digits, whereas the rest of the text will use standard Hindu-Arabic digits.

For an entire document, I can use

\usepackage{xepersian-mathsdigitspecarab}
\setdigitfont[Mapping=arabicdigits]{Arabic Font}

to change the digits, but is there anyway I can just make this active
for certain parts of the overall document?


Thanks,

Nathan



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex

--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to