I'm trying to compile a document, but when I launch pdflatex mydocument
I get these output:
! Illegal parameter number in definition of \reserved@a
<to be read again>
l.14 \tableofcontents
Everything worked well as long as I kept all the document in the same source file. The error first raised when I divided the content in several .tex files and "recomposed" it with several \input{}
commands. When I created the MWE I found out that the error is now being raised also when I put everything in the same source file:
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[Glenn]{fncychap}
\usepackage{graphicx}
\usepackage{imakeidx}
\begin{document}
\graphicspath{{images}}
\setcounter{tocdepth}{0}
\tableofcontents
\setcounter{tocdepth}{1}
\listoftables
\listoffigures
\part{Introduction}
My input here...
\mainmatter
\part{Content}
My input here...
\appendix
\part{Appendix}
My input here...
\end{document}
I think that fncychap
is involved in the problem because if I comment it out everything works well, but I can't understand where is the problem.
fncychap
. Just avoid ugliness.