The snippet
\documentclass[png,convert={density=600}]{standalone}
\usepackage{times,fancybox,varwidth,color}
\pagecolor{cyan}
\cornersize{1}
\begin{document}
\ovalbox{\large Hello}
\end{document}
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)?
tikz
package then you can use\begin{tikzpicture} \node [draw=none, fill=cyan, rounded corners=5pt] {\large Hello}; \end{tikzpicture}
.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 liketikz
andpstricks
can manage this without problem though.tikz
, but if you are doing any serious drawings (or already knowpstricks
), resistance is futile :-).