1

Is it possible to make the ‘tip box’ in the photograph below using the tcolorbox package (or any other way for that matter)?enter image description here My abilities in tcolorbox are severely lacking, so any help is greatly appreciated.

Thank you in advance for any assistance.

2

1 Answer 1

4

Here is how we can do it with a tcolorbox:

\documentclass{article}
\usepackage[skins]{tcolorbox}

\usepackage{lipsum}

\newtcolorbox{mytcolorbox}[1]{
   enhanced,
   colback=white,
   colframe=gray,
   coltitle=black,
   fonttitle=\bfseries\LARGE,
   detach title,
   boxrule=2pt,
   leftrule=0pt,
   top=1mm,
  attach title to upper={\par},
   sharp corners,
   borderline west={5pt}{0pt}{red!70!blue},
   title=#1
}

\begin{document}
\begin{mytcolorbox}{Tip Box Title}
 \lipsum[1-2]
\end{mytcolorbox}
\end{document}

enter image description here

4
  • 1
    Can you change the border color as in the posted image?
    – Sigur
    Commented Feb 23, 2019 at 18:51
  • 1
    @Sigur Is the border color correct ? Commented Feb 23, 2019 at 19:22
  • 2
    I think is good. Congs.
    – Sigur
    Commented Feb 23, 2019 at 19:23
  • 2
    @HafidBoukhoulda Perfect, thank you very much!
    – Tomsk
    Commented Feb 23, 2019 at 19:23

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