[Tex/LaTex] How to make a colored rounded text box

boxescolortcolorbox

I would like to know which is the preferred way to make a colored, rounded text box?

I would like to show important notes for example.

Best Answer

A small example...

\documentclass{book}

\usepackage{blindtext}
\usepackage{tcolorbox}
\usepackage{graphicx}
\begin{document}    

\begin{tcolorbox}[width=\textwidth,colback={green},title={With rounded corners},colbacktitle=yellow,coltitle=blue]    
   \blindtext[1]
\end{tcolorbox}    

\begin{tcolorbox}[width=\textwidth,colback={red},title={With true corners},outer arc=0mm,colupper=white]    
    \blindtext[1]     
    %\includegraphics[scale=0.5]{frogimage.png}
\end{tcolorbox}    

\end{document}

I hope, you do not mind using your profile photo ;-)

enter image description here

Related Question