Setting 0 margin in header using LaTeX's fancyhdr
        Posted  
        
            by Morten
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Morten
        
        
        
        Published on 2010-05-09T22:25:11Z
        Indexed on 
            2010/05/09
            22:28 UTC
        
        
        Read the original article
        Hit count: 252
        
latex
Hi,
I'm trying to define a custom layout for my report for which I'm using fancyhdr. On the pages which contains a chapter start I want my header to contain a colorbox spanning across the whole page (0 cm margins) although keeping my defaults margin in the text area. I can get the box to span across the "margin notes" area, but not the other side. Here's some of my code:
\fancypagestyle{plain}{ % pages containing chapter start
    \fancyhead{}
    \fancyhead[RO]{\colorbox{NavyBlue}{\textcolor{White}{\raisebox{0cm}[1cm][0.5cm]{\makebox[3cm][c]{\textbf{\CNoV\thechapter}}}}}
}
Any ideas on how to do it?
© Stack Overflow or respective owner