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

## 1 Answer

Perhaps something like this:

\documentclass{article}

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

\newtcolorbox{shadedcvbox}[1][]{enhanced jigsaw,colback=white!60!blue,boxrule=0pt,arc=2mm,auto outer arc,boxsep=0pt,coltext={blue},#1}

\begin{document}

\begin{shadedcvbox}
Employment Experience
\end{shadedcvbox}

\end{document}


Update

\documentclass{article}

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

\newtcolorbox{shadedcvbox}[1][]{enhanced jigsaw,
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}

\begin{shadedcvbox}
Employment Experience
\end{shadedcvbox}

\begin{shadedcvbox}[colback=yellow!80!white,coltext={red},drop fuzzy shadow={yellow!80!black}]
Employment Experience
\end{shadedcvbox}

\begin{shadedcvbox}[interior style={left color=blue!20!white, right color=yellow!50!white}]
Employment Experience
\end{shadedcvbox}

\end{document}


• arc=4mm would be better... and white!90!blue... and \sffamily – Steven B. Segletes 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. – Dhruv Patel 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. – Dhruv Patel Nov 5 '15 at 7:03