Skip to content

After updating Texlive on September/2025 the "figure" environment prevented compilation with tex capacity exceeded error. #308

@anisiobraga

Description

@anisiobraga

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions