I've been looking for an aswer to this, but the keywords I can think about lead me to anwers that are related but opposite to what I need. I'm trying to achieve something like this:
that is, I want the introduction to have a title, and to have the word "Introduction" where usually you find "Chapter n" (that is exactly what is removed if I use \chapter*
).
I can control the counter so that the following one will be Chapter 1 as needed, and I can temporarily rename the header with \renewcommand{\chaptername}{Introduction}
, but what I get is "Introduction 0", how can I get rid off that "0"? Of course I want a coherent appearance in the TOC, as here:
How can I accomplish this? I'd like a solution that works as independently as possible from the document class I'm in, but in case I'd say I need it in "book" or in "octavo".
Thank you very much!
A working example could be this, but actually it's not working, it does the wrong thing as I have described! I'd need some code that outputs like the images I posted!
\documentclass[11pt,twoside]{book}
\usepackage[a5paper,inner=14mm,outer=20mm,top=20mm,bottom=25mm]{geometry}
\begin{document}
\tableofcontents
\setcounter{chapter}{-1}
\renewcommand{\chaptername}{Introduction}
\chapter{A wonderful journey}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...
\renewcommand{\chaptername}{Chapter}
\chapter{Let's go}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...
\chapter{Keep going}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...
\end{document}
Best Answer
If you want to have "Introduzione" instead of "Capitolo 0" and also an additional heading, using standard class
book
you could redefine\@chapapp
to "Introduzione" and\thechapter
to an empty string before\chapter
, e.g.:This would be enough for the heading:
But not for the table of contents:
So you would need an additional package to change the ToC entries.
Using a KOMA-Script class you would be able to reconfigure not only the ToC entries but also to define a new chapter command only for the introduction:
This would result in a ToC:
and an introduction:
Very similar to the images you've shown in your question. For all the commands, like
\DeclareNewSectionCommand
or\RedeclareSectionCommand
see the English KOMA-Script manual or the German KOMA-Script manual. Note, some options (all with prefixtoc
) are inherited from the TOC styletocline
of packagetocbasic
. The KOMA-Script manual has a chapter abouttocbasic
.Here is one more example using other KOMA-Script commands to do almost the same but without the need of a new chapter command:
This results in the following preface, table of contents, introduction and first chapter pages:
For this last example even KOMA-Script 3.22 would be enough.