- 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:
@@ -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}
|
||||
}{}
|
||||
Reference in New Issue
Block a user