<div dir="ltr">This is a bug of bidi package however I do not think "claim" is a polite word. I fix it today and upload the new version to CTAN.<br><br><div class="gmail_quote">On Thu, Sep 22, 2011 at 6:49 PM, Ari Meir Brodsky <span dir="ltr"><<a href="mailto:ari.brodsky@utoronto.ca">ari.brodsky@utoronto.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
I've been using LaTeX to typeset math for years, but just recently I decided<br>
to upgrade to XeLaTeX in order to include Hebrew. I've come across the<br>
following problem. Chapter 2 of the bidi package document (version 1.3.0,<br>
page 15) claims that the bidi package supports the hyperref package as well<br>
as the amsart class. However, when I use all three together --- amsart,<br>
hyperref, bidi --- the XeTeX engine goes into an infinite loop at the<br>
\makefile command, and exceeds the input stack size capacity. Here is a<br>
small example:<br>
<br>
-------------------------------<br>
% !TeX encoding = UTF-8<br>
% !TeX program = xelatex<br>
% test_bidi_hyperref.tex<br>
\documentclass{amsart}<br>
\usepackage{hyperref}<br>
\usepackage{bidi}<br>
\title{This is a test file}<br>
\author{Ari Meir Brodsky}<br>
\begin{document}<br>
\maketitle<br>
<br>
Hi, this is just a test.<br>
\end{document}<br>
-----------------------------------<br>
<br>
Some (hopefully relevant) excerpted lines from the log file are:<br>
<br>
-------------------------------------<br>
This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9) (preloaded<br>
format=xelatex 2011.9.20)<br>
entering extended mode<br>
**test_bidi_hyperref.tex<br>
<br>
LaTeX2e <2011/06/27><br>
Document Class: amsart 2009/07/02 v2.20.1<br>
Package: hyperref 2011/08/19 v6.82h Hypertext links for LaTeX<br>
Package hyperref Message: Driver (autodetected): hxetex.<br>
File: hxetex.def 2011/08/19 v6.82h Hyperref driver for XeTeX<br>
Package: bidi 2011/10/01 v1.3.0 Bidirectional typesetting in plain TeX and<br>
LaTeX<br>
File: xetex-bidi.def 2011/07/25 v0.9 bidi adaptations for XeTeX engine<br>
File: amsart-xetex-bidi.def 2011/08/26 v0.6 bidi adaptations for amsart<br>
class for XeTeX engine<br>
File: amsthm-xetex-bidi.def 2010/07/25 v0.1 bidi adaptations for amsthm<br>
package for XeTeX engine<br>
File: hyperref-xetex-bidi.def 2010/07/25 v0.4 bidi adaptations for hyperref<br>
package for XeTeX engine<br>
File: umsa.fd 2009/06/22 v3.00 AMS symbols A<br>
File: umsb.fd 2009/06/22 v3.00 AMS symbols B<br>
Package: nameref 2010/04/30 v2.40 Cross-referencing by name of section<br>
<br>
! TeX capacity exceeded, sorry [input stack size=5000].<br>
\@ifnextchar #1#2#3->\let \reserved@d =#1<br>
\def \reserved@a {#2}\def<br>
\reserved...<br>
l.11<br>
<br>
If you really absolutely need more capacity,<br>
you can ask a wizard to enlarge me.<br>
<br>
Here is how much of TeX's memory you used:<br>
7077 strings out of 429156<br>
96081 string characters out of 3168943<br>
193729 words of memory out of 3000000<br>
10145 multiletter control sequences out of 15000+200000<br>
7385 words of font info for 29 fonts, out of 3000000 for 9000<br>
947 hyphenation exceptions out of 8191<br>
5000i,3n,26p,313b,130s stack positions out of<br>
5000i,500n,10000p,200000b,50000s<br>
No pages of output.<br>
<br>
---------------------------------------------------<br>
<br>
Any ideas how to fix this?<br>
<br>
Thanks,<br>
-Ari<br>
<br>
-----------------------<br>
Ari M. Brodsky<br>
<a href="mailto:ari.brodsky@utoronto.ca">ari.brodsky@utoronto.ca</a><br>
<br>
<br>
<br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</blockquote></div><br></div>