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

learn more… | top users | synonyms

1
vote
1answer
44 views

Header layout for multilines title using fancyhdr

My current header looks like this. The second line of the header is touching the dividing line. My question is how to move the text upwards or the dividing line downwards so that the format looks ...
2
votes
1answer
182 views

Different positions of headers and footers in different pages

I could not figured out why I'm getting different positions of headers and footers in different pages (please see MWE below). Any help in this regard will be highly appreciated. Thanks \documentclass[...
1
vote
2answers
24 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
58 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 ...
2
votes
1answer
73 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
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} \...
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
1answer
44 views

How to move a header to the extreme top of the page?

I have a image as footer: \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \fancyhf{} \usepackage{lipsum} \setlength\headheight{26pt} \fancyhead[L]{\includegraphics[width=...
4
votes
2answers
44 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 ...
1
vote
1answer
126 views

Alignment problem with fancyhdr for a report page layout

I am trying to define a base class for some reports to share the same page layout. I use the fancyhdr package for creating the header and footer but I am experiencing some vertical alignment problems. ...
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 ...
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 ...
0
votes
1answer
143 views

fancyhdr and headings in table of contents, bibliography and so on

I want to change the headings in my document with fancyhdr in my document to be bold and lower case: This is quite easily done by using fancyhdr: \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} ...
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
67 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
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{...
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
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. : ______________________________________________ | ...
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{} \...
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 ...
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 ...
9
votes
3answers
3k 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 ...
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{...
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 ...
1
vote
1answer
69 views

Different headers with page number in odd and even pages [closed]

Does anyone know how to put number and header in the same side but in the odd pages be placed left and in the even pages right? The main problem is that the headers are different e.g 22 'titleA' (left)...
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
52 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
71 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 ...
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 ...
3
votes
1answer
35 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. ...
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} \...
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=...
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
2answers
42 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 ...
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
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{...
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 ...
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 ...