Open
Conversation
Add \usepackage{microtype} to the LaTeX style file. With LuaLaTeX,
microtype enables character protrusion (hanging punctuation), font
expansion, and tracking adjustments that noticeably improve paragraph
justification and reduce overfull/underfull hbox warnings.
This is a zero-configuration improvement — microtype's defaults work
well out of the box with the existing DejaVu Sans font setup.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- selnolig: suppress inappropriate ligatures (LuaLaTeX-specific) - microtype nopatch=item: avoid interaction with memoir list formatting - bookmark: improved PDF bookmarks (loaded after hyperref) - Page headers with chapter/section names for easier navigation - Minted style=friendly for colored syntax highlighting in code blocks - Add selnolig and bookmark to CI TeX Live package list Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fingolfin
requested changes
Mar 16, 2026
Collaborator
fingolfin
left a comment
There was a problem hiding this comment.
This may be a breaking change in so far as it may break CI tests in repositories using Documenter to build PDFs.
We first need to make sure the Docker container provides all now required packages and can be used to build this.
Collaborator
|
(I do like the general idea behind this PR, though) |
Contributor
Author
|
I will look into the docker container update. |
Collaborator
|
@ViralBShah that would be awesome, thank you! Some notes are at #2888 which also links to further issues |
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.
Summary
A collection of LaTeX improvements for better PDF output, all in
documenter.sty:microtype— character protrusion (hanging punctuation), font expansion, and tracking for improved paragraph justification and fewer overfull/underfull hbox warnings\microtypesetup{nopatch=item}— avoids a known interaction between microtype and memoir's list formattingselnolig— LuaLaTeX-specific package that suppresses inappropriate ligatures (e.g., "ff" ligature in "shelfful")bookmark— improved PDF bookmarks with better handling of edge cases (loaded after hyperref)style = friendly— switches minted code blocks from the default monochrome Pygments theme tofriendly, which provides colored syntax highlightingAll packages are zero-configuration — they work with the existing DejaVu Sans font setup and memoir document class.
selnoligandbookmarkare added to the CI TeX Live package list.Test plan
Documentation: pdfCI job passesPDF/LaTeX backendCI jobs pass on both ubuntu and windows🤖 Generated with Claude Code