<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><span>After reading Vafa's note about order of bidi-fontspec-amsmath here: <a target="_blank" href="http://tug.org/pipermail/xetex/2010-January/015484.html">http://tug.org/pipermail/xetex/2010-January/015484.html</a>, I concluded that one way to solve this issue too is to comment the line requiring amsmath package in arabxetex:</span><br><br>%\RequirePackage{amsmath}%because of macro \overline used in \aemph<br><br>If anyone has a more elegant solution (preferably done without need for changes in .sty files), I'd be interested to see it.<br><br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight:
bold;">From:</span></b> Meho R. <meho_r@yahoo.com><br><b><span style="font-weight: bold;">To:</span></b> XeTeX <xetex@tug.org><br><b><span style="font-weight: bold;">Sent:</span></b> Fri, February 19, 2010 11:57:20 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [XeTeX] mathspec and arabxetex issues<br></font><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,<br><br>I encountered problems with mathspec and arabxetex when used
together. I'm using TeXLive2009 (all packages updated today) on Ubuntu <span class="yshortcuts" id="lw_1266591387_0">Linux</span> 64bit. Here's an
example code (xltxtra and xunicode and any options to mathspec aren't
relevant for this issue so I removed them to keep the code as simple as
possible):<br><br><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><style type="text/css">#cg_msg_content
p, #cg_msg_content li {white-space:pre-wrap;}</style>
<p style="margin: 0px; text-indent: 0px;">\documentclass{book}</p>
<p style="margin: 0px; text-indent: 0px;">\usepackage{amsmath}</p>
<p style="margin: 0px; text-indent: 0px;">\usepackage{mathspec}</p>
<p style="margin: 0px; text-indent: 0px;">\usepackage{arabxetex}</p><p style="margin: 0px; text-indent: 0px;"><br></p>
<p style="margin: 0px; text-indent: 0px;">\begin{document}</p>
<p style="margin: 0px; text-indent: 0px;">Test</p>
<p style="margin: 0px; text-indent: 0px;">\textarab{بسم الله}</p>
<p style="margin: 0px; text-indent: 0px;">\end{document}</p><br><br><div>The
problem is that I get this error when trying to compile the document:<br><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">! Package mathspec Error: `amsmath' must be loaded
earlier than `mathspec'.</p>
See the mathspec package documentation for explanation.
<p style="margin: 0px; text-indent: 0px;">Type H <return> for
immediate help.</p>
...
<p style="margin: 0px; text-indent: 0px;">l.41 \RequirePackage{amsmath}</p>
<p style="margin: 0px; text-indent: 0px;">
%because of macro \overline used in \aemph</p>
<p style="margin: 0px; text-indent: 0px;">? </p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">If I reverse position of
mathspec and arabxetex packages, I get option clash for fontspec
package:</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">! LaTeX Error: Option clash for
package fontspec.
</p>
<p style="margin: 0px; text-indent: 0px;">See the LaTeX manual or LaTeX
Companion for explanation.</p>
<p style="margin: 0px; text-indent: 0px;">Type H <return> for
immediate help.</p>
...
<p style="margin: 0px; text-indent: 0px;">l.67
...Package[\eu@zf@math]{fontspec}[2008/08/09]</p></div></div></div>
</div><br>
</div></div>
</div><br>
</body></html>