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

57
votes
4answers
33k views

How can I display a short chapter name in the header and a long chapter name in the ToC?

I am writing a book and one of my chapter has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the \chapter[short title]{long title} ...
32
votes
2answers
28k views

Creating unnumbered chapters/sections (plus adding them to the ToC and/or header)

I'm using the report document class for a thesis, and I need to add things like "Acknowledgements" and an "Introduction". I noticed that there is an \abstract command which would have been wonderful ...
36
votes
5answers
10k 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, ...
25
votes
2answers
2k views

Chapter Title in rotated vertical box at the margin

I am using the book document class. I would like to have Chapter name (Interduction, Results, Discussion, ...conclusion...) to appear in every page, in the right side small vertical (color filled) box ...
2
votes
1answer
153 views

How to use pagenumbering in the document?

In my Master thesis, I would like to have the title page without any page number and an acknowledgments section and the table of contents with roman numbers. The rest of the document should be ...
91
votes
7answers
31k 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?
32
votes
4answers
40k views

Custom first page with fancyhdr

I'm using the package fancyhdr to format my footers and headers, with my name in the header and a n of m pages format for the footer. Like so: \pagestyle{fancy} \fancyhf{} % clear all header and ...
20
votes
5answers
10k views

How to get part name in LaTeX ?

Actually I am using the fancyhdr package, and trying to put the current part name in the right header. I know that \rightmark and \leftmark are used to represent the current section and chapter ...
17
votes
2answers
3k views

Creating letters with zero-margin colored headers, in addition to the regular letterhead

I'm trying to use LaTeX for creating corporate letters. What I have found is that there are many tools to write letters, but they are mostly focused on letters of more personal nature rather than ...
14
votes
3answers
7k views

How to translate and rotate the heading of landscaped pages?

Objective How to change the heading of landscaped pages from to ? Minimal Code \documentclass{book} \usepackage[a5paper,hmargin=3cm,vmargin=5cm]{geometry} \usepackage{lscape,lipsum} ...
15
votes
3answers
1k views

How to set colored ruled margins for different pages?

I want to write a LaTeX document, and I want to have document rules (colored margins distinguishing sections and/or even/odd pages). Here is a model of what I have in mind: How can this be ...
17
votes
1answer
5k views

\pagestyle{empty} doesn't seem to work for page with \maketitle

In the LaTeX document pasted below, I still see page numbers upon compiling, even though I've included a \pagestyle{empty} command below the \maketitle command. Any ideas what I'm doing wrong? Thanks ...
1
vote
1answer
307 views

Non numbered chapter* header issue

I have a problem with the headers on the second page of my non-numbered chapter. Below is my minimal working example. Everything works but in my Introduction chapter (if I put it without a number as ...
51
votes
1answer
32k views

How to remove the top horizontal bar in fancyhdr?

When using fancyhdr, how do you remove the top horizontal rule? I do not want a header at all, just a footer. This is what I do now: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} ...
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
3answers
8k views

Chapter title in header too long

How can I format the header on every page displaying the title of the current chapter? In one of my chapters the title is too long so it is running out of the page. Here's a minimal example of my ...
9
votes
2answers
2k views

How to remove header on the page with big picture?

Can you help me to remove header from the page where is only one big picture? I tried \thispagestyle{empty} but it removes a header on the next or previous page. I don't know how to remove it exactly ...
4
votes
1answer
3k views

header and footer of the first page of every chapter

It maby be weird, I want to make header and footer for every page including the first page of each chapter, how can I do this?
13
votes
1answer
2k views

Headers and page numbers in external borders

I am trying to recreate in *TeX the same aspect that you can see in the following picture showing a document that I created a while ago with MS Publisher. As you can see, page numbers are rendered ...
19
votes
3answers
21k views

Add a new empty page

I have a .tex file which is like my main, \documentclass[spanish]{article} \usepackage{times} \usepackage{amsmath} \usepackage{graphicx} ...
13
votes
3answers
10k views

Using fancyhdr to create an image based header and footer

I'm trying to generate a latex report (via Sweave and R) where the header of the document is an image that covers everything (including the top/left/right page margin) and the footer covers everything ...
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 ...
2
votes
2answers
2k views

fancyhdr - anomalous behaviour on first page

I am having trouble typesetting multi-line headers using fancyhdr The header on the first page behaves differently than the header on subsequent pages. The first page header has no depth, but produces ...
24
votes
2answers
611 views

Breadcrumb hyperlink header

I wish to put breadcrumb navigation with hyperlinks into the header of each page. Clicking on each part, chapter, section will take you to the beginning of that part/chapter/section. I'm already ...
17
votes
3answers
9k views

When do I need invoke \clearpage manually?

I am not sure whether invoking \clearpage is necessary or redundant at many places in my input .tex files. Here I will ask you, in what condition is invoking \clearpage necessary? I hope I get a ...
11
votes
1answer
14k views

Suppress Fancy header and footer on first page only.

How to suppress the fancy header and footer on the first page? On other pages, they should be visible.
22
votes
5answers
2k views

How I can automatically add a page if the total number of pages is odd?

I need automatically add a blank page (also without document header, numbering and footer) at the end of the document, if the total numbers of pages is odd. How I can do that? And preferably without ...
26
votes
1answer
813 views

Non rectangular page geometry

