Page Layoutturn off page numbering in toc for a single chapter

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
FloG
Posts: 3
Joined: Mon Jul 23, 2012 3:00 pm

turn off page numbering in toc for a single chapter

Post by FloG »

Hello there,

i have a table of contents (toc). this page itself has a page number, thats ok. then i have some chapters. the first two chapters dont have a numbering (\chapter*{xyz}). for those first chapters without numbering, i dont want the page number on the right to appear. i know that i can turn off the page number by using tocloft with the command \cftpagenumbersoff{chapter} before \begin{document}. but this command turns off the page numbers of every chapter in the toc. i just want it for a specific entry in the toc.

any suggestions?

greetings Flo
Last edited by cgnieder on Thu Sep 06, 2012 5:34 pm, edited 1 time in total.

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

FloG
Posts: 3
Joined: Mon Jul 23, 2012 3:00 pm

turn off page numbering in toc for a single chapter

Post by FloG »

i guess i found something
Add chapter to TOC without page number
first i set it off globally by \cftpagenumbersoff{chapter} and then turn it on after the first chapter.
Last edited by cgnieder on Thu Sep 06, 2012 5:35 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

turn off page numbering in toc for a single chapter

Post by cgnieder »

Hi FloG,

Thanks for sharing your solution. In case you wonder why nobody answered: it may be because you didn't provide a Infominimal working example. Although it seems it wasn't necessary in your case it almost always motivates potential helpers to provide one.

Best regards
site moderator & package author
Post Reply