I realise many similar questions have been made but, after two weeks googling the net and searching on this site without results, I too must ask about this.

I have a document, to compile in XeTeX, with the following preamble:

% Declaration


% Main Packages






% Text Fonts

    Path            =   /usr/share/fonts/google-noto/,
    BoldFont        =   NotoSerif-Bold.ttf,
    ItalicFont      =   NotoSerif-Italic.ttf,
    BoldItalicFont  =   NotoSerif-BoldItalic.ttf

% Math Fonts

    Path            =   /usr/share/fonts/xits/,
    BoldFont        =   xits-mathbold.otf

    Path            =   /usr/share/fonts/google-noto/,
    BoldFont        =   NotoSansGujarati-Bold.ttf,
    range           =   "0A80-"0AFF

Now I want to insert a letter from the Gujarati range as a math symbol inside a mathematical expression.

If I wanted to do so in plain text, I could define I wanted to use the Gujarati language or, if I only wanted a sepecific letter as a symbol, I could (and did) do this:

    Path            =   /usr/share/fonts/google-noto/,
    BoldFont        =   NotoSansGujarati-Bold.ttf


If I wanted to simply insert text in a math environment, I could use the command


but that is not the same as using a math symbol.

In math I have tried using syntax based on


and many others, as I searched the net and this site, but with no success, either because they are overcomplicated or because they were not meant to recognize unicode glyph codes.

How, then, may I insert unicode glyph "0AA2 inside a math expression as a math symbol?

1 Answer 1


U+0AA2 is not a math symbol, so using range does not work. A simple way is to use \textnormal.


% Main Packages
\usepackage{newunicodechar} % optional

% for Gujarati symbols
\newcommand{\ddha}{\textnormal{\gujarati ^^^^0aa2}}
\newunicodechar{ઢ}{\ddha} % optional




I minimized the code, choose the fonts you need. On the other hand, loading xunicode and xltxtra is not recommended any longer (actually, my recommendation is not to load them).

enter image description here

The lines marked “optional” allow you to directly use the character in formulas.

  • Worked perfectly, and the optional syntax solves a lot of problems. Thank you.
    – Arkaevis
    Oct 16, 2019 at 15:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .