I am trying to typeset a book in LaTeX, but I'm having trouble formatting my table of contents. I've been able to center my title and chapter numbers successfully, but I can't figure out how to center the chapter titles and the pages on which chapters start.
This code reproduces the problem:
\documentclass{scrbook}
\usepackage{titletoc, tocloft, lipsum, fmtcount}
\renewcommand{\thechapter}{\Numberstring{chapter}}
% Centers the table of contents title:
\renewcommand{\cfttoctitlefont}{\hfill}
\renewcommand{\cftaftertoctitle}{\hfill}
% Eliminates the space between the chapter title and the page number:
\renewcommand{\cftchapleader}{}
\renewcommand{\cftchapafterpnum}{\cftparfillskip}
\renewcommand{\cftchapfillnum}[1]{~$\cdot$~#1\cftparfillskip\par}
% ^Puts a small dot between the chapter and the page number.
% Here's where I need help:
\renewcommand{\cftchapaftersnumb}{\\}
% ^Puts the chapter title below the chapter number. How do I increase this space?
\renewcommand{\cftchapfont}{\centering}
% ^Centers the chapter numbers. How do I center the chapter titles/pages?
\begin{document}
\tableofcontents
\chapter{Chapter Title}
\lipsum
\chapter{Another Chapter Title}
\lipsum
\end{document}
Here's a picture:
This is my first time asking a question, so let me know if my MWE is unclear or if I need to provide more information. Thanks!
Best Answer
I found a solution! Huzzah!
As Christian Hupfer and Johannes_B pointed out in the comments, combining
scrbook
withtocloft
andtitletoc
was a terrible idea; as such, I abandoned my original approach completely and switched my document class tomemoir
. I suspect such radical revision to solve a single problem is akin to nuking fleas, so I'll leave this question open because there's probably a more elegant solution.Anyway, here's what I came up with:
Thanks for the help, everyone!