Text Formatting ⇒ Reducing space after heading in ToC
Reducing space after heading in ToC
I want to reduce the space between the heading and first item in my table of contents.
At present, I have the following:
\pagestyle{fancyplain}
\renewcommand{\contentsname}{\LARGE Contents}
\tableofcontents
\thispagestyle{empty}
All I want to do is insert \vspace{-4ex} between the heading and the first chapter.
Any suggestions would be greatly appreciated!
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
- Stefan Kottwitz
- Site Admin
- Posts: 10330
- Joined: Mon Mar 10, 2008 9:44 pm
Reducing space after heading in ToC
welcome to the board!
You could use \addtocontents:
Code: Select all
addtocontents{toc}{\vspace{-4ex}}
Re: Reducing space after heading in ToC
Greetings. It worked - thanks a lot!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Reducing space after heading in ToC
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10