Rename the existing boxout macro to bigboxout and create a new wrapfigure-based boxout macro.

This commit is contained in:
Silcantar
2025-08-03 21:48:10 -05:00
parent 19f3b6c8d2
commit b95e43e0c3
2 changed files with 21 additions and 4 deletions

View File

@@ -46,5 +46,4 @@
} }
\newcommand{\lblFigure}[2][]{ \newcommand{\lblFigure}[2][]{
\lblGeneral[#1]{#2}{\caption}{fig} \lblGeneral[#1]{#2}{\caption}{fig}
} }
%#endregion

View File

@@ -81,7 +81,25 @@
\newlength{\boxoutpadding} \newlength{\boxoutpadding}
\setlength{\boxoutpadding}{0.5em} \setlength{\boxoutpadding}{0.5em}
\newcommand{\boxout}[4][\bigfloatoverhang]{% \newcommand{\boxout}[5][0in]{%
\begin{wrapfigure}{#2}[#1]%
\fcolorbox{PrimeBlue}{PrimePaleBlue}{%
\begin{minipage}{#3}%
\vspace{\boxoutpadding}%
{\centering%
\begin{minipage}{\boxoutpadding*-2 + \textwidth}%
\setlength{\parskip}{\medskipamount}%
{\centering\slab{\strong{#4}}\par}%
\small{}#5%
\end{minipage}%
\par}%
\vspace{\boxoutpadding}%
\end{minipage}%
}%
\end{wrapfigure}%
}
\newcommand{\bigboxout}[4][\bigfloatoverhang]{%
\bigfloat[#1]{figure}{#2}{% \bigfloat[#1]{figure}{#2}{%
\fcolorbox{PrimeBlue}{PrimePaleBlue}{% \fcolorbox{PrimeBlue}{PrimePaleBlue}{%
\begin{minipage}{\boxoutpadding*-2 + \textwidth}% \begin{minipage}{\boxoutpadding*-2 + \textwidth}%
@@ -91,7 +109,7 @@
\setlength{\parskip}{\medskipamount}% \setlength{\parskip}{\medskipamount}%
{\centering\slab{\strong{#3}}\par}% {\centering\slab{\strong{#3}}\par}%
\small{}#4% \small{}#4%
\end{minipage} \end{minipage}%
\par}% \par}%
\vspace{\boxoutpadding}% \vspace{\boxoutpadding}%
\end{minipage}% \end{minipage}%