Replace 2007-era protrusion fix with better 2018-era fix#154
Open
alexanderperlis wants to merge 1 commit intowannesm:masterfrom
Open
Replace 2007-era protrusion fix with better 2018-era fix#154alexanderperlis wants to merge 1 commit intowannesm:masterfrom
alexanderperlis wants to merge 1 commit intowannesm:masterfrom
Conversation
Instead of disabling microtype protrusion entirely in Table of Contents, use cancelling kern pairs to disable it only where page numbers occur. This is the same approach used by LaTeX itself since Dec 2018. See https://tex.stackexchange.com/a/761017/206306
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instead of disabling microtype protrusion entirely in Table of Contents (which was the advice in
microtypedocumentation since Jul 2007), use cancelling kern pairs to disable it only where page numbers occur — this is the same approach used by LaTeX since Dec 2018 (andmicrotypedocumentation removed its old advice in May 2021) but the LaTeX fix is overwritten bytocloft(used byadsphd), so here we usetocloft's after-page sockets to insert the same fix. Longer discussion at https://tex.stackexchange.com/a/761017/206306.