Questions tagged [fancyhdr]

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

is a package which allows the creation of custom page headers and footers: it allows you to specify the contents of the left, right, and center of the header and footer on a page where \pagestyle{fancy} is in effect. If your question is about headers and/or footers more generally, there's also the tag.

Package documentation

Frequently Asked Questions

1828 questions
14
votes
1 answer

How can I customize and use the \leftmark and \rightmark commands with custom fancyhdr styles?

Question How can I put the section name in the top right header on every page of my custom style mainmatter, but without the number. I do not want any subsections: ONLY SECTIONS. Problem First of all, I have an incomplete understanding of the mark…
14
votes
1 answer

\headheight Problem

I'm using LuaLaTeX of latest TexLive 2014 on Windows 7. I want to overlap headers (page numbers) and documents. My code is as below: \documentclass[a4,…
Magician
  • 143
11
votes
2 answers

chapter heading appearing in appendix

I am using \fancyhdr package for the headings and report as a document class samplecode is given below \documentclass[a4paper,11pt]{report}…
Umz
  • 664
9
votes
1 answer

Fancyhdr, even and odd

I want to add the chapter name to the header of even pages and section name to odd. But the output show me just the name of section in every page (odd or even). In below, you can find the sample of the code, could you please help me to fix this…
hayder
  • 93
8
votes
2 answers

How to put fancy header on all pages except the first page?

I am trying to put fancyhdr custom style on all pages except first one, but it either shows up on all of them, or on none, I can't make this style to go from second page, im new to latex, so any help is welcome.
7
votes
2 answers

Make fancyhdr reproduce exactly the standard configuration

Which arguments make fancyhdr reproduce exactly the standard page layout when using the book document class? The standard layout of fancyhdr introduces upper and lower bars, it capitalizes the names of sections and chapters, it adds 'Chapter' in…
shuhalo
  • 2,545
7
votes
1 answer

Get sectionmark in fancyhdr without chapter number

I have been trying to get this done for hours, but I can't get it to work. I want the left header in my document to appear as the name of the chapter, no numbers. The right one (the one causing trouble) to be the section number + the section…
Álvaro
  • 173
6
votes
1 answer

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…
user50624
5
votes
2 answers

Putting the first and the last values of a counter on a page at the header

I use a counter for my Questions. I use fancyhdr. I need to show the first and last values of the value of the counter on a page at its header. In the following example, Page 2 header should read: Questions: 1-2 Page 3 header should read: Questions:…
5
votes
2 answers

Choosing \firstmark and \botmark with \leftmark?

I'm very new to LaTeX, and I'm having a terribly difficult time understanding the marking system. I'm not really grasping what The LaTeX Companion and the fancyhdr manual are saying. I'm creating a book type document that contains chapters and…
Nick
  • 675
5
votes
1 answer

Add chapter number in roman numbers using fancyhdr

I am trying to add the chapter number to the footer using fancyhdr. What I would like to do is have the chapter number in roman numbers and the page number in arabic together like so: VI - 8 This is the code I have right…
ruben1691
  • 543
4
votes
2 answers

New date for every section using fancyhdr

I'm using the report format and would like to a new date to appear on the right header of each section (I can input these dates manually). My knowledge is very basic, so far I have managed to set this in the preamble but I only know how to produce…
Lauren S
  • 147
4
votes
2 answers

\pagestyle{fancy} doesn't work after applying \pagestyle{plain}

Consider the following example, if the plain page style has been modified with \fancypagestyle, then \pagestyle{fancy} doesn't work if one has applied \pagestyle{plain}…
Jinwen
  • 8,518
4
votes
2 answers

How to do alignment between objects in header with fancyhdr?

These two objects are in the header, but I can not align the line so that it is at the bottom of the box. The line and an image, it has this degrade in the left part, is it possible to make a line with degrade in the latex? Is it possible to…
4
votes
1 answer

Set footer height

My header logo is about 3,5 x 6cm. The footer logo is about 3 x 20cm. The header is shown on the correct place, but the footer is not shown at all. How should I change the geometry so that the footer is…
1
2 3
12 13