[XeTeX] aemph redefined: arabxetex and polyglossia
Ulrike Fischer
news3 at nililand.de
Thu Mar 29 10:52:22 CEST 2012
Am Mon, 26 Mar 2012 13:14:33 +0100 schrieb Juan Acevedo:
> Hello everyone,
>
> When running the following minimal test file:
> -------------------------------
> %!TEX TS-program = xelatex
> %!TEX encoding = UTF-8 Unicode
> \documentclass{book}
> \usepackage{xltxtra}
>
> \usepackage{polyglossia}
> \usepackage{arabxetex}
>
> \begin{document}test run\end{document}
> -------------------------------
>
> compiling stops with this message:
> ! LaTeX Error: Command \aemph already defined.
> Or name \end... illegal, see p.192 of the manual.
> Maybe I can do a little trick in my preamble to prevent the "already defined" warning?
Sure, you can e.g. do
\documentclass{book}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{arabxetex}
\let\aemph\veryundefinedcommand
\begin{document}test run\end{document}
This will have the effect that the definition of polyglossia (done
at \begin{document}) will win.
If you want the other definition you can do something like this:
\documentclass{book}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{arabxetex}
\let\ORIaemph\aemph
\AtEndPreamble{\let\aemph\ORIaemph}
\let\aemph\veryundefinedcommand
\begin{document}
test run
\end{document}
--
Ulrike Fischer
More information about the XeTeX
mailing list