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?


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

  • AMAZING!! I just added another question in the main post! Thank you! – Alejandro Jul 1 '15 at 20:36
  • 1
    @Oshnaj Please see my updated answer. – Gonzalo Medina Jul 1 '15 at 20:39
  • @Oshnaj You're welcome! Glad I could help. – Gonzalo Medina Jul 1 '15 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. – Gonzalo Medina Jul 2 '15 at 2:00
  • 1
    @Oshnaj And now there's an answer there :-) – Gonzalo Medina Jul 2 '15 at 2:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.