<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"><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 style="border-bottom: 1px dashed rgb(0, 102, 204); cursor: pointer;" class="yshortcuts" id="lw_1266577372_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>
</body></html>