Page LayoutRight justify ToC title

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
magical marshmallow
Posts: 30
Joined: Mon Jan 21, 2013 11:37 am

Right justify ToC title

Post by magical marshmallow »

As the title says, is there anything similar to \setlength{\cftbeforetoctitleskip}{(1cm} that I can use to right justify the title of my ToC, LoF and LoT?

I've had a look at the \setlength{\cfttoctitleindent}, but it doesn't work. Is there anything else provided by tocloft or any other package?

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

tom
Posts: 73
Joined: Thu Apr 18, 2013 4:02 am

Right justify ToC title

Post by tom »

You'd have to change \@tocrmarg as shown in the example below.

Code: Select all

\documentclass[11pt]{article}
\usepackage{tocloft}
\makeatletter
\renewcommand{\@tocrmarg}{18em}
\makeatother
\begin{document}
\tableofcontents
\section{this is a really long title of a section}
\end{document}
Post Reply