diff --git a/janishutz-helpers.tex b/janishutz-helpers.tex index 46adce0..28a7dc3 100644 --- a/janishutz-helpers.tex +++ b/janishutz-helpers.tex @@ -1328,6 +1328,17 @@ % Simple \newtcolorbox{simplebox}[2][]{colback=#2!5!white,colframe=#2!75!black,#1} +% Exam details +\newtcolorbox{examdetailsbox}[1][]{colback=BurntOrange!20!white, + width=0.5\linewidth,boxrule=0.1mm,arc=0.5mm,boxsep=1mm,left=0mm,right=0mm,top=0mm,bottom=0mm,#1} + +\newenvironment{examdetails}{% + \begin{examdetailsbox}[] + \textbf{At exam:}% + }{% + \end{examdetailsbox}% +} + % ┌ ┐ % │ STYLE: Computer Science │ diff --git a/src/style/tcb.sty b/src/style/tcb.sty index b7a3814..918bb63 100644 --- a/src/style/tcb.sty +++ b/src/style/tcb.sty @@ -48,3 +48,14 @@ % Simple \newtcolorbox{simplebox}[2][]{colback=#2!5!white,colframe=#2!75!black,#1} + +% Exam details +\newtcolorbox{examdetailsbox}[1][]{colback=BurntOrange!20!white, + width=0.5\linewidth,boxrule=0.1mm,arc=0.5mm,boxsep=1mm,left=0mm,right=0mm,top=0mm,bottom=0mm,#1} + +\newenvironment{examdetails}{% + \begin{examdetailsbox}[] + \textbf{At exam:}% + }{% + \end{examdetailsbox}% +}