答案1
你可以使用这个tcolorbox
包。这里有一个简短的例子来教你如何绘制这些“手绘”线条:
\documentclass{article}
\usepackage[most]{tcolorbox}
\usepackage{emerald}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{shadows}
\tikzset{decoration={random steps,segment length=2mm,amplitude=0.6pt}}
\newtcbtheorem{mytheo}{Theorem}{
coltitle=green!80!black,
colback=lightgray!20,
colbacktitle=lightgray!20,
fonttitle=\bfseries\ECFAugie,
enhanced,
attach boxed title to top left={yshift=-0.18cm,xshift=-0.5mm},
boxed title style={
tikz={rotate=4,transform shape},
frame code={
\draw[decorate,fill=lightgray!20] (frame.south west) rectangle (frame.north east);
}
},
frame code={
\draw[decorate,fill=lightgray!20,drop shadow] (frame.north east) rectangle (frame.south west);
},
}{th}
\begin{document}
\begin{mytheo}{}{theoexample}
content...
\end{mytheo}
\end{document}