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

5
votes
1answer
110 views

Only show header if section number > 0

The current section name + chapter.section number is shown in the header. This is normal behaviour (what I want). Example: How can I remove the header text, if there is no section on the page. The ...
5
votes
1answer
222 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
313 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
73 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
178 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
132 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
287 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
379 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
812 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
1answer
3k views

How do you increase headrule length in fancyhdr?

It's pretty well-known how to increase the headrule width, but how do I increase its length (i.e. let it run into the margin).
5
votes
2answers
561 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
386 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
492 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 ...
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
244 views

header and footer in letter class newlfm

I am trying to write letters using newlfm. The first page is fine but on subsequent pages it puts bars for the header and footer but doesn't include the address, logos etc. that appear on the first ...
4
votes
1answer
1k 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
321 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
627 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
2k 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
1answer
185 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
380 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
3answers
237 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
183 views

How to get rid of the default page numbering when using `fancyhdr`

I want to put my page numbering at the right bottom by using \rfoot in fancyhdr, but everytime I use it, the default page numbering appears at the central bottom which makes the page having two page ...
4
votes
1answer
791 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
3k 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 ...
4
votes
1answer
499 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
214 views

How do I make a subsection title visible in a header on page with chapter / section

Could someone please give me a hand to correctly use \markboth{}{} within redefinition of the \sectionmark? I am struggling to apply the second parameter in \markboth. The article I am writing needs ...
3
votes
0answers
74 views

Is there a list environment with (double sided) page headers?

This question is an extension of Headers and footers for listing environment?: I have a list of objects (like tables or simply boxes) that should be vertically stacked (so it's a list) and is longer ...
3
votes
1answer
197 views

Page number in outer margin affects vertical ruler

I adapted the idea from here to place the page numbers in the outer margin. However, by doing so, the vertical ruler disappears. I first thought that adjusting the horizontal spacing parameters for ...
3
votes
1answer
140 views

Page Heading Error

I get the 'List of tables' title as a right page heading. How do I fix that? \documentclass[10pt,cleardoublepage=empty,twoside]{book} \makeatletter \def\ps@headings{% \let\@oddfoot\@empty ...
3
votes
1answer
140 views

putting the title in the header for an article

For various reasons, I need to put my name and title in the header of a LaTeX document. The reason is I have a page limit and need the extra space which is taken up by \maketitle. Does anyone know ...
3
votes
2answers
2k views

section numbers (\thesection) and names have next page's values

I have customized my headers to display section numbers and section names. However: (a) The section number (\thesection) in my header often shows up with the next page's value. (b) The section name ...
3
votes
1answer
1k views

On inverting navigation bar and footer contents

I'm using the Frankfurt theme in beamer. It includes a sort of navigation bar with (sub-)section titles and a circle per slide in each (sub-)section. I'd like to move such a bar to the bottom of the ...
3
votes
1answer
946 views

Custom slide titles in beamer

My slides have a particular PDF background and I would like to force slide-titles to appear in a particular place on each slide without a blue box underneath them. I want the \frametitle{} command to ...
3
votes
1answer
2k views

Align text and logo in footer

I can't seem to be able to align our logo and page number in the footer. I have the code below: \pagestyle{fancy} % enable fancy page style \renewcommand\headrulewidth{0pt} ...
3
votes
1answer
2k views

How to add an author name or copyright symbol on each page in memoir class?

I am using the memoir document class to write my first book in calculus. How I can display my name, for example, on each page?
3
votes
2answers
364 views

Removing footer on last pages of a chapter

Using scrpage2 with scrbook, how can I make it so that there is no footer on the last pages of a chapter (so that the white is not interrupted)?
3
votes
3answers
8k views

Header or footer of title page differs with that of main text

My purpose is that every page except title page has same header and footer. for title page, ==> it has exactly same footer with that of other page. ==> and it has completely different header with ...
3
votes
1answer
1k views

Where should I setup the markup of header/footer? In \fancyxxx or in redefinition of \xxxmark?

\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} \fancyhead[RO,LE]{\small\sf\color{black}\rightmark} ...
2
votes
1answer
57 views

Bibliography or Content page heading (problem with \chapter*{})

I'm using \documentclass{book} and I have also redefined my \chapter and \part heading styles. However, these styles do not apply to the heading of the Content page (the word "Contents") or the ...
2
votes
1answer
41 views

Problems with footer and header and pagenumbering

My problem is, that all my footers and headers are gone now :( and the pagenumber. Here the code: \documentclass{article} \pagestyle{empty}% for cropping \usepackage{microtype} \begin{document} ...
2
votes
2answers
141 views

Full header in scrbook

I want to produce full header including margin. Even page header is correct. But Odd page header does not include the margin in the left side. \documentclass[12pt]{scrbook} ...
2
votes
2answers
147 views

Parts with titlesec parts: \thepart wrong on last page of part

When using the titlesec package to customize part headers, the counter \thepart is somehow incremented before its value is used in, for example, running headers: \documentclass[oneside]{book} ...
2
votes
1answer
108 views

Fancyhdr - the header image collides with the body of the content

I am really confused. In the original document , I had a header that collides with the body of the document. Now for preparing the MWE , I removed the unnecessary packages and code segments. I found ...
2
votes
2answers
525 views

subsection font size with beamer theme Warsaw

I am trying to change the font size of subsection bar of a beamer presentation using Warsaw. I found this which is doing exactly the same for the Berlin. I tried that in my presentation with Warsaw ...
2
votes
1answer
393 views

scrartcl and fancyhdr: Strange spacing behaviour

Consider the following piece of code: \documentclass{scrartcl} \usepackage{ifthen} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{} \chead{ \ifthenelse{\equal{\thepage}{1}}{}{ ...
2
votes
1answer
637 views

tocloft package interfering with ToC page style?

I use the trick from How to get header and footer over ToC, LoF and Nomeclature? to ensure that all pages[1] (including the 1st page of the Table of Contents) have headers and footers: ...
2
votes
0answers
106 views

beamer: missing footline in version 3.28, bug or feature? [closed]

I updated my texlive distribution today. After compiling my presentation I realised, that the Boadilla theme has no footline any more. A look in the documentation shows, that nearly every theme in ...
2
votes
1answer
116 views

Problem with geometry and headers

I am trying to setup the margins such that from the top of the header text and the bottom of the footertext there is exactly 1.5cm space. I was not able to achieve this so far and I would highly ...