I am trying to make a semi transparent color framed box with \fcolorbox
. It seems that the rules that make up the frame overlap. Is there a way to make a framebox like the one shown in the MWE below but with a consistent gray color? In my real use case the box is overlaying other text so needs to be transparent. Ideally, I would be able to control the transparency of the edges and fill separately.
\documentclass{article}
\usepackage{transparent}
\usepackage{xcolor}
\begin{document}
\setlength{\fboxrule}{20pt}
\transparent{0.5}%
\fcolorbox{black}{red}{\transparent{1.0}Hello World}
\end{document}
tcolorbox
ormdframed
and theTikZ
facilities, however,transparent
does not work withtcolorbox
, but I think the cause of the overlapping is the way how the box rules are drawn