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

learn more… | top users | synonyms

4
votes
1answer
63 views

How to adjust the `absolute text-height` including the header/footer/footnote (if any)

I would like to have a document of a given absolute text-height (say 20cm) (from the header to last line, including footer/footnote, if any). Currently the settings are as in the following document. ...
2
votes
1answer
49 views

\leftmark header: decreasing the distance between the chapter name and the chapter-number

After compiling the following document, it seems that there are at least two white-spaces between chapter 1 and blablabla in the header of page 3. How I can control this distance? Increasing or ...
1
vote
0answers
58 views

Decrease indentation of header text (fancyhdr) to 0.15 cm (same as \titleformat)

I'm using fancyhdr for the header. I want to decrease the indentation of the text in it (header - italic text): Now is like in the image but I would like to have the same indentation in both ...
3
votes
0answers
93 views

Turn off fancyhdr auto-spacing

Fancyhdr gives me warnings that my header height is too small, and is adding extra space at the top of some of my pages. How do I turn this off? \documentclass{article} \usepackage{fullpage} ...
0
votes
0answers
20 views

Fancystyle without header [duplicate]

My purpose is to add a custom page number in the footer and completely remove the header added with fancystyle. With the solution that I found around internet, it does remove the content in the ...
2
votes
1answer
43 views

Dictionary Style Fancyhdr Headers with Multiple Entry Commands Defined

So I am trying to create a dictionary, I have mostly everything worked out except for that signature dictionary style header where the first and last word of the page are displayed in the header. I ...
2
votes
1answer
52 views

Getting currenttitle in fancyhdr

The usual way of getting section names in fancyhdr headers is by doing: \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} However, this doesn't get subsections, subsubsections, ...
1
vote
1answer
37 views

Replicate header in the footer without regeneration

I am using the qrcode package to put qr codes in the right header of my document using fancyhdr. Each page has a different qr code in its header. I now need the same qrcode image to appear in the ...
2
votes
1answer
176 views

Complete 3-part header from fancyhdr inside a single colored box

There're other previous questions about using a color background with fancyhdr so that you get a colored header and/or footer. However, they discuss either using a different color box for each part of ...
1
vote
1answer
35 views

fancyhdr not affecting even pages in article class

I'm a newcomer to TeX so I suspect I'm overlooking something obvious but nonetheless this has got me stumped. I'm trying to set up a header which appears the same on all pages, but for some reason I ...
1
vote
2answers
107 views

fancyhdr resets geometry to adjust header heights?

I use two pagestyles fancy for the default header and plain for headers on chapter pages. These headers should have completely different heights, however, it looks like latex adjusts both header ...
3
votes
1answer
44 views

fancyhdr alphabetical chapter problem in frontmatter of book

Here a not-so MWE: \documentclass{book} \usepackage{a4wide} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{polyglossia} \setmainlanguage[spelling=new,babelshorthands=true]{german} ...
2
votes
1answer
76 views

Force fancyhdr headheight same on all pages

I'm using fancyhdr to create a header with two lines in lhead and two lines in rhead like so, \documentclass[12pt]{article} \usepackage[margin=1.0in]{geometry} \usepackage{lipsum} ...
2
votes
1answer
71 views

Remove “chapter” keyword from header

The current code for my latex document is this: \documentclass[12pt,notitlepage]{report} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} ...
1
vote
2answers
198 views

Latex Thesis Headers how to show only chapter name in all pages (two sided)

This question may have already been asked but I cannot seem to find the answer or figure this out. I am using the muthesis template to write my thesis. This gives the chapter title on even pages as ...
0
votes
1answer
49 views

Generate header of sections by keeping the page numbers at the bottom right throughout the whole document

I am using Easy thesis template to write my thesis. I want the page numbers to be at the bottom right in all pages including, \frontmatter, \mainmatter, and \backmatter. (also chapter title page) So ...
2
votes
1answer
244 views

Redefining fancyhdr for “plain” changes non-chapter pages' header/footer

