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

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

User avatar
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