Using this answer, I have highlighting for chapters in my Table of Contents. For long chapter names, however, the box is wonky, because P1.north west and P1.north east do not span the entire line: ...
The solution presented in How to highlight specific entries in a tocloft-formatted ToC did not work for colored background. There is a problem when using color because the colored rectangles are ...
I am writing a document using the book class, and I use tocloft in order to customize the appearance of my ToC. So far, the package did a great job for most customizations, except for one thing: I am ...