mauro269 wrote:[…] (localghost seems disappointed) […]
No trace of disappointment, just irritation about the effect of the proposed code. I just want to point some issues.
- The proposed code as is generates an unnumbered chapter but adds this chapter numbered to the ToC. Furthermore it does this with inconsistent spacing. As a reader I would expect the chapter entry in the ToC to be unnumbered as well.
- Another issue is that the proposed code increments the
chapter
counter. This results in an unnumbered chapter followed by a numbered chapter which has no continued numbering.
Since you are using the
book
class, a better method would be to use the commands
\frontmatter
,
\mainmatter
and
\backmatter
to divide your document into certain parts. The below code shows a short example.
Code: Select all
\documentclass[
12pt,
a4paper
english,
italian
]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{makeidx}
\usepackage[nottoc]{tocbibind}
\usepackage{blindtext} % only for dummy text here
\makeindex
\begin{document}
\frontmatter
\tableofcontents
\chapter{Introduction}
\mainmatter
\blinddocument
\appendix
\chapter{Tables}
\backmatter
\chapter{Conclusions}
\chapter{Acknowledgments}
\begin{thebibliography}{9} % usually generated by BibTeX
\item{be} Bibliography Entry
\end{thebibliography}
\printindex
\end{document}
You wouldn't need any modifications in your sub-files which contain the chapters.