[texhax] clash of babel and tableofcontents

Uwe Ziegenhagen ziegenhagen at gmail.com
Sun Mar 26 13:53:11 CEST 2017


Do you have the language in any other line, e.g. In the documentclass line? A few days i saw an example where using French and french resulted in a simular error. 

Von meinem iPhone gesendet

> Am 26.03.2017 um 13:41 schrieb Axel E. Retif <axel.retif at mac.com>:
> 
> Hi
> 
> 
> I have a problem I'd never experienced before: I have typeset a 200+ pages book, using
> 
>    \usepackage[spanish,es-nolayout,es-noshorthands]{babel}
> 
> (but, please, note that *the same error below happens* if I change it to \usepackage[english]{babel}).
> 
> Everything went fine, without any problem. Now I need to typeset the Contents and I get this error
> 
>    ERROR: TeX capacity exceeded, sorry [input stack size=5000].
> 
>    --- TeX said ---
>    \T1-cmd ...otect \@typeset at protect \@inmathwarn #1
>                                                  \else \noexpand #1\expanda...l.306 \tableofcontents
> 
> 
> I've seen this code in
> 
>    https://github.com/ho-tex/hyperref/blob/master/hyperref.dtx
> 
> but I don't use hyperref and in the log file I don't see any other package loading it.
> 
> If I comment out babel, then the Contents typesets OK.
> 
> I've even unincluded every chapter with the exception of the Prologue (no math, no figures...) and it's the same: either babel or \tableofcontents, but with both I get the above error.
> 
> As working with just the Prologue I don't need any of the packages I use, I've commented them out one by one and the same thing happens ---I can't use babel and \tableofcontents at the same time.
> 
> 
> TIA and best regards
> 
> Axel
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org



More information about the texhax mailing list