[XeTeX] Package Bidi Error

@@ abouanass at gmail.com
Fri Feb 19 11:29:03 CET 2010


Hi

My main Tex file starts like this:

 \input{header.tex}
\begin{document}
\begin{arab}
\begin{center}
\Huge \center \titlefont  {poem}
\author{me}
\end{center}
\begin{traditionalpoem}\bodyfont
\end{traditionalpoem}
\end{arab}
\end{document}


when header.tex is:

\documentclass{article}
\usepackage{fontspec}
\usepackage{geometry}
\geometry{ hmargin=2.5cm, vmargin=2cm }

\newfontfamily\titlefont[Script=Arabic]{KacstFarsi}
\font\titlefont="KacstFarsi:script=arab" at 48pt
\newfontfamily\bodyfont[Script=Arabic]{Scheherazade}



\usepackage[RTLdocument]{bidi}
\usepackage{bidipoem}
\usepackage{bidi}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{arabic}
\usepackage{arabxetex}
\setmainfont{Lucida Grande}
\renewcommand\poemcolsepskip{1.5cm}


But I have this error:
Package bidi Error: Oops! you have loaded package amsmath after bidi
package. Please load package amsmath before bidi package, and then try to
run xelatex on your document again.

Any help?


Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100219/05b0d9fe/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poem1.log
Type: application/octet-stream
Size: 16384 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20100219/05b0d9fe/attachment-0001.obj>


More information about the XeTeX mailing list