答案1
以下tcolorbox
基于的方法可能可以作为起点:
\documentclass{report}
\usepackage{tcolorbox}
\tcbuselibrary{most}
\newtcolorbox[auto counter,
number within=chapter,
list inside=myexercise
]{myexercise}[1][]{%
enhanced,
title={\textsc{Exercice}~\thetcbcounter.},
#1,
halign title=left,
sharp corners,
colback=white,
coltitle=black,
colbacktitle=white,
boxrule=0pt,frame hidden,
overlay unbroken={%
\draw[black,double] (interior.north west)--(interior.south west);%
},
boxed title style={%
colframe=white,
boxrule=0pt,
colback=white,
left=0pt,
right=0pt},
attach boxed title to top left={xshift={-5pt}},
}
\begin{document}
\chapter{Chapter title}
\begin{myexercise}
An example exercice.
\end{myexercise}
\end{document}