Page Layoutfncychap | TeX Capacity exceeded

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
n00bl0rd
Posts: 1
Joined: Thu Dec 01, 2011 12:02 pm

fncychap | TeX Capacity exceeded

Post by n00bl0rd »

Dear all,

My LaTeX document was compiling fine. However when I tried to use the fncychap package, it did not compile correctly anymore. The error message that I am getting is this:

Code: Select all

! TeX capacity exceeded, sorry [input stack size=5000].
\@currentlabelname ->contentsname
                                  \@mkboth {\MakeUppercase \contentsname } {...
l.47 \tableofcontents
If I remove the fncychap package everything works fine again. However I really want to use it. Could somebody tell what is going wrong here? See below for the code of my main file:

Code: Select all

\documentclass[11pt, a4paper]{book}

\usepackage[margin=1in]{geometry}
\usepackage{relsize}
\usepackage[footnotesize]{caption}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{mdwlist}
\usepackage{pdfpages}
\usepackage{hyperref}
\usepackage{natbib}
\usepackage{subfig}
\usepackage{fncychap}

\renewcommand{\figurename}{\scriptsize{Figure}}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\hyphenpenalty	= 5000
\tolerance	= 1000

\author{C.F. Baptista BSc}
\title{Internship report}
\date{\today}

\begin{document}
\include{titlepage}

\newpage
\thispagestyle{empty}
\mbox{}
\include{grading}

\newpage
\mbox{}
\include{preface}

\newpage
\mbox{}
\include{abstract}

\newpage
\mbox{}
\tableofcontents

\pagenumbering{arabic}

\include{introduction}
\include{techreport}
\include{assignment}
\include{reflection}
\include{tips}
\include{conclusions}
\include{references}

\end{document}
Last edited by localghost on Thu Dec 01, 2011 12:22 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: fncychap | TeX Capacity exceeded

Post by Stefan Kottwitz »

Hi,

the code example doesn't help, there are no errors within. If there's a problem in the files you use with \include, we cannot see. You could reduce a copy of your code to get a small example which shows the problem, and post it here.

Stefan
LaTeX.org admin
Post Reply