I'm trying to put a full-width background-image under my chapter titles. So far I figured out how to achieve this, but the chapter number now appears under the background image instead of on top of it.
This is my code:
\usepackage{tikz}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\bfseries\Large\raggedleft\color{black}}
{\MakeUppercase{\chaptertitlename}%
\rlap{ \resizebox{!}{1.5cm}{\thechapter}}
{\noindent\makebox[\textwidth]{\tikz[remember picture,overlay] \node[opacity=0.9,inner sep=0pt] at (current page.south west){\includegraphics[width=1.1\paperwidth]{test}};}}
}
{10pt}{\Huge}
\titlespacing*{\chapter}{0pt}{-70pt}{180pt}
As you can see the chapter number is greyed out because of the opacity of the image:
Can anyone help me with this issue?
pgfonlayer
I think it’s called :)