{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}, {scrpage2}, and {titleps}.

learn more… | top users | synonyms (2)

0
votes
0answers
62 views

Geometry on last page of document

I would like the geometry of my file to be different on the last page of the document. I have tried something like: \AtEndDocument{\newgeometry{left=0.6in,right=0.6in,top=0.6in,bottom=1.8in}} But ...
11
votes
1answer
2k views

Multiline Header/Footer?

Using LaTeX, I'm trying to make a multi-line header (using \markright), and having a somewhat difficult time doing it. I've tried: Putting a table within the header using ...
11
votes
4answers
557 views

Reference undefined in \section with amsbook

I have a section that is devoted to the proof of a theorem, and hence I used \section{Proof of Theorem~\ref{thm}} Of course, because of the headers that are capitalized, it asks for \ref{THM} when ...
11
votes
3answers
3k 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 ...
9
votes
3answers
152 views

Can I hook into the end of the document but *after* the `\clearpage`?

The code for \enddocument begins: \def\enddocument{% \let\AtEndDocument\@firstofone \@enddocumenthook \@checkend{document}% \clearpage \begingroup I'd like to put something after ...
9
votes
2answers
321 views

Stop memoir from making mathmode section names uppercase in header

I'm typesetting my thesis with memoir and in general I'm happy with the result. However, some of my section headers have math mode text like \section{The $\phi_{ij}$ matrix} which memoir comically ...
9
votes
1answer
667 views

How to force a page to be odd

How can one trick LaTeX to believe that a given page is odd instead of even? Or alternatively call the odd-page header in a previously defined pagestyle? ...
8
votes
1answer
430 views

How to change page number location on ALL pages (including chapter pages) WITHOUT fancyhdr?

Question revised: What must I do to change the page number position on EVERY page (especially for chapters) WITHOUT using fancyhdr? Background and details: I've searched now for many, many hours ...
8
votes
2answers
326 views

longtable changes the page heading

Consider the following MWE: \documentclass{article} \usepackage{kantlipsum} \pagestyle{headings} \usepackage{longtable} \begin{document} \section{First} \kant[1] % using this longtable changes ...
8
votes
4answers
3k views

How to cut a section title in the header

I redefine my headers as in the following MWE: \documentclass[12pt]{article} \usepackage{xstring} \usepackage{fancyhdr} \fancypagestyle{monstyle}{% \fancyhf{} % remove everything ...
8
votes
1answer
1k views

Auto-populate the frame titles from subsection titles

Is there a way to make \frametitle automatically take the \subsection heading? Or maybe equivalently, is there a way to make the section\subsection titles in the header larger? I am afraid the ...
7
votes
1answer
448 views

Page styles only work for \thispagestyle under afterpage

Using afterpage to set a page style after some page only works for \thispagestyle, but not for \pagestyle. Why is that? How can I make it work? \lipsum[1-20] produces 4 pages of text, Lorem Ipsum ...
7
votes
2answers
2k views

Remove page number from the first page of bibliography

I'm writing a thesis and I want to remove the page number of the first page of bibliography. I tried \thispagestyle{empty} \pagestyle{plain} but it seems not work. I am using ...
7
votes
1answer
161 views

Suppress headers and footers for complete chapter

For my thesis, I need to include a chapter which can "stand alone", meaning it must be formatted in a way that allows the pages to be exported and be published separately. This means, I need to get ...
7
votes
5answers
847 views

\pagestyle{empty} doesn't work on first page of new chapter

I have a problem with page numbering in LaTeX. I don't want any page number in my document so I used \pagestyle{empty} but every time when I start a new chapter I get a page number on the bottom ...
7
votes
5answers
1k views

How do I center text in a page heading?

I'm using \markright to create a page heading. I'm having trouble centering some text in this heading, and I'd like to know how to do this. Here's my current setup: \documentclass{article} ...
6
votes
2answers
94 views

Automatically remove ruler when no header is present

This is a question triggered by Automatically remove page number in one-page documents. When activating the fancyhdr package, it is necessary to clear the headers, which I do below with \fancyhf{}, ...
6
votes
2answers
146 views

Eliminate topspace and bottomspace in ConTeXt

Background Looking to put the page number flush to the bottom of the page using ConTeXt. The key lines in the Minimum Working Example (MWE) below are: \setuplayout[ topspace=\zeropoint, ...
6
votes
1answer
592 views

How to use short subsection title in header but not in table of contents?

I have a (onesided) document with fancyhdr and pagestyle fancy so it displays the section-title on the right header and the subsection-title on the left header. If section and subsection titles are ...
6
votes
2answers
828 views

fancyhead not in small caps

The text in my fancyhead is written in small caps. I would like to have it not in small caps. How can I do? This is my fancyhead: \usepackage{fancyhdr} ...
6
votes
1answer
864 views

First page of ToC has a page number. How to remove it?

I have a problem with the number of the page that appears on the first page of ToC (I don't want it, of course), but only when I have at last two page of ToC. When ToC takes only one page, footer and ...
6
votes
2answers
1k views

How to make custom page frame using LaTeX?

I need to make questionnaire template for automatic processing with queXF. To do this I need to produce pages like this: The queXF requirements for the pages are unique barcode for each page ...
6
votes
4answers
785 views

How to get a big table on a page with pagestyle empty?

In my document I have a table that is quite big. I would like to have this table on a page with no header and no page number. How can I get this table on a \thispagestyle{empty}? Using it withing the ...
6
votes
1answer
821 views

Change footer in beginning of chapters

I want the footer of all pages to be "Page N°X" on the right. I used this: \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear all header and footer fields \fancyhead[R]{\leftmark} ...
5
votes
3answers
118 views

Why does \maketitle change the availability of \@title?

I am trying to include the document title in a heading using scrartcl. For some reason when I call \maketitle, the \@title variable seems to be unset and all uses of it turn up empty. My document ...
5
votes
1answer
149 views

scrpage2: Three “marks” for headings

As far as I know of the \automark command (scrpage2 package), it is only possible to mark two different "header-types" (e.g. sections and chapters). I'm searching for a way to mark an additional ...
5
votes
2answers
175 views

Remove “Chapter” in header of the backmatter

In my backmatter the header appears as Chapter x: chapter-name, where x is the number (or letter if I have an appendix) of the last chapter before the backmatter. How can I make the header in the ...
5
votes
3answers
61 views

Remove footer (page number) in documents that are one page long

When I create a document that has but one page, I see no reason to have a page number in the footer. I would like to remove this. There is, however, apparently no such equivalent to ...
5
votes
1answer
160 views

different sized page numbers due to \usepackage{helvet}?

I am at the end of finishing my thesis and after printing it out for final corrections I recognized that the sizes of the page numbers differ sometimes. For example page "10" and page "11". Especially ...
5
votes
1answer
122 views

How can I put the page numbers where I need them?

I need to put the number for each page that is numbered at the top right hand corner of the document. Currently that condition is satisfied except for the first page of each chapter. That is, for the ...
5
votes
1answer
266 views

Use pagestyle within bibheading definition in biblatex

The following MWE prints a cumulative bibliography, subdivided by chapter, using biblatex. I would like to use the pagestyle called special within the bibheading definition rather than invoking it ...
5
votes
1answer
358 views

Similar header format for my company

I need to reproduce the following header format: Please help; I'm a completely starter at LaTeX or TeX. I work with LyX and this is included in the document's preamble: \usepackage{fancyhdr} ...
5
votes
1answer
706 views

Minipage in Header?

Using LaTeX, I'm trying to fit into the header a minipage containing the page number above a logo. However, The minipage is pushed out of the header into the head separation space; The distance ...
5
votes
2answers
505 views

Two types of page number in each page

In a report, I would like to place a page number at the bottom, running 1, 2, 3,... as is usually the case with a document: 1 for the 1st page; 2 for the 2nd page, ... However, in each Chapter of this ...
5
votes
1answer
356 views

Clear tableofcontents page in memoir

How do I clear the \tableofcontents page in memoir? \documentclass[a4paper]{memoir} \begin{document} \pagestyle{headings} \begin{titlingpage} \maketitle \end{titlingpage} % i need clear this page ...
5
votes
1answer
2k views

Simple footers with only a page number

I'm using a memoir template with page header defined. In the appendix, I maximize the geometry to print a lot of tables with narrow margins. I currently disable the memoir header with ...
4
votes
1answer
676 views

Customize \chaptermark for \mainmatter

Hey guys it's me again, I tried to add \leftmark to my header, but I want to change it from Chapter 1. Introduction to 1 Introduction. My MWE: \documentclass[12pt, oneside, a4paper]{book} ...
4
votes
1answer
283 views

page number does not appear on first page of bibliography

When I make my bibliography, something strange happens. If the bibliography is more than one page, the page number is not included on the first page. I want the page number on bottom-center of the ...
4
votes
1answer
782 views

No numberings, no numbers (section, chapter, subsection etc.) in header?

I am using scrpage2 with scrbook. I would like to have no numbers or numbering of sections, chapters, etc.. in the header. How can I achieve that? I have the following example: \documentclass[12pt, ...
4
votes
1answer
573 views

How to apply custom headers/footers on pages with new chapters?

I'm writing my final report in LaTeX for my bachelor's degree. I'm aiming at having a document similar to the .doc template used normally. I want to have my customs headers and footers applied on ...
4
votes
1answer
1k views

fancyhdr: putting part in fancyhdr

For my dissertation I've redefined \thechapter as \thepart because I'm only using parts, sections and subsections. With the code below I get the section as the right header but nothing on the left. ...
4
votes
2answers
2k views

Omit/delete second bar under the navigation bar in szeged theme?

The code below gives nice slides with a navigation bar on top that leads to the different sections (I have no subsections) in the presentation. However, below the navigation bar there is a second bar ...
4
votes
1answer
181 views

How to add a page number on the bottom of the first pages in table of contents, list of figures/tables and bibliography?

How to add a page number on the bootom of the first pages in table of contents, list of figures/tables and bibliography? \tableofcontents \listoftables \listoffigures \bibliography{filename} ...
4
votes
1answer
344 views

Decide placement and content of header for the references when using apa.cls

I'm using apa.cls in conjunction with biblatex. When printing the reference list, "REFERENCES" gets printed in the header, flushed to the left. However, I would like the text to be centered and to say ...
4
votes
1answer
1k views

Nomenclature as a chapter

Using nomencl I am trying to make a nomenclature at the end of my PhD thesis. But the header of the previous chapter (in this case the appendix) is printed on the second page. How can I change the ...
4
votes
1answer
449 views

How to automate a dictionary (sorting, headers)?

Here is a piece of solution to automate a dictionary using the links given in the first following comments. There are two problems to solve : When one definition starts on one page and finishes ...
4
votes
2answers
7k views

Add Footer Text to All Slides in Beamer

Is there a way to append footer text to the slides in beamer? I wanted to get rid of the default footer, but I want to add a bit of additional text. Right now I have: %gets rid of bottom navigation ...
4
votes
3answers
233 views

Saving the value of a text macro at the start of the page.

I have a macro that stores some text. I'd like to print the text of that macro as it was at the start of the page in the header, and as it is at the end of the page in the footer. I can do this for ...
4
votes
1answer
659 views

Change chapter heading and insert line at top of pages.

I'm using this preamble: \documentclass[pdftex,10pt,b5paper,twoside]{report} \usepackage[lmargin=25mm,rmargin=25mm,tmargin=27mm,bmargin=30mm]{geometry} \usepackage[comma]{natbib} \usepackage{lmodern} ...
4
votes
1answer
2k views

Footer spacing in LaTeX

I have a huge footer in my LaTeX-document (a table I need on each page), but the table is too high to be in the document even though I use \addtolength{\footskip}{-30pt} below that size the footer ...