- Fix \Appendices command.

- Create float for code.
- Adjust fallback font weights.
- Redefine Center environment to eliminate extra space.
- Create TblrEnviron for code.
This commit is contained in:
2025-10-17 16:52:39 -05:00
parent 47f2b67b98
commit acbc1dd669
6 changed files with 45 additions and 11 deletions

View File

@@ -360,4 +360,27 @@
\\
\end{tblr}
\end{BigFloat}
\group_end: }
\group_end: }
\NewDocumentEnvironment{CodeFloat}{
% #1: Label.
>{\TrimSpaces}m
% #2: Caption.
+m
% #3: Number of indentations.
m
% #4: Body text.
+b
}{
\begin{figure}
\begin{MyCaption}{fig:#1}{#2}
\Centering
\begin{tblrCode}{
colspec = {*{#3}{l}},
hline{1,Z} = {0.6pt},
}
#4
\end{tblrCode}
\end{MyCaption}
\end{figure}
}{}