titlesec problem

Hartmut Henkel hartmut_henkel at gmx.de
Mon Apr 8 22:13:45 CEST 2024


Hi,

here is some weird error when using the titlesec package (TL 2024 SVN
from yesterday):

! TeX capacity exceeded, sorry [input stack size=10000].
\hook_use:nnw #1#2->\cs:w \if_cs_exist:w __hook #1
                                                  \cs_end: __hook #1\else: u...

Here a demo file for the problem; run e. g., with pdflatex:

\documentclass{article}
\usepackage{titlesec}
\begin{document}

% does not work in TL2024, but worked "earlier":
\section{\label{sec:foo}Hello}

% works:
%\section{Hello}\label{sec:foo}

\end{document}

Colleagues using an older TL (2022?) did not have any problem, when the
label macro is used within the section argument. Without titlesec the
label is allowed there, traditionally. But new titlesec requires to have
the label after the sectioning macro.

Best Regards
Hartmut


More information about the tex-live mailing list.