Miscellany color improvements.
This commit is contained in:
@@ -30,3 +30,18 @@
|
|||||||
\definecolor{PrimeBlue}{RGB}{25,45,145}
|
\definecolor{PrimeBlue}{RGB}{25,45,145}
|
||||||
\definecolor{PrimePaleBlue}{RGB}{233,236,251}
|
\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}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
\newcommand{\centerfig}[4][]{
|
\newcommand{\centerfig}[4][]{
|
||||||
\begin{figure}[ht]%
|
\begin{figure}[htp]%
|
||||||
\centering%
|
\centering%
|
||||||
\includegraphics[keepaspectratio,#1]{#2}%
|
\includegraphics[keepaspectratio,#1]{#2}%
|
||||||
\caption{#4}%
|
\caption{#4}%
|
||||||
|
|||||||
@@ -81,13 +81,17 @@
|
|||||||
\newlength{\boxoutpadding}
|
\newlength{\boxoutpadding}
|
||||||
\setlength{\boxoutpadding}{0.5em}
|
\setlength{\boxoutpadding}{0.5em}
|
||||||
|
|
||||||
|
\newcommand{\boxoutbgcolor}{PrimePaleBlue}
|
||||||
|
\newcommand{\boxoutfgcolor}{PrimeBlue}
|
||||||
|
|
||||||
\newcommand{\boxout}[5][0in]{%
|
\newcommand{\boxout}[5][0in]{%
|
||||||
\begin{wrapfigure}{#2}[#1]%
|
\begin{wrapfigure}{#2}[#1]%
|
||||||
\fcolorbox{PrimeBlue}{PrimePaleBlue}{%
|
\fcolorbox{\boxoutfgcolor}{\boxoutbgcolor}{%
|
||||||
\begin{minipage}{#3}%
|
\begin{minipage}{#3}%
|
||||||
\vspace{\boxoutpadding}%
|
\vspace{\boxoutpadding}%
|
||||||
{\centering%
|
{\centering%
|
||||||
\begin{minipage}{\boxoutpadding*-2 + \textwidth}%
|
\begin{minipage}{\boxoutpadding*-2 + \textwidth}%
|
||||||
|
\label{box:#4}%
|
||||||
\setlength{\parskip}{\medskipamount}%
|
\setlength{\parskip}{\medskipamount}%
|
||||||
{\centering\slab{\strong{#4}}\par}%
|
{\centering\slab{\strong{#4}}\par}%
|
||||||
\small{}#5%
|
\small{}#5%
|
||||||
@@ -101,11 +105,12 @@
|
|||||||
|
|
||||||
\newcommand{\bigboxout}[4][\bigfloatoverhang]{%
|
\newcommand{\bigboxout}[4][\bigfloatoverhang]{%
|
||||||
\bigfloat[#1]{figure}{#2}{%
|
\bigfloat[#1]{figure}{#2}{%
|
||||||
\fcolorbox{PrimeBlue}{PrimePaleBlue}{%
|
\fcolorbox{\boxoutfgcolor}{\boxoutbgcolor}{%
|
||||||
\begin{minipage}{\boxoutpadding*-2 + \textwidth}%
|
\begin{minipage}{\boxoutpadding*-2 + \textwidth}%
|
||||||
\vspace{\boxoutpadding}%
|
\vspace{\boxoutpadding}%
|
||||||
{\centering%
|
{\centering%
|
||||||
\begin{minipage}{\boxoutpadding*-2 + \textwidth}%
|
\begin{minipage}{\boxoutpadding*-2 + \textwidth}%
|
||||||
|
\label{box:#3}%
|
||||||
\setlength{\parskip}{\medskipamount}%
|
\setlength{\parskip}{\medskipamount}%
|
||||||
{\centering\slab{\strong{#3}}\par}%
|
{\centering\slab{\strong{#3}}\par}%
|
||||||
\small{}#4%
|
\small{}#4%
|
||||||
|
|||||||
@@ -32,10 +32,10 @@
|
|||||||
hline{2} = {0.4pt},
|
hline{2} = {0.4pt},
|
||||||
}
|
}
|
||||||
|
|
||||||
\NewTblrTableCommand{\midtitle}{
|
\NewTblrTableCommand{\midtitle}[1][pageColor]{
|
||||||
\SetCell[c=2]{
|
\SetCell[c=2]{
|
||||||
c,
|
c,
|
||||||
bg = PrimePaleBlue,%pageColor,
|
bg = #1,
|
||||||
font = \bfseries,
|
font = \bfseries,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user