0

When using \section*{XXXXXX} it won't show in the table of contents. Is there any way to show this section without a number in the toc?

marked as duplicate by leandriis, user156344, Phelype Oleinik, barbara beeton, egreg sectioning May 20 at 14:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Try

\documentclass{article}

\begin{document}

\tableofcontents

\section*{XXXXXX}
\addtocontents{toc}{XXXXXX}

\end{document}
  • An explanation is is always welcome :) – Phelype Oleinik May 20 at 13:50
  • Thanks wun, it almost worked --> \addcontentsline{toc}{section}{XXXXX} – Gaetaan A May 20 at 17:47

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