<html><body><div><span style="color: rgb(57, 51, 24); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14px; line-height: 18px; text-align: left; background-color: rgba(255, 255, 255, 0.527344); ">I know that in TeX, you can only use 16 math alphabets but XeTeX extends this so I was curious to enlarge the number of my math alphabets and I had to redefine some internals of LaTeX. My minimal working example is attached.</span></div><div><span style="color: rgb(57, 51, 24); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14px; line-height: 18px; text-align: left; background-color: rgba(255, 255, 255, 0.527344); "><br></span></div><div><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; line-height: 18px; text-align: left; background-color: rgba(255, 255, 255, 0.527344); "><span style="color: rgb(57, 51, 24); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; ">But this makes the word </span><font color="#222222" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif">"Test"</font><font color="#393318" face="Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif"> to apear in Italic. You can delete any of the</font><font color="#222222" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif"> \DeclareSymbolFont</font><font color="#393318" face="Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif"> and then </font><font color="#222222" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif">\mathtt</font><font color="#393318" face="Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif"> worked as expected. This shows that this only happens when the number of math alphabets exceeds 16. Why does this happen and how should one fix this?</font></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; color: rgb(57, 51, 24); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; line-height: 18px; text-align: left; background-color: rgba(255, 255, 255, 0.527344); ">I tried the same thing with luatex and I got expected result so it seems that something is wrong with XeTeX.</p></div><div><span style="color: rgb(57, 51, 24); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14px; line-height: 18px; text-align: left; background-color: rgba(255, 255, 255, 0.527344); "><br></span></div><div><span style="color: rgb(57, 51, 24); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14px; line-height: 18px; text-align: left; background-color: rgba(255, 255, 255, 0.527344); "><br></span></div></body></html>