Relevant definition of fancy headers and footers for all pages, followed by redefinition of the footer for chapter pages: \usepackage{fancyhdr} \fancyhead[R]{\leftmark} \fancyhead[C,L]{} ...
2
votes
2answers
350 views

Problem with fancy header

I have a problem when using the fancy header (\pagestyle{fancy}). When I include it, the text overlaps in the upper part as shown in this image: I tried to use the geometry package, but it didn't ...
2
votes
1answer
26 views

fancyhdr and long header on first page [duplicate]

I am trying to create a document with fancyhdr and a pretty long header. It works on all pages except the first page, where the text flows into the header. On the following pages the text starts after ...
3
votes
2answers
183 views

Get FancyHDR and geometry to work nicely

In the MWE, geometry is set to leave a top margin of 1cm on the top and on the back of the page. Yet, with FancyHDR on the top of that, occupy some parts of this margin and I have to manually tweak ...
2
votes
1answer
42 views

Tabular with horizontal lines inside fancyhead

I have the following code for a fancyhead \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \fancyhead[CE,CO,LE,LO,RE,RO]{} %% clear out all headers \fancyhead[C]{% ...
1
vote
1answer
64 views

How do I prevent “Contents” from appearing twice in the header when I use \fancyhdr in the book class?

In the TOC page the "Contents" title appears twice, once at the beginning and once at the end of the table of contents. This problem started when I added the "fancyhdr" commands, since headers and ...
2
votes
2answers
63 views

How to make Page X of Y in article document class?

I would like to just have a footer with "Page X of Y", but the following only works half the way for me: \documentclass[a4paper]{article} \setlength{\parskip}{\baselineskip} ...
3
votes
1answer
232 views

How to fix the top and bottom margins in Lyx in order to conform to standard ERC proposal?

I need to write a document with specific margins (well, I admit, a grant proposal). They want : The minimum font size allowed is 11 points, line spacing single. The page size is A4, and all ...
3
votes
1answer
186 views

Chapter thumb to work with Legrand Orange Book Template

This code is building from the solutions presented here. It also employs the Legrand Orange Book template. I was trying to implement the chapter thumb solution to this template but could not get my ...
2
votes
1answer
53 views

Same footer on pages

In the WE below, I was attempting to get the same footer on each page of the document (except the first page of the chapter), however, I get the footer appearing only on the odd pages. Can you help ...
1
vote
1answer
87 views

fancyhdr: how to get head ruler on pages where a chapter starts?

I am using the fancyplain page style, and still headers on pages where a chapter starts look different from headers on pages where no new chapter starts. On normal pages, fancyhdr adds a horizontal ...
1
vote
1answer
60 views

Get modified fancyhdr chapter thumb to work with a fancyhdr

In the code developed here, I was attempting to use it with a fancy header. For some reason, the "CHAPTER THUMB" code does not work as originally intended. That is, the chapter thumb does not ...
3
votes
0answers
121 views

Synctex fails for input files. Related to fancyhdr + graphicx?

I have run into a problem with the synctex option of pdflatex that seems to be related to the fancyhdr and graphicx package. Problem: Forward and inverse search between editor and PDF viewer work ...
1
vote
2answers
100 views

Center Numbering Page in Koma-Script class in LyX

I am writing my thesis in LyX, using book koma-script document class. However, I need to make some changes in order my thesis fits to my university requirements. One of them is that the page ...
0
votes
1answer
73 views

Spacing between Header and Chapter Titles

I have the following template: %Loading in the packages \documentclass[12pt]{report} \usepackage[a4paper, width=150mm, top=25mm, bottom=25mm ,bindingoffset=6mm]{geometry} \usepackage{graphicx} ...
1
vote
0answers
51 views

Numbering Chapters and header issue

I am a complete newbie to latex so I apologise if the questions asked are straightforward, I am using the document class with fancyhd, with a documentclass of report. However when producing my report ...
2
votes
1answer
148 views

Epigraph on Part Page

I used the solution given here to get a nice, customizable epigraph on a part page. However, the solution uses the command \usepagestyle{epigraph}, and because of this, the part page has a ...
2
votes
2answers
91 views

Blue box next to header (tikz)

I would like to draw a blue box next to the header but the blue box should be in the margin and not be part of the header it self. In the real document the margins are set with geometry. ...
3
votes
1answer
111 views

How do I remove “References” from my running header?

I am using fancyhdr to create a short running title for an article I'm drafting. I also need my tables and figures to be printed after the bibliography upon submission to the journal. Initially, the ...
1
vote
2answers
129 views

Page numbering incl. text (biblatex and appendix)

I have two major problems with my footer in my thesis. In my whole document, my text switch on every pages - it works perfect. But when the reader came to the last two "chapters": 1) References and 2) ...
2
votes
1answer
46 views

