- Debugging.

- Move all \RequirePackages to commonincludes.def.
This commit is contained in:
2025-09-12 16:15:29 -05:00
parent 0e68ac723d
commit 029916b8d6
19 changed files with 209 additions and 243 deletions

View File

@@ -4,10 +4,6 @@
Custom Float Environments.
}
\RequirePackage{PrimeTeX/packages/Layout}
\RequirePackage{float}
\floatstyle{plain}
\newfloat{generic}{htpb}{lgf}
\floatplacement{figure}{htpb}
@@ -119,25 +115,25 @@
}
\NewDocumentCommand{\CenterFig}{
% Key-value options passed to \includegraphics.
O{}
% Key-value options.
O{}
% Graphic file.
m
% Key-value options passed to \includegraphics.
O{}
% Label.
>{\TrimSpaces}m
% Caption.
m
}{ \group_begin:
\keys_set:nn{CenterFig}{#2}
\keys_set:nn{CenterFig}{#1}
\clist_use_default:Nnnn \l_CenterFig_placement_str
{\l_Float_placement_clist}
{\c_Float_placement_clist}
\expanded{\noexpand\begin{figure}[\l_CenterFig_placement_str]}
\begin{MyCaption}{fig:#4}{#5}
\Centering
\includegraphics[keepaspectratio,#1]{#3}
\includegraphics[keepaspectratio,#3]{#2}
\end{MyCaption}
\end{figure}
\group_end: }