# How to make rounded box and shaded background behind text in Latex?

I am trying to create a following image in LaTeX for my resume. I can find a lot of questions and answers being discussed on the perfect rectangular background but not the rounded shape.

• There are many, many such questions on this site that already have answers. Look for the tcolorbox package, for example here: tex.stackexchange.com/questions/251145/… Nov 2 '15 at 18:57
• oh! they are called beamer blocks! Nov 2 '15 at 18:58

Perhaps something like this:

\documentclass{article}

\usepackage[x11names]{xcolor}
\usepackage[most]{tcolorbox}

\begin{document}

Employment Experience

\end{document}


Update

\documentclass{article}

\usepackage[x11names]{xcolor}
\usepackage[most]{tcolorbox}

colback=white!80!blue,
coltext={blue},
boxrule=0pt,
arc=3mm,
auto outer arc,
boxsep=3pt,
left=4pt,
right=2pt,
bottom=2pt,
top=2pt,
fontupper={\bfseries},
#1}

\begin{document}

Employment Experience

Employment Experience

Employment Experience

\end{document}


• arc=4mm would be better... and white!90!blue... and \sffamily Nov 2 '15 at 19:01
• @StevenB.Segletes: The arc= size depends on the real content, in my point of view and is also subject to opinion. I took some arbitrary color value to show the possibilities
– user31729
Nov 2 '15 at 19:21
• I want to slightly decrease the margin for the beamer box so I can have all the text align nicely on left side. How do I override the margins just for the box so I can slightly decrease it for the box and have my text align together. Currently my text "employment experience" is slightly shifted to the right compare to other text in my resume. Nov 5 '15 at 3:20
• @DhruvPatel slightly isn't a very precise value. Change the left=... value then
– user31729
Nov 5 '15 at 6:55
• I meant to decrease box margin about half centimeter. The left = ... Moves the text to left but the box isn't moving. I want the box sides to move which isn't changing. Nov 5 '15 at 7:03