{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)

4
votes
2answers
2k views

titlesec versus titling; mangling \thetitle

I want to have the chapter name and title of the document appear in the header; I know how to do that with fancyhdr and titling, one of the miscellaneous functions of the latter is to preserve the ...
5
votes
1answer
981 views

Suppress header on first page of section

I created a header using KOMA-Script. How can I suppress this header on the first page of a section?
4
votes
1answer
2k views

Roman numerals in frontmatter are skipping some numbers

I have the following document: \documentclass{article} \usepackage{titling, graphicx} \title{Title goes here} \author{Authors go here} \date{} \begin{document} \include{title} \pagenumbering{Roman} ...
3
votes
1answer
2k views

Text in the header with memoir

How do I put text in the header with the memoir class?
7
votes
4answers
6k views

How to change the formatting/font of page numbers?

So, I'm using the article class, and I'd like to make the page number smaller, and set it in a different font. I don't need to create a new pagestyle, necessarily, and I'm hesitant to do so without ...
3
votes
2answers
2k views

Text in the top-right margin on every page

I am trying to put my name in the top-right margin on every page. How could I do this?
4
votes
1answer
7k views

Times New Roman in LaTeX plus fancy header w/o page number on first page.

Below is my file. I am trying to make sure that I am in 12pt Times New Roman font. Also, I am trying to get rid of the page number on this first page without getting rid of the header. If anyone has ...
7
votes
1answer
2k views

How can I have multiple lines in a header or footer using scrpage2?

For an assignment at university I have to copy a lay-out template that is provided in Word but I want to use LaTeX. For this, I need to have two lines in the footer. How can I achieve this using ...
11
votes
1answer
4k views

header spacing trouble

I'm using the fancy header package, yet I've also adjusted all of my margins, to allow more text on each page as there is no need for the excessively large margins. I've run in to some trouble with ...
6
votes
1answer
12k views

Removing page number from ToC

How to remove the page number from the table of contents page?
13
votes
3answers
5k views

How to vertically align headers/footers in fancyhdr package?

I'm using fancyhdrpackage for headings and footers. I have defined left-header as a big image, and I want to vertically align (to the top or to the center, the default is to the bottom) the text from ...
1
vote
1answer
619 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
518 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 ...
5
votes
2answers
482 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
2k 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 ...
35
votes
5answers
9k 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
371 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 ...
88
votes
7answers
29k 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?
15
votes
3answers
21k 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 ...