I am trying to use the 'transparent' package, as shown in this answer:
\documentclass{article}
\usepackage{color}
\usepackage{transparent}
\begin{document}
\colorbox{red}{%
Black text in a red box %
\transparent{1.0}%
\colorbox{blue}{%
and now a blue box is added%
}
}
\colorbox{red}{%
Black text in a red box %
\transparent{0.5}%
\colorbox{blue}{%
and now a transparent blue box is added%
}
}
\end{document}
But it seems not to work with current TeX or pdflatex. Is there an approach that works with pdflatex?
Edit: After compiling a few times (from TeXMaker), suddenly I can see the tranparency, although I did not change the .tex file nor the pdflatex command. Is this a bug?


Package transparent Warning: Rerun to get transparencies right.;-) You have to run (at least) twice. – Mar 04 '16 at 13:41