Trying to prepare homeschool reading material for kids in lockdown and I would love to use an environment like the one below:
I adapted codes from enter link description here Credit @SebGlav and made some modifications as below.
\documentclass[12pt,openany,twoside,fleqn]{book}
\usepackage{amsmath}
\usepackage{tikz,lipsum}
\usetikzlibrary{shapes.symbols,positioning}
\usepackage{mathspec}
\setmainfont{ITC Berkeley Oldstyle Std}
\setmathsfont(Digits,Greek,Latin){ITC Berkeley Oldstyle Std}
\usepackage{chemfig}
\setlength{\parindent}{0pt}
\definecolor{pina}{HTML}{7B68EE}
\usepackage{enumitem}
%Codes adapted from tex.stackexchange.com/questions/617495/how-to-produce-
fancy-box-in-tcolorbox
%Respect and credit to @SebGlav
\newcounter{examp}
\setcounter{examp}{0}
\newcommand{\mytitlex}[2]%
{%
\stepcounter{examp}
\begin{tikzpicture}[font=\fontspec{Chevin}]
\def\cola{pina}
\node[fill=\cola,anchor=west,minimum height=17mm,minimum width=3.8cm]
at (-1,0) {};
\node[fill=white,line width=2pt,circle,draw=\cola,minimum size=1cm]
at (2.25,-.95) {\thechapter.\theexamp};
\node[text=white,anchor=west,align=center] at (-1,0) {\large\bfseries
CHECK YOUR\\ UNDERSTANDING};
\draw[line width=3pt,\cola](2,.777)--(15,.777);
\end{tikzpicture}
}
\begin{document}
\setcounter{chapter}{1}
\chapter{Alkenes}
\mytitlex{}{}
\begin{enumerate}
\item
\begin{enumerate}[label=\textbf{\alph*}]
\item Explain the
\item Give two
\end{enumerate}
\item Explain the difference
\end{enumerate}
\end{document}
And this gave me
Any kind help to achieve the desired environment is highly welcomed.