我怎样才能实现这张练习表的排版,练习左侧有双横线?

我怎样才能实现这张练习表的排版,练习左侧有双横线?

我希望你能帮助我得到这个用于我的练习在此处输入图片描述

答案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}

相关内容