I want to show my "Attachments" in ToC, but I don't want there to be a chapter number in front of it. How do I remove it? Its the "Vedlegg" part in the picture.
Asked
Active
Viewed 1,542 times
1
2 Answers
1
It is already answered here.
If you wish to remove page numbers for a certain level, such as subsection, redefine \l@subsection{title}{page number}.
-
Hi, welcome to the site! :) I'm actually not too sure the OP was asking about the page numbers, I think they actually wanted to remove the section number, i.e. the 14 part of 14 Vedlegg – Au101 May 21 '16 at 19:40
-
0
The basic idea is to use the starred form: \chapter*{Attachments} associated with \addcontentsline{toc}{chapter}{Attachments}. This last bit is needed because the starred form strips down the chapter number but also prevents it to appear in the table of contents.
\documentclass[a4paper,10pt]{book}
\begin{document}
\tableofcontents
\chapter{This is chapter1}
blah blah
\chapter*{Attachments}
\addcontentsline{toc}{chapter}{Attachments}
blah blah
\end{document}
will give:


\chapter*? – MaestroGlanz May 21 '16 at 17:34