Give listing digit 1 a heavier base so it is not mistaken for l - #59
Open
frex-e wants to merge 2 commits into
Open
Give listing digit 1 a heavier base so it is not mistaken for l#59frex-e wants to merge 2 commits into
frex-e wants to merge 2 commits into
Conversation
Courier's 1/l serifs are too subtle at footnotesize, even with colour. Literate-replace only the digit (replacing l would split keywords). Co-authored-by: IndraK <frex-e@users.noreply.github.com>
The first pass only thickened Courier's existing foot; at footnotesize that was a few pixels and still read as a stick. Bold plus a 0.55em slab is obvious next to thin l, including on a B&W print. Non-typewriter (commentstyle) keeps the italic roman 1. Co-authored-by: IndraK <frex-e@users.noreply.github.com>
frex-e
marked this pull request as ready for review
August 28, 2026 05:46
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.
Courier's
1andlare too similar at footnotesize in the 3-column notebook, even with syntax colour (green literals vs black identifiers). That is a real mistype risk when copying code in contest (1LLvsll,a[1]vsa[l],f1vsfl).This uses the same listings
literatemechanism already used to fatten{}. Digit1is drawn in bold Courier with a wide overlapping base, so it cannot be read as a stick. Letterlis left alone: replacing it would split keywords (long,class,else, …) and recolor identifier letters.Colour is inherited, so numeric
1stays green. Italic comments (commentstyleis roman italic) skip the substitution, because1/lare already distinct there.Verified: full PDF still 30 pages (same as main's sty on current content);
llglyphs are byte-identical;1LLin Floyd–Warshall is clearly heavier. PDF is not committed.Floyd–Warshall listing after
1LL before vs after
To show artifacts inline, enable in settings.