Refine layout.

This commit is contained in:
Silcantar
2025-08-26 22:09:40 -05:00
parent 1ce3cd364f
commit 01a598b3aa
5 changed files with 27 additions and 92 deletions

View File

@@ -46,14 +46,14 @@
\fcolorbox{boxedcoloroutline}{#2}{\color{#3}\strut{}#1}}%
}
\providelength{\warningboxwidth}[\textwidth - \fboxsep * 2 - \fboxrule *2]
\providelength{\warningboxwidth}[
\textwidth - \fboxsep * 2 - \fboxrule * 2 - 5.56pt % Magic number to make it fit.
]
\NewDocumentCommand{\warningbox}{O{\warningboxwidth} +m}{%
\noindent%
\fcolorbox{WarningBoxFGColor}{WarningBoxBGColor}{%
\noindent%
\begin{minipage}{#1}%
\raggedbottom%
%\rule{\textwidth}{1pt}\zws% For debugging.
#2%
\end{minipage}%
}%