TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The snippet


\ovalbox{\large Hello}

generates the png image


with the help of pdflatex -shell-escape question.

How do I make the background fill just the ovalbox (while the ovalbox appears with no boundary)?

share|improve this question
If you are ok with using tikz package then you can use \begin{tikzpicture} \node [draw=none, fill=cyan, rounded corners=5pt] {\large Hello}; \end{tikzpicture}. – Peter Grill Jan 28 '14 at 18:47
I was hoping to delay reading the tikz documentation even longer, but whatever works is fine. If you are ok with my marking your answer as the correct one, but then marking another if it turns out a solution without tikz is possible, please add an answer. – Calaf Jan 28 '14 at 19:31
You also can use pstricks (and auto-pst-pdf if you do not want to go the way latex -> dvi -> dvipdf) with this line:\psframebox*[fillcolor=cyan, framearc=0.5]{\large Hello} – Bernard Jan 28 '14 at 20:38
This is not as easy with fancybox since the box is constructed using 4 straight rules (top/bottom + left/right) and four corners (upper left/right, lower left/right). There is no single structure to bound colour within. Graphics packages like tikz and pstricks can manage this without problem though. – Werner Jan 28 '14 at 20:38
@Calaf: Yep, I can understand why one would want to postpone learning tikz, but if you are doing any serious drawings (or already know pstricks), resistance is futile :-). – Peter Grill Jan 28 '14 at 21:35
up vote 6 down vote accepted

With tcolorbox?

enter image description here



\myovalbox{\large Hello}
share|improve this answer

Here is a tikz solution:

enter image description here



    \node [fill=cyan, rounded corners=5pt] {\large Hello};
share|improve this answer
My sequel question (tex.stackexchange.com/q/156406/9549) applies equally to tcolorbox and to tikz :). – Calaf Jan 28 '14 at 21:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.