diff --git a/janishutz-helpers.tex b/janishutz-helpers.tex index eac573c..46adce0 100644 --- a/janishutz-helpers.tex +++ b/janishutz-helpers.tex @@ -43,6 +43,7 @@ \usepackage{parskip} \usepackage{titlesec} \usepackage{centernot} +\usepackage{todonotes} \newcounter{descriptorShadeStrength} \newcounter{shadeStrength} @@ -690,6 +691,17 @@ {\normalfont\small\bfseries}} \makeatother +% Small color boxes +\newcommand\coloredbox[3]{% + \par\smallskip\noindent + \colorbox{#1!20}{% + \begin{minipage}{\dimexpr\linewidth-3\fboxsep-1pt\relax}% + \textbf{#2}\par\smallskip #3% + \end{minipage} + }% + \par\smallskip +} + % ┌ ┐ % │ Setup │ diff --git a/src/core.sty b/src/core.sty index 32f252a..d82dbc8 100644 --- a/src/core.sty +++ b/src/core.sty @@ -29,6 +29,7 @@ \RequirePackage{parskip} \RequirePackage{titlesec} \RequirePackage{centernot} +\RequirePackage{todonotes} \newcounter{descriptorShadeStrength} \newcounter{shadeStrength} diff --git a/src/style.sty b/src/style.sty index f75907e..2271c54 100644 --- a/src/style.sty +++ b/src/style.sty @@ -96,3 +96,14 @@ {.5\baselineskip}% {\normalfont\small\bfseries}} \makeatother + +% Small color boxes +\newcommand\coloredbox[3]{% + \par\smallskip\noindent + \colorbox{#1!20}{% + \begin{minipage}{\dimexpr\linewidth-3\fboxsep-1pt\relax}% + \textbf{#2}\par\smallskip #3% + \end{minipage} + }% + \par\smallskip +}