6

enter image description here

As the title says, is there a way to do this by using the fancybox features? I'd really like to know if it's possible.

Also, what's the font written in the text? Is there a way to replicate it?


Schwale
  • 2,049

1 Answers1

9

I's suggest you tcolorbox:

enter image description here

The code (adjust the settings according to your needs):

\documentclass{article}
\usepackage[many]{tcolorbox}
\usepackage{lipsum}

\definecolor{titlebg}{RGB}{100,22,72}

\newtcolorbox{learn}{
  breakable,
  enhanced,
  arc=0pt,
  outer arc=0pt,
  colframe=titlebg,
  colback=titlebg!05,
  overlay unbroken and first={
    \node[
      draw=titlebg,
      fill=titlebg,
      rotate=270,
      anchor=north west,
      text=white,
      font=\bfseries
    ]
    at (frame.north west)  
    {LEARN THIS};
  }
}

\begin{document}

\lipsum[4]
\begin{learn}
\lipsum[1-3]
\end{learn}

\end{document}

Regarding the fonts part of the question, please see How do I find out what fonts are used in a document/picture?.

Gonzalo Medina
  • 505,128