[XeTeX] mathspec and arabxetex issues

Meho R. meho_r at yahoo.com
Fri Feb 19 16:06:16 CET 2010

After reading Vafa's note about order of bidi-fontspec-amsmath here: http://tug.org/pipermail/xetex/2010-January/015484.html, I concluded that one way to solve this issue too is to comment the line requiring amsmath package in arabxetex:

%\RequirePackage{amsmath}%because of macro \overline used in \aemph

If anyone has a more elegant solution (preferably done without need for changes in .sty files), I'd be interested to see it.

From: Meho R. <meho_r at yahoo.com>
To: XeTeX <xetex at tug.org>
Sent: Fri, February 19, 2010 11:57:20 AM
Subject: [XeTeX] mathspec and arabxetex issues


I encountered problems with mathspec and arabxetex when used 
together. I'm using TeXLive2009 (all packages updated today) on Ubuntu Linux 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 


\textarab{بسم الله}

The problem is that I get this error when trying to compile the document:

! Package mathspec Error: `amsmath' must be loaded 
earlier than `mathspec'.
See the mathspec package documentation for explanation. 
Type  H <return>  for 
immediate help.
l.41 \RequirePackage{amsmath}
%because of macro \overline used in \aemph

If I reverse position of 
mathspec and arabxetex packages, I get option clash for fontspec 

! LaTeX Error: Option clash for 
package fontspec. 
See the LaTeX manual or LaTeX 
Companion for explanation.
Type  H <return>  for 
immediate help.
...Package[\eu at zf@math]{fontspec}[2008/08/09]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100219/5c27cd3e/attachment.html>

More information about the XeTeX mailing list