diff --git a/packages/Color.sty b/packages/Color.sty index ece3b0f..84e2f8f 100644 --- a/packages/Color.sty +++ b/packages/Color.sty @@ -29,4 +29,19 @@ \definecolor{PrimeBlue}{RGB}{25,45,145} \definecolor{PrimePaleBlue}{RGB}{233,236,251} +} + +\definecolor{WarningBoxBGColor}{RGB}{255,255,128} +\definecolor{WarningBoxFGColor}{RGB}{255,192,0} + +\newcommand{\boxedcolor}[3][white]{ + \fcolorbox{black}{#2}{\textcolor{#1}{#3}} +} + +\newcommand{\warningbox}[2][\textwidth]{ + \fcolorbox{WarningBoxFGColor}{WarningBoxBGColor}{ + \begin{minipage}{#1} + #2 + \end{minipage} + } } \ No newline at end of file diff --git a/packages/Graphics.sty b/packages/Graphics.sty index 3cf106a..c4023bc 100644 --- a/packages/Graphics.sty +++ b/packages/Graphics.sty @@ -44,7 +44,7 @@ } \newcommand{\centerfig}[4][]{ - \begin{figure}[ht]% + \begin{figure}[htp]% \centering% \includegraphics[keepaspectratio,#1]{#2}% \caption{#4}% diff --git a/packages/Layout.sty b/packages/Layout.sty index fb70d69..02abee3 100644 --- a/packages/Layout.sty +++ b/packages/Layout.sty @@ -81,13 +81,17 @@ \newlength{\boxoutpadding} \setlength{\boxoutpadding}{0.5em} +\newcommand{\boxoutbgcolor}{PrimePaleBlue} +\newcommand{\boxoutfgcolor}{PrimeBlue} + \newcommand{\boxout}[5][0in]{% \begin{wrapfigure}{#2}[#1]% - \fcolorbox{PrimeBlue}{PrimePaleBlue}{% + \fcolorbox{\boxoutfgcolor}{\boxoutbgcolor}{% \begin{minipage}{#3}% \vspace{\boxoutpadding}% {\centering% \begin{minipage}{\boxoutpadding*-2 + \textwidth}% + \label{box:#4}% \setlength{\parskip}{\medskipamount}% {\centering\slab{\strong{#4}}\par}% \small{}#5% @@ -101,11 +105,12 @@ \newcommand{\bigboxout}[4][\bigfloatoverhang]{% \bigfloat[#1]{figure}{#2}{% - \fcolorbox{PrimeBlue}{PrimePaleBlue}{% + \fcolorbox{\boxoutfgcolor}{\boxoutbgcolor}{% \begin{minipage}{\boxoutpadding*-2 + \textwidth}% \vspace{\boxoutpadding}% {\centering% \begin{minipage}{\boxoutpadding*-2 + \textwidth}% + \label{box:#3}% \setlength{\parskip}{\medskipamount}% {\centering\slab{\strong{#3}}\par}% \small{}#4% diff --git a/packages/Tables.sty b/packages/Tables.sty index 635b97c..c358142 100644 --- a/packages/Tables.sty +++ b/packages/Tables.sty @@ -32,10 +32,10 @@ hline{2} = {0.4pt}, } -\NewTblrTableCommand{\midtitle}{ +\NewTblrTableCommand{\midtitle}[1][pageColor]{ \SetCell[c=2]{ c, - bg = PrimePaleBlue,%pageColor, + bg = #1, font = \bfseries, } }