\usepackage{xstring} \newcommand{\unfinished}{ \textbf{\textcolor{orange!90}{to be continued...}} } \newcommand{\unresolved}{ \textbf{\textcolor{red!90}{unresolved}} } % Create a new environment {exercise} to refer to exercises from the KNUTH book. \newenvironment{myexercise}[2] { \addcontentsline{toc}{subsubsection}{Exercise #1} \begin{minipage}{\textwidth} \begin{flushleft} { \Huge \textbf{Exercise #1.} (p. #2) } \end{flushleft} } { \end{minipage} } % Create a new environment for big quote with `primarycolor' coloured quote sign \newenvironment{myquote} { \begin{minipage}{\textwidth} \begin{flushleft} { \fontsize{75pt}{3pt}\selectfont \textcolor{primarycolor}{\textquotedblleft} } } { \begin{flushright} { \textcolor{primarycolor}{\textquotedblright} } \end{flushright} \end{flushleft} \end{minipage} } \newenvironment{myanswer} { \begin{minipage}{\textwidth} \begin{itshape} \begin{flushleft} { \Large \textbf{My Answer}: } } { \end{flushleft} \end{itshape} \end{minipage} }