Minor improvements.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user