LyXAdjust Top Margin in Table of Contents

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
jeffack
Posts: 3
Joined: Wed Sep 30, 2009 3:51 am

Adjust Top Margin in Table of Contents

Post by jeffack »

I am having difficulty adjusting the top margin of my Table of Contents. Here is the code I currently have in my preamble:

Code: Select all

\usepackage{tocloft}

\renewcommand{\cfttoctitlefont}{\hspace*{\fill}\normalfont\bfseries\MakeUppercase}
\setlength{\cftbeforetoctitleskip}{100pt}
(Note that I am using

Code: Select all

\renewcommand{\cfttoctitlefont}{\hspace*{\fill}\normalfont\bfseries\MakeUppercase}
to make the title all caps and centered; this part works fine)

The

Code: Select all

\setlength{\cftbeforetoctitleskip}{100pt}
doesn't seem to do anything. Even odder is the fact that

Code: Select all

\setlength{\cftaftertoctitleskip}{100pt}
works perfectly; it adds space after the title.

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

thomasb
Posts: 134
Joined: Thu Aug 03, 2017 10:54 am

Adjust Top Margin in Table of Contents

Post by thomasb »

Do you have a bit of code to compile ?
Post Reply