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?


1 Answer 1

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?.

7
  • AMAZING!! I just added another question in the main post! Thank you!
    – Schwale
    Commented Jul 1, 2015 at 20:36
  • 1
    @Oshnaj Please see my updated answer. Commented Jul 1, 2015 at 20:39
  • @Oshnaj You're welcome! Glad I could help. Commented Jul 1, 2015 at 20:43
  • @Oshnaj Sure I can help you, but this is not the way this place works. We try to keep one question per post, so please undo the last edit and open a new question with the new request. Commented Jul 2, 2015 at 2:00
  • 1
    @Oshnaj And now there's an answer there :-) Commented Jul 2, 2015 at 2:52

You must log in to answer this question.

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