答案1
我不知道你想要的解决方案有多复杂,但这是一个起点,它可能足以满足你的使用,否则许多增强功能都是可能的
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\usetikzlibrary{%
decorations.pathmorphing,shadows
}
\usepackage{multicol}
\begin{document}
\section{Propriétés Algébriques}
\tikz\node[decoration={random steps,segment length=1cm},decorate,
ultra thick,
draw=orange,fill=orange!20,
inner ysep=5mm,
drop shadow,
anchor=north west,text width=\linewidth]{%
Soient $a$ et $b$ deux réels...
\dotfill
\dotfill
\begin{multicols}{2}
\begin{enumerate}
\item hello
\item$\exp\left(a+b\right)=\exp a\times\exp b$
\item world
\item$\exp\left(a-b\right)=\dfrac{\exp a}{\exp b}$
\end{enumerate}
\end{multicols}
\dotfill
};
\end{document}
使用包的一个非常快速的解决方案tcolorbox
:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{%
decorations.pathmorphing,shadows}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
\begin{document}
\tcbset{colback=white,colframe=white,coltitle=black,fonttitle=\bfseries}
\begin{tcolorbox}[enhanced,title=My title,interior titled code={
\filldraw[decoration={random steps,segment length=1cm},decorate,draw=orange,ultra thick, fill=orange!20]
(interior.south west)rectangle(interior.north east);}]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}
\end{document}