First post and certainly a tyro at LaTeX. Thanks to all those who have made this site such a helpful resource.
I'm using the memoir
class to typeset a novel, and would like to have the Table of Contents page numbers appear ragged right, each page number set a fixed horizontal distance from the end of each chapter title, regardless of chapter title length. I would like to be able to try different spacings to find the most pleasing horizontal gap between the end of chapter title lines and the page numbers.
Any solutions or pointers greatly appreciated.
Best Answer
Change the family of commands
\cftXleader
\cftXafterpnum
as shown below:To control the distance you could define auxiliary lengths to be used as the box width used by
\cftXformatpnum
to format the page number: