I currently disable the package and redefine ```latex \renewenvironment{subfigure}[2][#1]{\begin{figure}}{\end{figure}} ``` which avoids the errors. However, the figure numbering and the `\textwidth` inside the subfigure are not correct.
I currently disable the package and redefine
which avoids the errors. However, the figure numbering and the
\textwidthinside the subfigure are not correct.