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

learn more… | top users | synonyms

2
votes
1answer
59 views

Fancyheader cfoot overlaps with main content

UPDATED question. Here is an MWE - finally I could produce one. \documentclass{article} \usepackage{geometry} \usepackage{graphicx} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} ...
3
votes
1answer
34 views

One line header for two line section [duplicate]

In my code I have two line sections. But I want it in 1 line in header . What can I do? \documentclass{biditufte-handout} \usepackage{ptext} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} ...
1
vote
0answers
60 views

appendix counter is too large

After including more on my appendix, I got the following error: LaTeX Error: Counter to large. I've got more than 30 sides in the appendix, but after Z the acrobat shows AA, BB, ... that's ok, but ...
1
vote
1answer
86 views

Problem with utf8 adding color headers with fancyhdr

I'm making a book of poems and I'd like to add some specif style to the pages. So I use fancyhdr And everything goes right until I add \usepackage[utf8]{inputenc} This is the code I use ...
3
votes
1answer
22 views

endnotes.sty inserts unwanted text into fancy headers

I have a document that uses fancyhdr (with fancy page style enabled), and also uses endnotes.sty to create endnotes. However, the pages that have endnotes on get the text "Notes" inserted into the ...
0
votes
0answers
58 views

Use smaller \headheight in fancyhdr

When I use headers without fancyhdr, TeX is happy to use the same \headheight as is used for the text, but when I use fancyhdr, fancyhdr increases \headheight. Here is an MWE. ...
3
votes
3answers
60 views

How can I customize the plain side header with the renewcommand if parameters cause in an error

Minimal working example: \documentclass[12pt, a4paper, oneside, parskip=half]{scrbook} \usepackage{fancyhdr} \usepackage[english]{babel} \usepackage{blindtext} \pagestyle{fancy} \fancyhead{} ...
0
votes
0answers
45 views

How to have the same top/bottom margins (from the footer/header, if any) and the same left/right margins in the book class

I have the following document. Thanks to the answer http://tex.stackexchange.com/a/272591/ the absolute text-height is 20 cm (text-height+footer+header=20cm). I would that the left and the right ...
4
votes
1answer
39 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
39 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
52 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 ...
2
votes
0answers
58 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
38 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
44 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
34 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
128 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
33 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
82 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
36 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
61 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
54 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
102 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
48 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
125 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
215 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
20 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
103 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
37 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
45 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
58 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
141 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
167 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
34 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
69 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
50 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 ...
2
votes
0answers
91 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
78 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
66 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
38 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
109 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
80 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
74 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
121 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
34 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
50 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
89 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
27 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
238 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
45 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 ...