{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
279 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
376 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
789 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
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 ...
5
votes
2answers
549 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
385 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
208 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
935 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
318 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
844 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
620 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
369 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
480 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
3answers
236 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
772 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
498 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
205 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
73 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
139 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
138 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
919 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
357 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
7k 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
39 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
127 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
137 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
100 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
486 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
363 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
588 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
105 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
108 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 ...
2
votes
1answer
639 views

Removing Headers, Keeping Page Numbers in the same time

I wrote my diploma in LaTeX using Lyx, but now I have big problem to fit the output to universities' standards. I need to remove Part/Section... title from header, I found that using: ...
2
votes
1answer
2k views

Page header alternatively author name and short title

I'm using the a4paper environment for a scientific article and I want to make headers that display alternatively author names and short title each page, while getting rid of all page numberings. We ...
2
votes
2answers
140 views

fancyhdr too long names of the sections, lines at the right and left

I am using fancyhdr for my header. The problem is, that some of my section names are too long and it looks quite stupid. I attached a screenshot. So how can I have this correctly? So it does not ...
2
votes
1answer
2k views

Force fancyhdr on table of contents page?

I'd like to have my header appear on every page except the first (title page). However, it's not appearing on the first page of my table of contents(regardless of where it appears in the document). ...
2
votes
1answer
391 views

Modify footer of first page in custom class

I know I can do \maketitle \thispagestyle{fancy} But I want my custom class that I am making (based on article) to do this for me. It already does pagestyle{fancy}, but I can't get it to change the ...
2
votes
1answer
227 views

Draft footnote changes position

I use the prelim2e package to mark a document as a draft. This package puts a draft line below the normal footer that contains for example Preliminary version – May 15, 2012. Usually this draft line ...