[XeTeX] Polyglossia and ArabXeTeX

Nathan Sidoli nathan.sidoli at utoronto.ca
Sun Aug 19 06:02:28 CEST 2012


Is it possible to use polyglossia with arabxetex? It seems that both of 
them define the command \aemph. Since they both define it in the same 
way, it doesn't really matter, but it would be nice if there were no 
error message. Maybe each of them could be made to check if the command 
is already defined. Or is there some way to manually clear the 
definition before calling in the a later package.

Below is a minimal example.

Thanks,

Nathan

\documentclass[12pt,a4paper]{article}

\usepackage{polyglossia}
\setdefaultlanguage{french}

\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Junicode}

\usepackage[novoc,fdf2noalif]{arabxetex}
\newfontfamily\arabicfont[Script=Arabic,Scale=1,WordSpace=2]{Amiri}

\newcommand{\A}{\textarabic}

\begin{document}

Nous adoptons {\it al-mu\b ht\=ariq\/} pour les raisons de sens et de 
graphie: {\it i\b htaraqa \/} = inventer un mensonge [$\,$Fl\"ugel a 
\A{m.hrrq}$\,$; mais une autre lecture serait \A{m_hrrf}$\,$,  << 
charlatan~>>$\,$].

\end{document}




More information about the XeTeX mailing list