[XeTeX] Command \ aemph Already defined

Gareth Hughes garzohugo at gmail.com
Fri Oct 22 02:13:15 CEST 2010


@@ wrote:
> Hi,

Hi!

> The syntax of my old files is corrupted apparently because of this error:

Definitions of packages have changed.

> Command \ aemph Already defined.
> Or name \ end ... illegal, see p.192 of The Manual.

Yes, both polyglossia and arabxetex define this command, which creates a
conflict if you load both. I could conceive of the possibility that one
would want both, so perhaps one or other should provide a workaround.

> \documentclass{article}
> \usepackage{bidi}

No need to load bidi, as it will be loaded by other packages.

> \usepackage{xltxtra}

It is probably better to load fontspec instead of xltxtra.
> \usepackage{polyglossia}
> \setmainlanguage{english}
> \setotherlanguage{arabic}

If you remove this command, polyglossia won't define \aemph.

> \usepackage{arabxetex}
> \setmainfont{Lucida Grande} % or your favorite
> \usepackage{geometry}
> 
> \geometry{ hmargin=1.5cm, vmargin=1cm }
> 
> \begin{document}
> 
> \begin{center}
> \begin{arab}[voc]{\Huge}
> {\Huge 'a.hkAmu al-rrA' }
> \end{arab}
> \end{center}
> 
> \begin{center}
> \begin{arab}[trans]
> %{al-?ay? al-`?lim Na??r al-D?n al-??s?}
>  \Large
> \textit{'a.hkAmu al-rrA'}\textrm{ ( Règles du Ra)}
> \end{arab}
> \end{center}
> \end{document}
> 
> 
> Where can I find this command in order to correct it? How should reorder my
> packages?
> 
> 
> Regards
> ------
> @@
> ------

GG.


More information about the XeTeX mailing list