GeneralTOC without pagenumber

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
airwolf
Posts: 1
Joined: Tue Nov 27, 2007 10:41 am

TOC without pagenumber

Post by airwolf »

'Moring,


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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

TOC without pagenumber

Post by localghost »

Try a similar command.

Code: Select all

\addtocontents{toc}{text}
This was is often used to add commands like \newpage to the ToC.


Best regards
Thorsten
mew
Posts: 1
Joined: Thu Nov 29, 2007 11:06 pm

TOC without pagenumber

Post by mew »

I've used the following:

Code: Select all

\newcommand{\pseudosection}[1]{\addtocounter{section}{1}\addtocontents{toc}{\protect\contentsline{section}{\protect\numberline {\thesection}#1}{}}}
Post Reply