Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tocloft: part formatting doesn't happen because \numberline is omitted #23

Open
wspr opened this issue Aug 26, 2014 · 0 comments
Open
Labels

Comments

@wspr
Copy link
Owner

wspr commented Aug 26, 2014

A typical .toc file looks like this:

\contentsline {part}{I\hspace {1em}I want to enlarge the space between the label and the content}{2}
\contentsline {chapter}{\numberline {1}Introduction}{3}
\contentsline {section}{\numberline {1.1}Just a sample section}{3}
\contentsline {subsection}{\numberline {1.1.1}Explain}{3}

Note that part doesn't use \numberline. Therefore, we need to be a bit smarter with how we try and format that ToC entry. Should be able to check if the token list contains \numberline, if not branch and check if it contains \hspace, then parse out the hard-coded formatting and insert the required internal tocloft macros.

Or just patch the \part macro… it's an unfortunate situation!

@wspr wspr added the tocloft label Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant