[texhax] Stack capacity exceeded with varioref and babel v3.8g

Robert Wenner robert.wenner at gmx.de
Fri Aug 12 21:04:51 CEST 2005


Hi,

I have a problem with the babel v3.8g and varioref.

Running pdflatex (or latex), I get

[10]
! TeX capacity exceeded, sorry [input stack size=1500].
\protect ->\noexpand \protect
                              \noexpand
l.630 \Vref{lst:junit}

I changed the stack size in /usr/share/texmf/web2c/texmf.cnf from 1500 to 
5000, and get

[10]
! TeX capacity exceeded, sorry [parameter stack size=5000].
\@firstoftwo #1#2->
                   #1
l.630 \Vref{lst:junit}

The text I have is too large to serve as an example and I couldn't 
reproduce the problem on a shorter text yet. However, the original text 
should not be large enough to cause such problems: it has 21 label 
definitions (plus 20 sections and subsections plus 4 bibliography 
entries) and 12 references on about 15 pages.

Most confusing, everything works with babel 2004/11/20 v3.8d, but not with 
babel.sty 2005/05/21 v3.8g. I use varioref 2004/02/27 v1.4i in both 
cases. Just by using babel v3.8d it works, and by using babel v3.8g it 
breaks. 

A simple solution would probably be to go back to babel v3.8d, but then 
capitalizing the first letters of generated reference names in \Vref{} 
doesn't work anymore.

I didn't find anything on that in the babel documentation or the varioref 
documentation. The LaTeX bug database had no matches for babel and 
varioref, either. 

Any ideas or pointers would be appreciated.

Robert



More information about the texhax mailing list