1

I would like to make a note box where I can place key ideas for my students. I have these codes as 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}

When I compiled, this was the result: enter image description here

But what I need is as below:

enter image description here

Thanks in advance for any kind help from the community

2
  • Are you just asking how to have the title indented more than the body? I'd take out the left=1cm and put in fonttitle=\hspace*{0.6cm}\Large\bfseries or similar. Or do you need help getting a sans font (\sffamily), that exact shade of green, and whatever that shape is in the upper left?
    – frabjous
    Mar 22, 2022 at 19:23
  • @frabjous basically how to produce the shape on the left
    – Kidegalize
    Mar 23, 2022 at 4:47

1 Answer 1

3

enter image description here

\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}
1
  • Your code will be my first contact with tcolorbox, that seems very useful to my work in progress. Thanks for it!
    – karloswitt
    Mar 23, 2022 at 14:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .