Miscellany color improvements.

This commit is contained in:
Silcantar
2025-08-06 00:40:28 -05:00
parent b95e43e0c3
commit e0bad2e19b
4 changed files with 25 additions and 5 deletions

View File

@@ -30,3 +30,18 @@
\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}
}
}

View File

@@ -44,7 +44,7 @@
}
\newcommand{\centerfig}[4][]{
\begin{figure}[ht]%
\begin{figure}[htp]%
\centering%
\includegraphics[keepaspectratio,#1]{#2}%
\caption{#4}%

View File

@@ -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%

View File

@@ -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,
}
}