Skip to content

Container: TinyTeX pinned to TeX Live 2025, replacing apt texlive - #341

Merged
cailmdaley merged 2 commits into
developfrom
feat/container-tinytex
Sep 9, 2026
Merged

Container: TinyTeX pinned to TeX Live 2025, replacing apt texlive#341
cailmdaley merged 2 commits into
developfrom
feat/container-tinytex

Conversation

@cailmdaley

Copy link
Copy Markdown
Collaborator

#338 added texlive-latex-base, -recommended, -fonts-recommended and cm-super from apt: ~1.3 GB of image for a TeX that still lacks type1cm.sty, which matplotlib's usetex preamble loads, so text.usetex remains unusable. This replaces that block with TinyTeX installed from the frozen TeX Live 2025 tlnet-final historic mirror (bundle v2026.02, the last built on TL2025), plus an explicit tlmgr package 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: bump TINYTEX_VERSION and TEXLIVE_YEAR together; adding a LaTeX package is one line in the tlmgr install list. ghostscript stays (PDF/PS backends); dvipng now comes from TeX Live. Verified outside Docker by running the same install into a scratch prefix and rendering a matplotlib-style usetex document through latex + dvipng.

Supersedes #339.

🤖 Generated with Claude Code

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>
@cailmdaley
cailmdaley merged commit fefaf00 into develop Sep 9, 2026
3 checks passed
@cailmdaley
cailmdaley deleted the feat/container-tinytex branch September 9, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant