I'm trying to get a colored background for my page numbers, and it works okay - except when I want it to show on pdf pages (which is where it's most important). This also happens on the last page of text.

This is what it should look like:

page number in box

This is what it looks like on the pdf pages:

page number in box


% http://latex-my.blogspot.dk/2009/10/setting-page-size-and-margins.html
%% The stock paper size

%% The 'real' page size

%% The stock paper will be trimmed 3mm from the
%% top edge and 3mm from the left edge

%% Spine and trim page margins from main typeblock

%% Top and bottom page margins from main typeblock

%% Header occupies height of a single line;
%% Bottom edge of footer is 7mm from bottom edge
%% of typeblock

%% Bottom edge of header is 7mm from top edge of
%% typeblock

\usepackage{bookman} % font



You can get the dummy pdf here: http://kristian.anapnea.net/mwepdf.pdf

I hope someone know what's up here as it makes very little sense to me!




pdfpages locally sets \fboxsep and \fboxrule to zero. And those settings are then used by the headers. Adding suitable values for this into the headers saves the day. It does not afect the rest as the headers are groups.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.