答案1
这是一个解决方案tcolorbox
:
\documentclass[a4paper]{article}
\usepackage{lipsum}
\usepackage{geometry}
\usepackage[most]{tcolorbox}
\usetikzlibrary{decorations.pathmorphing}
\newtcolorbox{exercices}[1][]{
breakable,
enhanced,
empty,
coltitle=black,
fonttitle=\bfseries,
title=Miniexercices,
extras={%
borderline west={0.25mm}{0.5mm}{gray,decoration={zigzag, amplitude=.5mm},decorate}},
#1
}
\begin{document}
\lipsum[1]
\begin{exercices}
Solve following problems:
\begin{enumerate}
\item Problem
\item Problem
\item Problem
\end{enumerate}
\end{exercices}
\lipsum[2]
\end{document}