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

learn more… | top users | synonyms

1
vote
2answers
23 views

Place theorem number *before* theorem label in page header?

In the accepted answer to Put current theorem-like item's name/number in header, it is shown how to put in the page's header the label of the (last-on-page) theorem, lemma, etc. For example, if ...
3
votes
1answer
36 views

How to span header/footer text to all fields

I'm utterly fed up with M$ Word behaviour and writing a template of the research report based on fancy and shining Word template. I'm using fancyhdr package to tune the header and footer. The ...
4
votes
2answers
43 views

Redefine moderncv header, headheight

I am writing a curriculum vitae at the moment using the moderncv package for this. However, I would like to use the header on every single page. While on the first page, I want to use the option to ...
3
votes
1answer
57 views

Put current theorem-like item's name/number in header

I'm using the amsthm and fancyhdr packages with the book LaTeX document class. All theorem-like items (theorem, lemma, definition, exercise, etc.) are numbered consecutively within each chapter (via ...
0
votes
1answer
21 views

Can't make fancyhdr work with pandoc + yaml header

I am trying to convert my document from Markdown to PDF using Pandoc. At the beginning of my Markdown file, I have included an YAML header. Every parameters seems to be processed, except header-...
1
vote
1answer
26 views

biblatex fancyhdr inconsistency

In the following MWE the chapter title in the header gets set \smallcaps which is defined as \renewcommand{\smallcapsspacing}[1]{\textls[50]{##1}}% \newcommand{\smallcaps}[1]{\smallcapsspacing{\...
1
vote
0answers
43 views

Want \section* to change the page header?

I have several numbered sections followed by an unnumbered section. However, the page headers for the unnumbered section are continued from the last numbered section. I am using fancyhdr with the ...
0
votes
1answer
25 views

Can't apply color inside fancyfoot, setmainfont overwrites it

I'm using fancyhdr package and have this tex file: \documentclass[a4paper]{testcv} \usepackage{fontspec} \usepackage[russian]{babel} \footersection{\today}{Footer text}{} \begin{document} Page text ...
0
votes
0answers
19 views

Aligning fancyheader with text margins [duplicate]

I have an issue with my header text not being aligned with my text margin. I use the following code for adjustment of margins and headers. \geometry{inner=3.0 cm,outer=2.5 cm,top=1.10in,bottom=1.5in} ...
0
votes
0answers
17 views

How to remove header from the last page of each chapter? [duplicate]

I use fancyhdr package to make a header for a book. The last page of each chapter of this book is blank. I want to not have the header on this page. I tried \pagestyle{empty} \chapter{Second Chapter}...
2
votes
1answer
66 views

How to add the copyright notice at the left of the footer on the first page and add the conference name at the center of the Header?

\maketitle \thispagestyle{fancy} \chead[H]{2016 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM)} \lfoot{IEEE/ACM ASONAM 2016, August 18-21\\2016, San ...
3
votes
2answers
38 views

How to change the color of the foot page using fancyhdr package?

I'm using "facyhdr" to add a footer on all my pages, and I also use the extension "etoolbox" to color it, but the problem is that it also color the page number, do you know how to color only the ...
2
votes
1answer
28 views

I want only the section name in my header, not the section number

I have a problem regading fancy headers. I want to have the section name only in my header, but when I am using the following code I get the section number as well: \pagestyle{fancy} \fancyhf{} \...
0
votes
0answers
25 views

fancyhdr fighting style code [duplicate]

I needed to move my page numbers from top center to bottom center. I used the fancyhdr package to move them, but something about the style code prevents the numbers from moving only on the table of ...
1
vote
1answer
42 views

How to add a Figure in header embedded in an interrupted line?

How do I add a figure in my header that will look like this, where the line at the bottom of my header starts on the left is 1 cm long has a gap of 3 cm for the figure and the line continues for the ...
2
votes
2answers
54 views

Section Number without name in header

I am using the fancyhdr package to customize my header and would like to display it with the section number, but without the section name, i.e. : ______________________________________________ | ...
1
vote
2answers
29 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
18 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
26 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
56 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
37 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
44 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
51 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
70 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
23 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 ...
6
votes
2answers
46 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
31 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
51 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
98 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
40 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
83 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
38 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
2answers
41 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
30 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
22 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
46 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
38 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
31 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
39 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
27 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
84 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
31 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
56 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
61 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
38 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
59 views

Changing header style in Report [on hold]

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
41 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
42 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
45 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 ...