You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating Texlive on September/2025 the "figure" environment prevented compilation with tex capacity exceeded error. However, if only "figure*" is used, then compilation is normal.
Minimal Working Example
\documentclass{kaohandt}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering\begin{subfigure}{\textwidth}
Figure I
\caption{Test FigA1.}
\label{fig:A1}
\end{subfigure}
\begin{subfigure}{\textwidth}
Figure II
\caption{test figA2}
\label{fig:A2}
\end{subfigure}
\caption{Test figure.}
\label{fig:All}
\end{figure}
Test Fig.~\ref{fig:All}.
Test sub-labels \ref{fig:A1} and \ref{fig:A2}.
\end{document}
Expected behavior:
A figure inserted outside margin. Actual behavior:
There is an error:
document.tex: error: 20: TeX capacity exceeded, sorry [parameter stack size=20000]. \caption{Test figure.}
Additional Information
If the caption line "\caption{Test figure.}" is commented out the compilation proceeds but without the figure caption.
If "figure*" is used instead of "figure" the compilation and cross-references are all ok.