From b95e43e0c31a0ea4a79e3feb4c56c077b188640c Mon Sep 17 00:00:00 2001 From: Silcantar Date: Sun, 3 Aug 2025 21:48:10 -0500 Subject: [PATCH] Rename the existing boxout macro to bigboxout and create a new wrapfigure-based boxout macro. --- packages/CrossRef.sty | 3 +-- packages/Layout.sty | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/packages/CrossRef.sty b/packages/CrossRef.sty index b44fc57..74bef5a 100644 --- a/packages/CrossRef.sty +++ b/packages/CrossRef.sty @@ -46,5 +46,4 @@ } \newcommand{\lblFigure}[2][]{ \lblGeneral[#1]{#2}{\caption}{fig} - } -%#endregion \ No newline at end of file + } \ No newline at end of file diff --git a/packages/Layout.sty b/packages/Layout.sty index 0516e07..fb70d69 100644 --- a/packages/Layout.sty +++ b/packages/Layout.sty @@ -81,7 +81,25 @@ \newlength{\boxoutpadding} \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}{% \fcolorbox{PrimeBlue}{PrimePaleBlue}{% \begin{minipage}{\boxoutpadding*-2 + \textwidth}% @@ -91,7 +109,7 @@ \setlength{\parskip}{\medskipamount}% {\centering\slab{\strong{#3}}\par}% \small{}#4% - \end{minipage} + \end{minipage}% \par}% \vspace{\boxoutpadding}% \end{minipage}%