[XeTeX] Local changes to mathmode digits
Vafa Khalighi
vkhalighi at icloud.com
Sun Jan 13 14:27:42 CET 2013
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 at Latin conditional of bidi package. polyglossia does not know about this so you may have to do some adjustments, i.e. \if at Latin should be true inside non-RTL script and false inside RTL script.
On Jan 13, 2013, at 02:58 AM, Nathan Camillo Sidoli <sidoli at waseda.jp> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20130113/756f53f4/attachment.html>
More information about the XeTeX
mailing list