如何在tcolorbox中绘制彩色注释框

如何在tcolorbox中绘制彩色注释框

我想制作一个记事本,以便为我的学生记录关键想法。我有以下代码:MWE

\documentclass[openany]{book} 
\usepackage[many]{tcolorbox} 
\newtcolorbox{mynote}{% 
enhanced, left=1cm, breakable, 
colback=yellow!20, colbacktitle=yellow!20, colframe=yellow!20, 
sharp corners, 
width=90mm, 
fonttitle=\Large\bfseries, 
title=\textcolor{green!70!black}{Note}, 
overlay={\draw[dashed,line width=2pt,green!70!black] ([yshift=5pt,xshift=1.2cm]frame.west)--([yshift=5pt]frame.east);}, drop fuzzy shadow=gray!50 } 

\begin{document} 
\begin{mynote} 
The letter I is often used for the point (1,0). 
\end{mynote} 
\end{document}

当我编译时,结果如下: 在此处输入图片描述

但我需要的是如下内容:

在此处输入图片描述

提前感谢社区的任何帮助

答案1

在此处输入图片描述

\documentclass[openany]{book} 
\usepackage[many]{tcolorbox} 
\newtcolorbox{mynote}{% 
enhanced, left=1cm, breakable, 
colback=yellow!20, colbacktitle=yellow!20, colframe=yellow!20, 
sharp corners, 
width=90mm, 
fonttitle=\Large\bfseries, 
title=\textcolor{green!70!black}{Note}, 
overlay={\draw[dashed,line width=2pt,green!70!black] ([yshift=5pt,xshift=1.2cm]frame.west)--([yshift=5pt]frame.east);
\fill[green!70!black](frame.north west)--++(-90:4mm)--++(-45:3mm)--++(45:3mm)|-cycle;}, drop fuzzy shadow=gray!50 } 

\begin{document} 
\begin{mynote} 
The letter I is often used for the point (1,0). 
\end{mynote} 
\end{document}

相关内容