diff --git a/resources/ormc_handout.cls b/resources/ormc_handout.cls index 6f3b480..f3d6331 100755 --- a/resources/ormc_handout.cls +++ b/resources/ormc_handout.cls @@ -326,6 +326,7 @@ \RequirePackage{tcolorbox} % For solution boxes \RequirePackage{hyperref} % For custom references & clickable links \tcbuselibrary{breakable} % Allows tcolorboxes to break across pages +\tcbuselibrary{skins} % Allows additional tcolorbox customization \usetikzlibrary{calc} \RequirePackage[ % Provides \say{} for quoted text. @@ -353,6 +354,18 @@ } +\definecolor{ored}{HTML}{D62121} +\definecolor{ogrape}{HTML}{9C36B5} +\definecolor{ocyan}{HTML}{2288BF} +\definecolor{oteal}{HTML}{12B886} +\definecolor{ogreen}{HTML}{37B26D} +\definecolor{oblue}{HTML}{1C7ED6} + +\colorlet{red}{ored} +\colorlet{green}{ogreen} +\colorlet{blue}{oblue} +\colorlet{teal}{oteal} +\colorlet{cyan}{ocyan} \if@unfinished @@ -364,11 +377,11 @@ anchor=center, draw, below, - text=red, - draw=red, + text=ored, + draw=ored, fill=white, inner sep = 2mm, - line width = 0.3mm, + line width = 0.6mm, ] { \textbf{Incomplete Handout:} this handout is not done, it may need edits! @@ -431,15 +444,35 @@ \newcommand{\uptitler}[1]{\gdef\@uptitler{#1}} \newcommand{\@shortwarning}{ - \begin{tcolorbox}[colback=white, colframe=red] - \large\centering\color{red} + \begin{tcolorbox}[ + enhanced, + breakable, + colback=white, + colframe=ored, + boxrule=0.6mm, + arc=0mm, + outer arc=0mm, + ] + \large\centering\color{ored} \textbf{Instructor's Handout} \par \end{tcolorbox} } +% digital boxes may look better with: +% drop shadow=gray, +% smart shadow arc=false + \newcommand{\@longwarning}{ - \begin{tcolorbox}[colback=white, colframe=red] - \color{red} + \begin{tcolorbox}[ + enhanced, + breakable, + colback=white, + colframe=ored, + boxrule=0.6mm, + arc=0mm, + outer arc=0mm, + ] + \color{ored} \begingroup \large\centering \textbf{Instructor's Handout} \par @@ -636,17 +669,17 @@ \def\ORMCbgcolor{#3} \begin{tcolorbox}[ + enhanced, breakable, colback=#3, colframe=#4, + colbacktitle=#4, + titlerule=0.6mm, title={\textbf{#2}}, - %toprule = 0.6mm, - %bottomrule = 0.6mm, - %leftrule = 0.6mm, - %rightrule = 0.6mm, - %titlerule = 0.6mm, - arc=1mm, - outer arc = 1mm + frame style={draw=none,fill=none}, + boxrule=0mm, % We need this even with hidden borders for correct spacing + arc=0mm, + outer arc=0mm ] \raggedright } { @@ -654,11 +687,11 @@ } } -\@makeORMCbox{examplesolution}{Example Solution}{white}{gray!75!black} +\@makeORMCbox{examplesolution}{Example Solution}{black!10!white}{black!65!white} \if@solutions - \@makeORMCbox{solution}{Solution}{red!5!white}{red!75!black} - \@makeORMCbox{instructornote}{Note for Instructors}{cyan!5!white}{cyan!75!black} + \@makeORMCbox{solution}{Solution}{ored!10!white}{ored} + \@makeORMCbox{instructornote}{Note for Instructors}{ocyan!10!white}{ocyan} \else \excludecomment{solution} \excludecomment{instructornote}