Minor improvements.

This commit is contained in:
2025-10-22 16:55:49 -05:00
parent afcc7b08d0
commit 31797dd3eb
7 changed files with 57 additions and 12 deletions

View File

@@ -362,24 +362,31 @@
\end{BigFloat}
\group_end: }
\tl_new:N \l_CodeFloat_text_tl
\NewDocumentEnvironment{CodeFloat}{
% #1: Label.
% #1: Star - Show whitespace if present (not working).
s
% #2: Additional Tabularray inner specifications.
O{}
% #3: Label.
>{\TrimSpaces}m
% #2: Caption.
% #4: Caption.
+m
% #3: Number of indentations.
m
% #4: Body text.
% #5: Number of indentations.
O{1}
% #6: Body text.
+b
}{
\begin{figure}
\begin{MyCaption}{fig:#1}{#2}
\begin{MyCaption}{fig:#3}{#4}
\Centering
\begin{tblrCode}{
colspec = {*{#3}{l}},
colspec = {*{#5}{l}},
hline{1,Z} = {0.6pt},
#2
}
#4
#6
\end{tblrCode}
\end{MyCaption}
\end{figure}