\documentclass[12pt , a4paper]{report}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage[top=3cm,bottom=3cm,left=2.2cm,right=6.2cm,marginparwidth=4.5cm,headsep=10pt,a4paper]{geometry}
\usepackage{titletoc}
\newcommand{\exersize}{\section*{exersize}}
%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\chapter{Chapter one}
\section{Section 1}
\exersize
\end{document}
答案1
具有类似定理的环境的一个例子:
\documentclass[12pt,a4paper]{report}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{xcolor}
\usepackage[top=3cm,bottom=3cm,left=2.2cm,right=6.2cm,marginparwidth=4.5cm,headsep=10pt,a4paper]{geometry}
\usepackage{blindtext}
\newmdtheoremenv[%
outerlinewidth=2,roundcorner=2pt,leftmargin=0,rightmargin=0,
outerlinecolor=blue,innertopmargin=\topskip,splittopskip=\topskip,
]{exercise}{Exercise}%[section]
\begin{document}
\chapter{Chapter one}
\section{Section 1}
\begin{exercise}[optional argument]
foo bar baz
\end{exercise}
\begin{exercise}
\blindtext
\end{exercise}
\blindtext
\end{document}