Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Latex section without a number in the table of contents

Tags:

latex

I would like to create a table of contents for a bachelorthesis but dont wanna nummerate all points of it. The abstract for example should be in the toc but not with a number. I write my thesis in the documentclass article where i dont have the chance to use \chapter. Is there an easy way to fix the problem?

Thank you!

like image 291
Krischan Ledwig Avatar asked Dec 10 '25 20:12

Krischan Ledwig


1 Answers

You can use \section*{} which create a section without the numeration. However, it will not be present in the table of content. You can manually add it with \addcontentsline{toc}{section}{\protect\numberline{}Your section name}.

For example for an abstract, an introduction, two numbered sections, and a conclusion, you can do:

\documentclass{article}

\begin{document}
\tableofcontents

\section*{Abstract}
\addcontentsline{toc}{section}{\protect\numberline{}Abstract}

\section*{Introduction}
\addcontentsline{toc}{section}{\protect\numberline{}Introduction}

\section{Section 1}

\section{Section 2}

\section*{Conclusion}
\addcontentsline{toc}{section}{\protect\numberline{}Conclusion}

\end{document}
like image 83
Raida Avatar answered Dec 14 '25 03:12

Raida



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!