[XeTeX] ArabXeTeX pre-release

François Charette firmicus at ankabut.net
Thu Nov 30 11:05:48 CET 2006

(I reply here to a message that was sent to me off-list, as I think it 
might be of interest to others.).

Salut Juan!

Thanks for your enthusiastic reaction.

The reason why XeTeX tells you that its memory is exceeded is simple. In 
your preamble you have:


Since the command \RL is already defined in my bidi.sty, and is 
contained in the \textarab macro definition, by redefining it you 
triggered an infinite loop. So you should change all occurences of \RL 
in your document into something else, \AR for example. I realize that by 
having created the macros \RL and \LR in bidi.sty, I made it impossible 
to compile legacy ArabTeX files without making some changes in the 
source file. This is intentional: my package is intended to provide a 
new, modern interface, at the cost of automatic backward-compatibility 
with ArabTeX. But as you see, this is easy to fix. If you really think I 
should rename the macros \RL and \LR in bidi.sty, it's of course still 
possible to change them, but I will have to think about it.

Yet with your shortcut macro for \textarab[fullvoc] (let's say you now 
call it \AR) you will encounter another problem that has to do with the 
catcode redefinitions necessary for ArabTeX encoding. An easy solution, 
which I shall document in the forthcoming beta version, is to include 
those lines in your preamble:

    \def\AR{\bgroup\arabtex at codes\text at arab[fullvoc]}

(In a future version I might try to make this easier by implementing 
some mechanism similar to the \CustomVerbatimCommand in the fancyvrb 
package. Suggestions are welcome.)

BTW, in order to compile your document (apart from changing the roman 
font) I had to add definitions for \Ayn and \ayn, so I assume these are 
defined in your custom version of xdiacomp?

Hope this helps.
Keep in touch!

Best wishes,

ITS Mail wrote:
> Salut François!
> We were just asking Heaven for your package to arrive, subhanaLlah! 
> Your documentation is excellent so far, and the package looks great. 
> We are using it in Mac, using Panther (10.3.9)
> When trying to run the attached, I am getting the following, ending in 
> error message:
> ------------------------------------------------------------
> This is XeTeX, Version 3.141592-2.2-0.995 (Web2C 7.5.5)
> entering extended mode
> (./its_charrette1.tex
> LaTeX2e <2003/12/01>
> Babel <v3.8d> and hyphenation patterns for american, british, french, 
> german, n
> german, italian, latin, spanish, nohyphenation, loaded.
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/book.cls
> Document Class: book 2004/02/16 v1.4f Standard LaTeX document class
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/bk12.clo))
> (/Users/fatimaazzam/Library/texmf/tex/xelatex/fontspec/fontspec.sty
> (/Users/fatimaazzam/Library/texmf/tex/xelatex/ifxetex/ifxetex.sty)
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/tools/calc.sty)
> (/usr/local/teTeX/share/texmf.local/tex/xelatex/xkeyval/xkeyval.sty
> (/usr/local/teTeX/share/texmf.local/tex/xelatex/xkeyval/xkeyval.tex
> (/usr/local/teTeX/share/texmf.local/tex/xelatex/xkeyval/keyval.tex)))
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/lm/lmodern.sty)
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/fontenc.sty
> (/Users/fatimaazzam/Library/texmf/tex/xelatex/euenc/eu1enc.def)
> (/Users/fatimaazzam/Library/texmf/tex/xelatex/euenc/lm/eu1lmr.fd))
> fontspec.cfg loaded.
> (/Users/fatimaazzam/Library/texmf/tex/xelatex/fontspec/fontspec.cfg))
> (/Users/fatimaazzam/Library/texmf/tex/xelatex/xdiacomp.sty)
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/tools/longtable.sty)
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/tools/array.sty)
> (/Users/fatimaazzam/Library/texmf/tex/xelatex/arabxetex.sty
> (/Users/fatimaazzam/Library/texmf/tex/xelatex/bidi.sty)
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsmath.sty
> For additional information on amsmath, use the `?' option.
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amstext.sty
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsgen.sty))
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsbsy.sty)
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsopn.sty)))
> (./its_charrette1.aux)
> Runaway argument?
> {\arabicfont \addfontfeature {Mapping=arabtex-\ax at font@allah -\@tempa 
> \ETC.
> ! TeX capacity exceeded, sorry [main memory size=6500000].
> <argument> ...mpa }\arabicfont \addfontfeature {Ma
> pping=arabtex-\ax at font@all...
> l.35 \Asma{M\=alik Al-Mulk} & \RL{mAlik al-mulk}
> & \kill
> No pages of output.
> ------------------------------------------------------
> Any help? What am I doing wrong?
> Many thanks in advance,
> with our best regards and thanks,
> Juan
> ___________
> Islamic Texts Society
> 22A Brooklands Avenue
> Cambridge CB2 8DQ
> United Kingdom
> Telephone +44 (0)1223 314 387
> Fax +44 (0)1223 324 342
> Website: www.its.org.uk
> Regd. Charity 283832 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20061130/c043c12e/attachment.html 

More information about the XeTeX mailing list