I am interested in using non-rectangular page geometries for my flipbook idea (in fancyhdr with image and flowing text). The page geometry that I'm after is that the text has a little rectangle ...
23
votes
3answers
17k views

Why doesn't \pagestyle{empty} work on the first page of a chapter?

Here's a minimal case of the problem: \documentclass{book} \pagestyle{empty} \begin{document} \chapter{The first} This page has a page number\ldots \newpage \ldots but not this one. ...
7
votes
2answers
5k views

How to determine head height automatically

I'm creating three documents with three different headers, containing images or large banners. Is there a way to determine the head height automatically or even better a way to change the head height ...
20
votes
3answers
461 views

Strange behaviour with PGF/TikZ and Plain TeX output routine

I noticed a strange behavior when running PGF/tikZ with pdfTeX on my Debian box : a simple session without tikz: pdftex **\relax *Hello World *\bye do output the page number on the page footer. On ...
6
votes
5answers
4k views

Place a TikZ picture on every page

I am looking to place a picture (TikZ picture) on every page of my document. How can I do that? In essence I would like to control the placing of the image on even and odd pages. For example the ...
4
votes
2answers
505 views

Chapters and verses of current page in header

This question is linked to my other titlesec question Does any one know how to add the current segment location at the top of any particular page. What I need is the reference at the top of a ...
9
votes
1answer
4k views

geometry, fancyhdr: \fancyfoot[C]{\thepage} is not really centered

After switching from the report class to the book class and starting to use the fancyhdr package to control headers/footers, the page numbers in my footers are no longer centered. This is my fancyhdr ...
6
votes
1answer
644 views

fancyhdr plus fontsize 12pt causes varying vertical alignment of sections

Looking at the example provided in Different headers for different chapters, I noticed something strange: The vertical alignment of sections is varying. I was able to strip the effect down to the ...
6
votes
2answers
1k views

Header, footer and font customization

How can I create a default header, footer and customize the font of my LaTeX document? I wanted something like this: Default book title Chapter name ...
15
votes
1answer
5k views

Header and page numbers with pdfpages

I have a chapter of attachments which contains pdf files in this format, using the awesome pdfpages package: \chapter{Title} Lots of multipage pdfs following ...
16
votes
5answers
8k views

How do I insert text into the footline of a specific slide in Beamer?

I'm trying to insert references into a beamer footline. These references are different for each slide, so I cannot include them in the footline template - unless there is then some way to later define ...
20
votes
2answers
3k views

\pause in tikzpicture breaks footline

I've discovered that you can \pause within a tikzpicture, which works well until I switched the theme to one with a footline. I've created a "test case" that illustrates the problem. ...
19
votes
1answer
580 views

Indexing an interval of words on top of every page

Friends, I'm curious on how to do the following in LaTeX: Dictionaries have two words on the top of each page, meaning the interval of words to be found on that specific page, e.g., In the figure, ...
11
votes
2answers
678 views

How to change header to list first section on page and not last section

The standard use of header/footer is to display the chapter/section information, which normally begins on a new page. What I would like to do is to have the header show the first question that is on a ...
12
votes
3answers
7k views

Table of contents with page style empty

How can I make produce a table of contents by \tableofcontents with page style empty? It doesn't work with \thispagestyle{empty} or \pagestyle{empty}.
11
votes
2answers
7k views

How can I get no header but still get “page x of y” in footer?

I'd like to get "page x of y" in a footer on each page, and the way I've found is to use: \usepackage{fancyhdr} \usepackage{lastpage} \pagestyle{fancy} \cfoot{Page \thepage\ of \pageref{LastPage}} ...
6
votes
4answers
4k views

how to remove page numbers from first page of chapters

My report requires page numbers to start from 1st chapter 1st page. So I use \pagenumbering{arabic} just before I do \include{tex_files/chapter1)Introduction} Now I want the page counting to ...
6
votes
1answer
611 views

\pagestyle{ruled} adds superfluous text in glossary

I'm writing my thesis using the memoir package, using \pagestyle{ruled}, and have created glossaries for a glossary and an acronym list. The resulting pdf, contains the superfluous text "Glossary" and ...
5
votes
3answers
11k views

How to edit Beamer theme CambridgeUS

I have been using the beamer document class with the theme- cambridgeUS in lyx. The following code is the preamble. Now, I want to insert a hyperlink to a pdf file in all the pages by adding them in ...
17
votes
3answers
5k views

Suppress page number for a single page that only contains one large table?

I have a large table that uses up the whole space on a page. Unfortunately, the table also covers the page number, which is shining through. I don't want to split the table across two pages, hence I ...
10
votes
2answers
7k views

Fancyhdr does not apply same header/footer on chapter and non-chapter pages

I have a problem with the fancy package: I use the report documentclass and I have a chapter, a lot of text and then a new page starting with a section (or the next page has no chapter starting on ...
5
votes
1answer
2k views

How to set the chapter style in report class

When a chapter starts, it appears as, e.g., Chapter 1 Introduction and it then in upper left corner of each page in the chapter the name appears as CHAPTER 1 INTRODUCTION But I want that ...
44
votes
3answers
106k views

Headers and Footers

I want a header similar to Microsoft word that appears at the top of each page. However I do not want this on the first page. I would like to have the name of the project on the left, my name in the ...