1

Please, I want to produce this environment of example with the same colors

enter image description here

Any ideas please? Thanks.

2
  • 3
    Use tcolorbox and amsmath packages. Done. Commented Jul 16, 2020 at 23:14
  • @Too Fat Thank you.
    – Gallagher
    Commented Jul 17, 2020 at 0:11

1 Answer 1

3

As @Too Fat suggested, here is what I found with tcolorbox

\begin{tcolorbox}
   [arc=0mm,outer arc=0mm,
   boxrule=0mm,toprule=0.5mm,bottomrule=0.5mm,left=0mm,right=0mm,leftrule=0pt,
   titlerule=0mm,toptitle=0mm,bottomtitle=0mm,top=0mm,
   colframe=gray!50,colback=green!5!white,coltitle=blue!50!black]
  \textcolor{blue}{\textbf{EXEMPLE 1}}\\
 Some texts .....
\end{tcolorbox}

which give

enter image description here

Thank you all.

2
  • There is a typo on: EX(E)MPLE....after very good for your work.
    – Sebastiano
    Commented Jul 17, 2020 at 8:45
  • 1
    Sorry! It's "Example" of course.
    – Gallagher
    Commented Jul 17, 2020 at 9:51

You must log in to answer this question.

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