XeTeXpolyglossia sanskrit and numerals

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
frpatte
Posts: 1
Joined: Tue Dec 02, 2025 10:20 am

polyglossia sanskrit and numerals

Post by frpatte »

Bonjour,

I recently came across an issue with polyglossia and sanskrit: when you put
\setdefaultlanguage{sanskrit} a "\requirepackage{devanagaridigits} is called which turns numbers in devanagari scipt.

Is there a way to avoid (or correct) this ie. I want to be able to get numerals in latin script even if the text script is in devanagari.

Thank you.

PS1- What is the difference between \setdefaultlanguage{sanskrit} and \setmainlanguage{sanskrit}

PS2- Where can we see all the dependencies of a command ie. be aware that \setdefaultlanguage{sanskrit} will require devanagaridigits for instance.... I discovered this problem thanks to an error message.

F.P.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply