{fancyhdr} is a package which allows the creation of custom page headers and footers.

learn more… | top users | synonyms

0
votes
2answers
18 views

Customising left/right page headers

I'm completely new to using headers and am struggling to understand the options of the packages I'm using. I took this header setup from a friend: \documentclass[11pt,onecolumn]{book} \usepackage{...
1
vote
1answer
14 views

How to remove the top Rule of the page in Fancy page style?

I'm writing a document using fancyhdr package and I need to remove the rule of the top of the page, How could I do that? The minimum example follows: \document[10pt]{article} \usepackage{fancyhdr} \...
3
votes
1answer
20 views

Fancyhdr custom header failing for appendices

let me preface this with saying I don't fully understand fancyhdr. I am trying to achieve getting the same header on every page: the left top showing the chapter number, section number and section ...
3
votes
2answers
43 views

Changing fancyhdr for a few pages

I am writing a book with several parts and chapters that has a general introduction. I defined a header style for most of the book, that I can easily locally disable for a few pages with \pagestyle{...
0
votes
1answer
29 views

Removing Fancy pagestyle header

How can I make it so that the header text and header line disappear on pages where a new section starts, i.e. when I use \section? To be clear, I would like to footer to remain, so \fancyhf{} does not ...
3
votes
1answer
38 views

Fancyhdr sets wrong headheight

I am having some issues with fancyhdr setting my \headheight. The package seems to add too much \headheight. This is my current set up: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[...
2
votes
1answer
37 views

Table of contents pagestyle

Consider the following MWE: \documentclass[a4paper, twoside, 11pt]{report} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \fancyfoot{} \renewcommand{\sectionmark}[1]{\markright{\...
0
votes
1answer
68 views

overfull \vbox warning in table of contents, TOC doesn't break to a new page

I'm having the overfull \vbox problem in TOC. As you can see in the following image there is an overwrite on the footer. The warning I get is: "Overfull \vbox (188.96039pt too high) has occurred while ...
1
vote
0answers
18 views

Exclude chapter 0 from fancyhdr footer

I've run into a problem using the package fancyhdr, if you look at the left side of the footer, it says "Kapitel 0" which I want to remove for chapter 0 exclusively. Chapter 0 contains TOC, table of ...
5
votes
2answers
39 views

header with logo on first page only of documentclass article

I am writing an article with a header on the first page only; the header includes a logo. Here is a MWE using fancyhdr: \documentclass[a4paper]{article} \usepackage{fancyhdr,graphicx} \usepackage{...
0
votes
1answer
30 views

Add footer info to a .sty or the .tex itself?

I can add footer information with the fancyhdr package: \documentclass{article} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} \lfoot{\copyright\hspace*{.1em}\the\year\hspace*{.1em}This ...
3
votes
1answer
34 views

How to specify an absolute distance between (header) text and the start of the (header) line?

Currently I am trying to align the text of the header with the main text, while the page number is shifted 25 pt into the margin (see image). I have tried different things, like using the \tabto ...
4
votes
2answers
45 views

Text shifts into the header when using `fancyhdr` with `todonotes`

I am currently writing a KOMA-article document in Latex (Lyx) and discovered the following issue: In order to show comments in pdf I tried the pdfcomment package and the todonotes package. ...
0
votes
1answer
83 views

Header problems

At the moment, I am trying to enhance the layout of my thesis. I want to include a header, in which the subsection title is on the right side. But it should only appear at the pages that do not start ...
5
votes
0answers
39 views

Special plain header gets deleted by editing font size in doc

After reading on this website, I have created a header on the first page that is different from the rest of the pages headers writing this in the preamble: \documentclass[twoside,12pt]{article} \...
1
vote
1answer
68 views

Right Align Page Number — problem using fancyhdr and \AtBeginShipoutNext

I've tried so many methods but nothing seems to work. I want to right align the pages only after the content page. I also keep getting a line above the cover page that I don't need. Is the code neat? ...
0
votes
0answers
33 views

Rule with fancyhdr

I am using the following code to produce a header that contains a text a line below it and a box with the page number on the side: \fancyhead[LE]{\vbox{\hbox{\vbox{\hbox{\thickheaderfont \thepage{}\...
0
votes
0answers
23 views

Only second page of table of contents is empty

I am using the fancyhdr package to create some nice looking headers. The problem is I want them to start after my table of contents. So I did some research and I found out that I should use: \...
0
votes
2answers
40 views

How to remove header from frontmatter

I have a header created with fancyhdr. It repeats on all the pages including Table of Contents and Preface sections. I tried to use \thispagestyle{empty} but it only works on the first page while I ...
0
votes
0answers
29 views

Border spacing in fancy header

I am using the 'fancyhdr' package. I have both text and images (one in header one in footer). There seems to be some padding / spacing around the text and images. I cannot see where this is coming ...
0
votes
1answer
18 views

The footer is moving up in LaTeX

Sometimes, the footer goes up in some pages. So here is the page where I have the problem : And here is the page that comes just after, and with a normal footer : I am using the package ...
0
votes
0answers
43 views

Logo in page header gets replaced by arbitrary picture from the document

I use fancyhdr and graphicx simultaneously in a document. In a more or less empty document I set a logo in the page header like this (once right after \begin{document}): \lhead{\includegraphics[width=...
2
votes
1answer
30 views

Authors' names in a header and footer

I am using the authblk package together with the fancyhdr package in an article class document. Here is the MWE: \documentclass[12pt,a4paper]{article} \usepackage{cmap} \usepackage{...
2
votes
2answers
29 views

Customizing layout using hdr in double sided document

I am trying to set custom styles at different places in the document, e.g. first couple of sections no page numbering, while the rest follow common page number and header styling. Running the sample ...
3
votes
1answer
34 views

Problems with positioning footers using fancyhdr

I'm having a problem placing footers on my document. On the first page it shows ok, but in the next pages it doesn't show at all. A bit of thinkering made me realize that the footer was indeed ...
0
votes
1answer
22 views

margin below of the footer differs about 1cm in dinbrief than in moderncv

I simply want my moderncv document have the same foot margin as my dinbrief document. However, when i print both and measure the gap between the footer and the end of the paper, the gap differs in ...
1
vote
2answers
57 views

Retrieve only chapter name in fancyhdr

In the tufte-book document class, I am having a hard time figuring out how to insert the chapter name in the header of right odd-numbered pages with the fancyhdr package. Something like: Chapter ...
2
votes
1answer
25 views

Appendix name in the headers and in TOC

My problem is quite simple : I want to have a TOC like that : Chapitre 1 - Some chapter title Annexe A - Some appendix title but I get : Chapitre 1 - Some chapter title Chapitre A ...
2
votes
1answer
52 views

Include a package in one chapter only

I have this package that removes the header from the pages \fancypagestyle{noheadrule}{ \fancyhf{} \renewcommand{\headrulewidth}{0pt} \fancyhead[LE,RO]{\thepage} } \pagestyle{...
1
vote
1answer
45 views

Fancyhdr and redefinition of leftmark/rightmark

I am writing a long document and I decided to change the headers, using fancyhdr : \documentclass[12pt,a4paper]{book} \renewcommand*\thesection{\arabic{section}} \usepackage{fancyhdr} % Fancyhdr ...
1
vote
1answer
31 views

Article class letterhead with logo on first page and different margins on second page

I've been struggling with this for a couple of days. I can't find a good solution for making this letterhead. I want to have the text justified as on the guidelines, but only on the first page: So it ...
2
votes
0answers
56 views

Changing header style in Report

I am using LyX and I am writing my thesis using the report class (two-sided). I put in Latex preamble the following code: \fancyhf{} \fancyhead[LE,RO]{\thepage} \fancyhead[LO]{\footnotesize \...
1
vote
1answer
34 views

change the color of the footer in the first page of the fancy

I am using this to change the color of the headers and footer of the chapter pages in the fancy page style, which I got from another post. \usepackage{etoolbox} \makeatletter \...
3
votes
1answer
34 views

How to Test for Page Style Inside eso-pic

I'm having trouble implementing this solution inside eso-pic: If pagestyle equal to... -- How should I ask it? It looks like \thepagestyle is coming out equal to "fancy" on every page, including ...
5
votes
1answer
39 views

How to add markers to each page with the number of the first and last numbered environment/equation which appear in the page?

I would like to know if it is possible to achieve the following dictionary-like functionality: Add markers to each page with the number of the first and last numbered environment/equation which ...
2
votes
1answer
27 views

How to add logo to footer of fancy page and place it depending on odd or even page?

I use a fancyfoot of the fancyhdr package and let the footer text align left or right depending on the page number (odd or even). \usepackage{fancyhdr} \pagestyle{fancy} \fancyfoot[LE,RO]{footer ...
2
votes
1answer
42 views

How can I split Biblatex's \printbibliography over multiple pages, with different styles?

I am working on Latex document totalling 360 pages for group coursework at University. Part of the coursework, is that we have to have each of our names on each page, to which we contributed. I am ...
1
vote
1answer
25 views

Why Subsection at top-bar in fancyhdr?

Code \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \rhead{\textsc{Department}} \cfoot{\thepage} \begin{document} % \section{Objective Data} % nothing at left top when this ...
3
votes
2answers
53 views

Non-bold math in header with fancyhdr?

MWE: \documentclass[12pt,a4paper]{report} \usepackage{fancyhdr} \usepackage{etoolbox} \makeatletter %this is a hack to get the math in titles bold & italic, but not bold in table of contents \...
1
vote
1answer
35 views

Vertical line in footer problem with chapter (fancyhdr) [duplicate]

This is practically a follow-up to this question. The solution there works great for an article, but does not work with chapters, i.e. with report or book classes. As you can see here on the first ...
1
vote
1answer
29 views

Customizing page numbering by subtracting a number

I want to start new page numbering like \thepage-11. \fancyhead[R]{Annex- \thepage-11} Would appreciate if one help me for this. Thanks
2
votes
0answers
72 views

fading tikz fancyhdr problem in book printing

I recently had a book printed, where I used fading lines in the header. In the PDF it looks correct, bu in the actual print, the lines on the left pages didn't fade as much as the lines on the right ...
2
votes
1answer
21 views

My page number is disapearing after page 1

I'm writing a document in latex with two logos in the header and a custom page number in the bottom right. The problem is that although the header is displayed correctly, the footer on the second page ...
1
vote
1answer
61 views

Custom header: [E] \chaptername \thechapter [O] \chaptermark

I'm new here and I'm into headers with package fancyhdr. My request is: I want on even pages, CHAPTER NUMBER, in the odd pages CHAPTERTITLE. So in a way like: [E] \chaptername \thechapter [O] \...
1
vote
1answer
65 views

Long title problem with fancyhdr and titlesec

I have the same problem as How to use short subsection title in header but not in table of contents?, and the solution given works almost well. The difference is that also use the package titlesec. ...
3
votes
1answer
33 views

Using `fancyhdr` with two pagestyles

I am writing a long article but still with the article class. I want to redefine my headings using this preambule : \documentclass[12pt,a4paper,twoside]{article} \usepackage[utf8]{inputenc} \...
0
votes
0answers
28 views

How to automatically generate names of sections in head part of fancyhdr?

I need to ask you a question, I want to make my fancyhdr to automaticly put the name of the section in the left corner, and the name of subsection of the same page on the right side of the head part ...
2
votes
1answer
20 views

Title page header also leaves space on other pages.

When trying to put a logo at the top of my title page, it somehow leaves space for the logo on all other pages as well. This means all text is shifted down, while this should only happen on the title ...
2
votes
1answer
74 views

Insert the number and name of the section in the header, (including on a chapter's opening page)

By using fancyhdr, I want to get the section name and number in the header of pages and if relievant also the chapter name. To be CLEARER, The question goes to : How to put on the header of the ...
0
votes
0answers
28 views

Article headers

I have a problem with article headers. I am almost always writing reports, but now I decided to write a article, because I think I could make the design of my latex document look better . So I want my ...