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.

Thanks for any help.enter image description here

  • 3
    Did you try \chapter*? – MaestroGlanz May 21 '16 at 17:34
  • You have to clarify your question: 1. Do you want to remove the chapter number both in the chapter heading and in the table of contents? 2. Do you want to keep the chapter number in the chapter heading and only remove it in the table of content? – Sveinung May 21 '16 at 21:59

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
  • Hi. Thanks! oh, so in that case here is the answer ;) – TaaTaa May 22 '16 at 6:31

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.

\chapter{This is chapter1}
 blah blah
 blah blah

will give:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.