I would like to produce solved examples with comments like below.
I tried package todonotes
with the following codes
\documentclass[12pt,openany,twoside,fleqn]{book}
\usepackage{amsmath}
%\usepackage[width=16cm,height=24cm,margin=5cm]{geometry}
\usepackage[textwidth=\marginparwidth,linecolor=red,bordercolor=yellow,backgr
oundcolor=yellow]{todonotes}
\usepackage{mathspec}
\setmainfont{Tekton Pro}
\everymath{\displaystyle}
\setmathsfont(Digits,Greek,Latin){Tekton Pro}
\usepackage{siunitx}
\begin{document}
\noindent
\(V=\frac{4}{3}\pi r^{3}\)\\[2ex]
\(\frac{dV}{dr}=4\pi r^{2}\)\todo{{\fontspec{ITC Berkeley Oldstyle
Std}Differentiate $V$ with respect to $r$. Remember that $\pi$ is a
constant.}}\\[2ex]
When $ r=5$, \(\frac{dV}{dr}=4\pi\times 5^{2}\)\todo{{\fontspec{ITC Berkeley
Oldstyle Std}Substitute $r=5$}}\\[2ex]
\hspace*{3.2cm}\(=314\) (3 s.f.)\\[2ex]
So the rate of change is 314 \si{\cubic\centi\meter} per
\si{\centi\meter}\todo{{\fontspec{ITC Berkeley Oldstyle Std}Interpret the
answer with units.}}
\end{document}
On compiling I got
I also realized that todonotes
cannot work inside tcolorbox
yet it's part of the target.
Apologies for this is looking to me like many questions in one.
I would be greatly happy to receive any kind help from the community.