Container: TinyTeX pinned to TeX Live 2025, replacing apt texlive - #341
Merged
Conversation
The texlive-latex-base/-recommended/-fonts-recommended + cm-super set added in #338 costs ~1.3 GB and still lacks type1cm.sty, so matplotlib's usetex path stays broken. Replace it with TinyTeX (~270 MB measured), pinned to TeX Live 2025 on both halves: bundle v2026.02, and tlmgr pointed at that year's frozen tlnet-final historic mirror. Packages are an explicit tlmgr list covering matplotlib's usetex preamble. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
#338 added
texlive-latex-base,-recommended,-fonts-recommendedandcm-superfrom apt: ~1.3 GB of image for a TeX that still lackstype1cm.sty, which matplotlib's usetex preamble loads, sotext.usetexremains unusable. This replaces that block with TinyTeX installed from the frozen TeX Live 2025tlnet-finalhistoric mirror (bundlev2026.02, the last built on TL2025), plus an explicittlmgrpackage list covering the usetex preamble: type1cm, cm-super, dvipng, underscore, ulem, amsmath, amsfonts, geometry, xcolor. Measured install size is ~270 MB, and both halves are pinned, so the layer resolves identically forever. Maintenance is once a year: bumpTINYTEX_VERSIONandTEXLIVE_YEARtogether; adding a LaTeX package is one line in thetlmgr installlist.ghostscriptstays (PDF/PS backends);dvipngnow comes from TeX Live. Verified outside Docker by running the same install into a scratch prefix and rendering a matplotlib-style usetex document throughlatex+dvipng.Supersedes #339.
🤖 Generated with Claude Code