I am trying to set a semi-transparent background for some text, so we can see the image behind it. To do so, I am using tcolorbox
. However, it seems that I can not get it working with the leaflet
document class.
Any suggestions?
\documentclass[10pt,a4paper]{leaflet}
\usepackage[many]{tcolorbox}
\newtcolorbox{mybox}[1][]{
width=\textwidth,
arc=2mm,
% auto outer arc,
boxsep=0cm,
toprule=0.5pt,
leftrule=0.5pt,
bottomrule=0.5pt,
rightrule=0.5pt,
colframe=black,
colback=white!25,
breakable,
nobeforeafter,
enhanced jigsaw,
opacityframe=0.1,
opacityback=0.5
}
\AddToBackground{1}{\put(0,415){\includegraphics[width=9.9cm]{example-image-c}}}
\begin{document}
\begin{mybox}[]
\begin{itemize}
\item a
\item b
\item c
\item d
\end{itemize}
\end{mybox}
\end{document}