Skip to content

Commit 8bbdb19

Browse files
committed
fix: TeX Live 2026 compatibility for beamer mode
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
1 parent 530807c commit 8bbdb19

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

sty/fhv.sty

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%
44
\usepackage{etoolbox} %
55
%
6-
\usepackage{scrhack}
6+
\if\FHVmode\presentations\else\usepackage{scrhack}\fi
77
% https://tex.stackexchange.com/questions/289734/special-package-combination-gives-no-room-for-new-write
88
\usepackage{morewrites}
99
\morewritessetup{allocate=10}
@@ -95,6 +95,10 @@
9595
}%
9696
{\usepackage{./sty/layout}}
9797
%
98+
% load fontenc and inputenc before babel
99+
\usepackage[T1]{fontenc}
100+
\usepackage[utf8]{inputenc}
101+
%
98102
%necessary if german language is selected
99103
\usepackage[english, ngerman]{babel} %german hyphenation and headings
100104
%
@@ -104,16 +108,12 @@
104108
%
105109
\RequirePackage{currfile}
106110
%
107-
% load after algorithm2e ref: https://www.mrunix.de/forums/showthread.php?71717-Algorithm2e-Zeilennummern-Bug
108-
\usepackage[T1]{fontenc}
109-
%
110111
\usepackage{amsmath} % need for subequations
111112
\usepackage{graphicx} % need for figures
112113
\usepackage[space]{grffile} % expand file name processing of graphics/x
113114
\usepackage{calc}
114115
%
115116
\usepackage{subfiles}
116-
\usepackage[utf8]{inputenc} % utf8 encoding (us this, if you have to switch between platforms)
117117
\usepackage{array}
118118
\usepackage{longtable}
119119
%allow rotating
@@ -185,7 +185,9 @@
185185
% load as late as possible, otherwise the footnote will not work!
186186
\usepackage[\newLanguage]{varioref}
187187
\PassOptionsToPackage{hyphens,obeyspaces,spaces}{url}
188-
\usepackage[breaklinks=true]{hyperref}
188+
\ifthenelse{\equal{\FHVmode}{\presentations}}%
189+
{\hypersetup{breaklinks=true}}% beamer already loads hyperref
190+
{\usepackage[breaklinks=true]{hyperref}}
189191
\usepackage{footnotebackref}
190192
\usepackage{nameref}
191193
\setlength{\emergencystretch}{1em}%

sty/overallDefines.sty

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@
167167
\def\documentclassOptions{%
168168
18pt,%
169169
xcolor=dvipsnames,%
170-
hyperref={breaklinks=true},%
171170
xcolor=table,%
172171
}%
173172
\fi

0 commit comments

Comments
 (0)