Tabu in fancyhdr footer doesn't span the whole footer

I've trying to make a document template. I've set up a header and footer very similar to that of the following MWE: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
2
votes
1answer
61 views

How to set top padding on image in fancyhead?

I'm using fancyhdr, with a simple logo like the one below. With MWE like the following: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} % set the font of the ...
1
vote
1answer
92 views

Inserting predefined paragraph number in page header - follow up

I am following up further on the questions in: Inserting predefined paragraph numbers in page header I was not allowed to comment on this issue so had to create a new question. @Andrew. @Sujato has ...
1
vote
0answers
33 views

Multiple page number positions in one document

I' m working on a document with multiple page number styles. The introduction consists of roman (I, II, III,...) page numbers, the actual text consists of page numbers in arabic style (1, 2, 3,...) ...
5
votes
2answers
258 views

LaTeX two different page numbers on the same page

I want to get two different page numbers on the same page in LaTeX. For example, I want to have overall page numbers in the footer and within chapter page numbers in the header. I wonder how to get ...
0
votes
0answers
74 views

fancyhdr sets wrong title in appendix

I have a problem with fancyhdr. I wanted to add an appendix at the end of my thesis, which is not supposed to have a section number, just like the references appear without a number in the table of ...
2
votes
3answers
112 views

Creating a Flipbook as overlay only on some pages

I'm writing a thesis where some images with minor changes are used. This changes would be perfectly visible if it would be possible to overlay one picture over the other and toggle both. So doing it ...
2
votes
1answer
37 views

How omit page number on some pages in fancyhdr?

Using fancyhdr how can I achieve that on specific pages the page number is omitted. For example, in the minimal example I want the page number to appear on the third page and the page number of the ...
1
vote
1answer
51 views

multiple headers and pagination in a book

For some reason I get "Table of Contents" on every odd page. The other problem being the pagination which is reset after the second edition in the main matter. Help much appreciated. Here's the code ...
8
votes
1answer
137 views

Inserting predefined paragraph numbers in page header

I am dealing with translated texts that have "paragraph" numbers which are already defined in the source, with which I must keep consistency. Hence I can't use \theparagraph to generate the numbers. ...
5
votes
4answers
233 views

Center footer wrt paper, not margins

Im writing a thesis. The requirements are 1.5in left margin and 1 in right. In addition, the page number must be in the right hand corner except on the first page of every chapter where it must be ...
2
votes
1answer
50 views

Changing header on Fancyhdr

Hello I am new to LaTeX and I am having a problem using fancyhdr package I want the header to only show the chapter number and chapter name in the center of the page and I am having issues doing that ...
1
vote
3answers
138 views

geometry and fancyhdr clash

When I try and create a custom title page, I am having to adjust headerheight because of an Image that will go there. The same image will be in the header on the normal page, but slightly smaller, ...
2
votes
1answer
180 views

Section Titles in Margin Notes

I am struggling to reproduce the following layout in Latex. I have tried using the package marginnote, and playing around with geometry and fancyhdr. I end up going around and around in circles, ...