Lots of changes.

This commit is contained in:
2025-08-28 16:56:27 -05:00
parent f4571bcbcf
commit 168dca350f
8 changed files with 275 additions and 97 deletions

View File

@@ -32,17 +32,22 @@
\NewDocumentEnvironment{@boxout}{
m m +b
}{
\label{box:#2}%
\begin{tblrBoxout}{#1}%
\label{box:#1}%
\begin{tblrBoxout}{#2}%
#3%
\end{tblrBoxout}%
}{}
\NewDocumentEnvironment{Boxout}{
O{colspec={X[l,h]}}
% #1: Label, passed to @boxout argument #1.
>{\TrimSpaces}m
% #2: Tabularray colspec, passed to @boxout argument #2.
O{colspec={X[l,h]}}
% #3: Caption.
+m
% #4: [Ww] for warning box.
o
% #5: Body, passed to @boxout.
+b
}{%
\ifthenelse{\equal{#4}{w}\OR\equal{#4}{W}}{%
@@ -64,22 +69,34 @@
}{}
\NewDocumentEnvironment{BigBoxout}{
% #1: Overhang, passed to BigFloat argument #1.
O{\bigfloatoverhang}
% #2: Float placement, passed to BigFloat argument #2.
O{htpb}
% #3: Offset ratio, passed to BigFloat argument #3.
O{\bigfloatoffsetratio}
O{X[l,h]}
% #4: Label, passed to Boxout argument #1.
>{\TrimSpaces}m
% #5: Tabularray colpec, passed to Boxout argument #2.
O{X[l,h]}
% #6: Caption, passed to Boxout argument #3.
+m
% #7: [Ww] for warning box, if present passed to Boxout argument #4.
o
% #5: Body, passed to Boxout.
+b
}{
\begin{figure}[#2]%
\begin{adjustwidth}{-#1}{-#1 * \real{#3}}%
\begin{Boxout}[#4]{#5}{#6}[#7]%
\begin{BigFloat}[generic][#1][#2][#3]%
\IfNoValueTF{#7}{%
\begin{Boxout}{#4}[#5]{#6}%
#8%
\end{Boxout}%
\end{adjustwidth}%
\end{figure}%
}{%
\begin{Boxout}{#4}[#5]{#6}[#7]%
#8%
\end{Boxout}%
}%
\end{BigFloat}%
}{}
\NewDocumentEnvironment{WrapBoxout}{