[texhax] Tex Capacity Exceeded

Bruce Thomson bruce at auswildlife.com
Fri Nov 23 10:31:50 CET 2007


Hi all,

I initially posted a question yesterday and received a response but it
didn't appear to circulate in the texhax group, so I have copied and pasted
it here to continue the discussion, this time fully subscribed in texhax! 

********************

I have a problem which has already received some previous attention. However
I have looked at the various posts and tried a range of remedies, but none
appear to work. I was wondering if someone might be able to interpret some
of the finer detail in this message to suggest a fix. It occurs in MiKTeX
2.6 when compiling and never occurred when using previous versions! The
problem occurs when it reaches the tableofcontents. I have checked brackets
and variously edited out each package that I use, rewritten some files and
all to no avail. 

! TeX capacity exceeded, sorry [input stack size=5000].
\label #1->\@bsphack 
                     \begingroup \@onelevel at sanitize \@currentlabelname
\ede...
l.1 \begin{tableofcontents}

***** 
I have also noticed in previous threads that a copy of the source code is of
use, so here it is. 

Any help would be gratefully appreciated. 

Bruce Thomson
 

\documentclass[a4paper,12pt]{book}
\usepackage{palatino}
\usepackage{graphics}
\usepackage[top=2.5cm]{geometry}
\usepackage{fancyhdr}
\usepackage{array}
\usepackage[Conny]{fncychap}
\usepackage{setspace}
\usepackage{harvard}
\usepackage{supertabular}
\usepackage{lscape}
\usepackage{geometry}
\usepackage{parskip}
\usepackage{graphicx}
\citationmode{abbr}
\newcommand{\blanknonumber}{\newpage\thispagestyle{empty}}
\makeatletter
\def\cleardoublepage{\clearpage\if at twoside \ifodd\c at page\else
    \hbox{}
    \thispagestyle{plain}
    \newpage
    \if at twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother \clearpage{\pagestyle{plain}\cleardoublepage}
\renewcommand{\floatpagefraction}{0.75}
\renewcommand{\baselinestretch}{1.7}
%next command: sections to be printed, list as required.
%\includeonly{chapter1}
\begin{document}
\frontmatter %order of chapters as required
\include{titlepage}\blanknonumber
\include{declaration}\blanknonumber
\include{acknowledgements}\blanknonumber
\include{abstract}\blanknonumber
\include{tableofcontents}\blanknonumber



More information about the texhax mailing list