General ⇒ TOC without pagenumber
TOC without pagenumber
I would like to add some text to my toc with:
\addcontentsline{toc}{chapter}{text}
But I would like not to include a pagenumber with this line in the toc. Is this possible?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
TOC without pagenumber
Code: Select all
\addtocontents{toc}{text}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
TOC without pagenumber
Code: Select all
\newcommand{\pseudosection}[1]{\addtocounter{section}{1}\addtocontents{toc}{\protect\contentsline{section}{\protect\numberline {\thesection}#1}{}}}