%% %% subcaptionlite.sty %% ================== %% Minimal subfigure/subtable environments, \subcaption, \subcaptionbox %% and \subref without the caption package. %% %% Copyright (c) 2026 Munehiro Yamamoto %% %% This package is licensed under the conditions of the LaTeX Project %% Public License, either version 1.3c of this license or (at your %% option) any later version. The latest version of this license is in %% https://www.latex-project.org/lppl.txt %% %% This work has the LPPL maintenance status `maintained'. %% The Current Maintainer of this work is Munehiro Yamamoto. %% %% What this package does %% The subcaption package needs the caption package, which redefines %% \@makecaption of the class. Thus it cannot be used with a class %% that has its own design of captions. This package provides the %% subfigure and subtable environments, \subcaption, \subcaptionbox %% and \subref without touching \@makecaption of the class; \caption %% is only wrapped for the numbering (see below). %% %% What it provides ( is figure or table) %% * The counter sub, reset by . \thesub is (a), %% (b), ...; \p@sub is \the, so that \ref gives "4.2(a)" %% (and \Cref of cleveref "Figure 4.2(a)"). \label works through %% \refstepcounter (with hyperref, the anchor is \theHsub). %% * \begin{subfigure}[]{} ... \end{subfigure}, and the %% subtable environment %% A minipage ( is b by default, as in the subcaption %% package), inside which \caption and \caption* mean \subcaption %% and \subcaption*. %% * \subcaption{} and \subcaption*{} %% Numbered with the counter of the float it is in: subfigure in a %% figure, subtable in a table (also in a subfigure environment). %% * \subcaptionbox{}[]{} %% Puts centered in a minipage of , followed by %% \subcaption{}. Without , the natural width of %% is used; with , \linewidth in is %% . If is wider than , the minipage %% keeps . %% * \subref{