Skip to content

fix: TeX Live 2026 compatibility for beamer mode#69

Merged
pasrom merged 1 commit into
masterfrom
fix/fontenc-before-babel
Apr 6, 2026
Merged

fix: TeX Live 2026 compatibility for beamer mode#69
pasrom merged 1 commit into
masterfrom
fix/fontenc-before-babel

Conversation

@pasrom

@pasrom pasrom commented Apr 5, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes ! LaTeX Error: Missing \begin{document} in txtbabel.def (line 4259) when building FHVMODE=5 (beamer) with TeX Live 2026.

Root cause: hyperref={breaklinks=true} inside \def\documentclassOptions{...} — the curly braces were misinterpreted during macro expansion in babel v26.5, causing babel's option processing to crash.

Changes

  • Remove hyperref={breaklinks=true} from beamer documentclass options (was redundant, already set in fhv.sty)
  • Skip scrhack for beamer (tocbasic unavailable, causes \addtotoclist error in TL2026)
  • Use \hypersetup{breaklinks=true} for beamer instead of \usepackage[breaklinks=true]{hyperref} to avoid option clash (beamer loads hyperref internally)
  • Load fontenc and inputenc before babel

Test plan

  • All 8 build variants verified locally (TL2024)
  • All 8 build variants verified in texlive/texlive:latest Docker (TL2026)
  • CI build passes on all FHVMODE variants

Root cause: hyperref={breaklinks=true} in \def\documentclassOptions
caused babel to crash when processing options via macro expansion
in babel v26.5. The curly braces inside the \def were misinterpreted.

Changes:
- Remove hyperref={breaklinks=true} from beamer documentclass options
  (was redundant, already set in fhv.sty)
- Skip scrhack for beamer (tocbasic unavailable, causes \addtotoclist error)
- Use \hypersetup{breaklinks=true} for beamer instead of \usepackage[]{hyperref}
  to avoid option clash (beamer loads hyperref internally)
- Load fontenc and inputenc before babel
@pasrom
pasrom force-pushed the fix/fontenc-before-babel branch from 3dbe380 to 8bbdb19 Compare April 5, 2026 20:37
@pasrom pasrom changed the title fix: load fontenc before babel for TeX Live 2026 compatibility fix: TeX Live 2026 compatibility for beamer mode Apr 6, 2026
@pasrom
pasrom merged commit 4facf4a into master Apr 6, 2026
1 check passed
@pasrom
pasrom deleted the fix/fontenc-before-babel branch April 6, 2026 06:32
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