I am trying to insert an abstract and acknowledgement page into my report. I want to suppress the (numbers in front of):

  1. Abstract
  2. Acknowledgment

part by using \section*. But by doing so, it is removed from the ToC as well. Is there a way to maintain an entry in the ToC, while at the same time preventing this?



\section*{Section heading}
\addcontentsline{toc}{section}{Section heading}

If you're using the report document class, then you should use

\chapter*{Chapter heading}
\addcontentsline{toc}{chapter}{Chapter heading}

When you are using your own section name it may lose count.

This is one option:

\section*{Your section name}
\addcontentsline{toc}{section}{Your section name}\stepcounter{section}

Just add a counter afterwards.

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.