<html><body><div>Another example attached. <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); ">No problem with lualatex, but with xelatex, this time, \mathtt is fine but you get italic with \mathcal.</span><br><br>On Jun 24, 2012, at 12:41 PM, Vafa Khalighi <vkhalighi@me.com> wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><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); " data-mce-style="color: #393318; 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); " data-mce-style="color: #393318; 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); " data-mce-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; " data-mce-style="color: #393318; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;">But this makes the word </span><span face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif" color="#222222" data-mce-style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;" style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;">"Test"</span><span face="Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif" color="#393318" data-mce-style="color: #393318; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;" style="color: #393318; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;"> to apear in Italic. You can delete any of the</span><span face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif" color="#222222" data-mce-style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;" style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"> \DeclareSymbolFont</span><span face="Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif" color="#393318" data-mce-style="color: #393318; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;" style="color: #393318; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;"> and then </span><span face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif" color="#222222" data-mce-style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;" style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;">\mathtt</span><span face="Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif" color="#393318" data-mce-style="color: #393318; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;" style="color: #393318; font-family: '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?</span></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); " data-mce-style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; color: #393318; 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); " data-mce-style="color: #393318; 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); " data-mce-style="color: #393318; 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 class="_stretch"><br> <br> --------------------------------------------------<br> Subscriptions, Archive, and List information, etc.:<br> <a href="http://tug.org/mailman/listinfo/xetex" data-mce-href="http://tug.org/mailman/listinfo/xetex">http://tug.org/mailman/listinfo/xetex</a><br></div></div></blockquote></div></body></html>