I am using XeLaTeX to compile a document with usage of the package unicode-math in order to make my document looks satisfying. However the target stylistic setting fails for super/subscripts as the following MWE shows:

% !TEX Program = xelatex 
\setmainfont{STIX Two Text}
\setmathfont[StylisticSet = {02,08}, mathit = sym]{STIX Two Math}
          g, u, v, w, z, \int_{g,u,v,w,z}^{z,w,v,u,g}, \int_\int^\int

It produces


and the Stylistic Sets are as shown in the font table document:

Stylistic Sets

Obviously, Stylistic Set 02, 08 didn't apply to super/subscripts, so my questions is:

Is it a drawback of this unicode-math package or I used the package incorrectly? Any workarounds to keep the consistency of font styles of both regular math text and super/subscripts [i.e. these stylistic settings applies to both regular math and super/subscript characters]?

Any help would be appreciated.

1 Answer 1


running it with lualatex and an up-to-date TexLive I get:

enter image description here

so it looks more a problem with xelatex ...

  • Wow, thanks! Another question: are you familiar with the "script-feature" option etc. of the package unicode-math? Any possibility for the same output still under xelatex by tweaking this option [maybe also other related ones]? Thanks in advance :)
    – xbh
    Commented Dec 14, 2022 at 8:27
  • what exactly do you mean by using the script feature?
    – user187802
    Commented Dec 14, 2022 at 13:21
  • I think it is the section 4.2 of the user document of the package unicode-math. Seems that this option could control the fonts of subscripts and subsubscripts. But the document does not have a detailed explanation on this. I don't know whether it is something related to OTF features themselves.
    – xbh
    Commented Dec 14, 2022 at 13:59

You must log in to answer this question.

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