{header-footer} is about customizing headers and footers, i.e., choosing a page style for certain pages (e.g. empty, plain, headings) and (for the styles employed) placing information like the current section title and page number. Popular packages are {fancyhdr}, {scrlayer-scrpage}, {titleps}, and ...

learn more… | top users | synonyms (2)

1
vote
1answer
690 views

What is causing different spacing between a header and content on one page only?

I have found that for only one page (so far) the spacing between the header and content is different from the spacing on all the other pages. You can see this behavior in the images below (from pages ...
4
votes
1answer
555 views

Aligning a footer on the outside text margins

Does anybody know how to align an header/footer on the outside of the text margins? For example: \fancyfoot[LO]{\footnotesize \thepage~{\color{red}\vline}} \fancyfoot[RE]{\footnotesize ...
3
votes
1answer
4k views

How do I insert a document's title and the chapter's name into a header?

I am attempting to place the document's title on the left side of a header and the chapter's name on the right side of the header. However, I am unable to find how to use the title variable specified ...
6
votes
2answers
494 views

FancyHeader (Mis-)placement

I'm using the following settings for fancyhdr in a two-page book-derived documentclass: \pagestyle{fancy} \fancyhf{} \fancyhead[LO]{\sffamily \footnotesize \rightmark} \fancyhead[RE]{\sffamily ...
12
votes
1answer
3k views

Changing page number location

I need to do the following: For the first page of every section, the page number should be at the bottom and centered. The text should stop one "double space" above it. For all other pages, the ...
40
votes
5answers
15k views

How to remove headers and footers for pages between chapters?

To ensure that a new chapter starts on a right-hand page, the book class (and the report class with the options twoside and openright) will insert blank pages between chapters if necessary. However, ...
20
votes
2answers
4k views

How to customize headers and footers?

I'd like to modify the contents of my headers and footers - e.g., to display the current chapter and/or section title or to change the pagination alignment. How can I do that? I've noticed the ...
12
votes
2answers
395 views

Why do floats change the \mark?

The presence of floats appears to disrupt the setting of \marks, so that \topmark ends up with the wrong value. For example, consider this: \documentclass{article} \textheight 50mm \textwidth 50mm ...
120
votes
9answers
47k views

How can I add “page # of ##” on my document?

I want to add a footer to my document displaying the current number out of total number of pages. How do I do that?
18
votes
3answers
24k views

page number position

I am working on a long document in LaTeX with documentclass book. I need the page number to always be in the upper right corner of each page, even if that page is the first page of a chapter (right ...