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

learn more… | top users | synonyms

3
votes
1answer
29 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 ...
1
vote
1answer
60 views

Different headers with page number in odd and even pages

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' ...
2
votes
0answers
50 views

Changing header style in Report

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 ...
0
votes
1answer
17 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
43 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 ...
1
vote
1answer
26 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
1answer
20 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
50 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} } ...
1
vote
1answer
34 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
23 views

Why Subsection at top-bar in fancyhdr?

Code \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \rhead{\textsc{Department}} \cfoot{\thepage} \begin{document} % \section{Objective Data} % nothing at left top when this ...
3
votes
1answer
69 views

Unbalanced multicolumn environment + wrapping footer results in footer moving

When using an unbalanced multicolumn (multicols* environment) and my footer has a parbox with text that wraps, the footer moves upwards. Anyone know why this is happening and how I can have it not ...
1
vote
1answer
33 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
676 views

Glossaries and custom section headings broken

I've a document, where I use the glossaries to manage acronyms for me. Sometimes, I use a \gls{} command inside a section heading, and I have defined page headers to have the current section heading. ...
3
votes
1answer
29 views

Using `fancyhdr` with two pagestyles

I am writing a long article but still with the article class. I want to redefine my headings using this preambule : \documentclass[12pt,a4paper,twoside]{article} \usepackage[utf8]{inputenc} ...
5
votes
1answer
37 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 ...
3
votes
1answer
29 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 ...
3
votes
2answers
60 views

Header/Footer formatting on Title page

I've spent the best part of an hour trying to make a footer/header on my title page and I'm getting so frustrated, any help appreciated. I just need my university name at the top and my supervisor at ...
2
votes
1answer
23 views

How to add logo to footer of fancy page and place it depending on odd or even page?

I use a fancyfoot of the fancyhdr package and let the footer text align left or right depending on the page number (odd or even). \usepackage{fancyhdr} \pagestyle{fancy} \fancyfoot[LE,RO]{footer ...
2
votes
1answer
37 views

How can I split Biblatex's \printbibliography over multiple pages, with different styles?

I am working on Latex document totalling 360 pages for group coursework at University. Part of the coursework, is that we have to have each of our names on each page, to which we contributed. I am ...
3
votes
2answers
51 views

Non-bold math in header with fancyhdr?

MWE: \documentclass[12pt,a4paper]{report} \usepackage{fancyhdr} \usepackage{etoolbox} \makeatletter %this is a hack to get the math in titles bold & italic, but not bold in table of contents ...
1
vote
1answer
26 views

Vertical line in footer problem with chapter (fancyhdr) [duplicate]

This is practically a follow-up to this question. The solution there works great for an article, but does not work with chapters, i.e. with report or book classes. As you can see here on the first ...
20
votes
6answers
11k views

How to get part name in LaTeX ?

Actually I am using the fancyhdr package, and trying to put the current part name in the right header. I know that \rightmark and \leftmark are used to represent the current section and chapter ...
1
vote
1answer
28 views

Customizing page numbering by subtracting a number

I want to start new page numbering like \thepage-11. \fancyhead[R]{Annex- \thepage-11} Would appreciate if one help me for this. Thanks
2
votes
0answers
65 views

fading tikz fancyhdr problem in book printing

I recently had a book printed, where I used fading lines in the header. In the PDF it looks correct, bu in the actual print, the lines on the left pages didn't fade as much as the lines on the right ...
43
votes
4answers
57k views

Custom first page with fancyhdr

I'm using the package fancyhdr to format my footers and headers, with my name in the header and a n of m pages format for the footer. Like so: \pagestyle{fancy} \fancyhf{} % clear all header and ...
14
votes
2answers
21k views

Suppress Fancy header and footer on first page only.

How to suppress the fancy header and footer on the first page? On other pages, they should be visible.
14
votes
2answers
15k views

Fancyhdr does not apply same header/footer on chapter and non-chapter pages

I have a problem with the fancy package: I use the report documentclass and I have a chapter, a lot of text and then a new page starting with a section (or the next page has no chapter starting on ...
1
vote
1answer
58 views

Long title problem with fancyhdr and titlesec

I have the same problem as How to use short subsection title in header but not in table of contents?, and the solution given works almost well. The difference is that also use the package titlesec. ...
2
votes
1answer
20 views

My page number is disapearing after page 1

I'm writing a document in latex with two logos in the header and a custom page number in the bottom right. The problem is that although the header is displayed correctly, the footer on the second page ...
1
vote
1answer
54 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] ...
12
votes
1answer
3k views

How to use short subsection title in header but not in table of contents?

I have a (onesided) document with fancyhdr and pagestyle fancy so it displays the section-title on the right header and the subsection-title on the left header. If section and subsection titles are ...
0
votes
0answers
27 views

How to automatically generate names of sections in head part of fancyhdr?

I need to ask you a question, I want to make my fancyhdr to automaticly put the name of the section in the left corner, and the name of subsection of the same page on the right side of the head part ...
2
votes
1answer
18 views

Title page header also leaves space on other pages.

When trying to put a logo at the top of my title page, it somehow leaves space for the logo on all other pages as well. This means all text is shifted down, while this should only happen on the title ...
1
vote
1answer
115 views

Section title opposite to the logo

Could you please advise me how I could change that code from this link to place the section title opposite to the logo? I am new in LaTeX and I would be very grateful for advice. For example: 1st ...
2
votes
1answer
62 views

Insert the number and name of the section in the header, (including on a chapter's opening page)

By using fancyhdr, I want to get the section name and number in the header of pages and if relievant also the chapter name. To be CLEARER, The question goes to : How to put on the header of the ...
1
vote
2answers
72 views

Vertical line in footer and header

I want to make my footer and header look like this beautiful apple manual. I think, I should use the fancyhdr package. But, I need an example to see how I should use it in this case (for vertical ...
0
votes
0answers
28 views

Article headers

I have a problem with article headers. I am almost always writing reports, but now I decided to write a article, because I think I could make the design of my latex document look better . So I want my ...
4
votes
3answers
132 views

How to align a picture in a 2 lines fancyhdr header

I use fancyhdr to create my header, i have this code: \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{lastpage} \fancyhead[L]{\includegraphics[width=1cm]{logosmall.jpg} \textbf{Title of my ...
7
votes
4answers
1k views

Use of shaded box for section numbering only?

I have been wondering "how to get shaded box for section numbers only"? Also, How to get grey square in between left mark and page number in the header? In code below I can get solid black square. I ...
0
votes
1answer
32 views

How to use fancyhdr and \begin{titlepage} concurrently

Im writing a thesis in Latex and am trying to create a title page with a the fancyhdr package. However the right header Swinburne University of Technology (Sarawak Campus) refuses to appear on the ...
2
votes
0answers
57 views

Headers and footers with Logo input

In the MWE below, the logo top left is making some trouble as of it is size I assume. Due to the small margins top and bottom "20mm" its pushing the page number too low. Is there a way this can be ...
1
vote
1answer
36 views

Can't change the colour of the line in the header (fancyhdr)

I'm trying to change the colour of the line in my header to the grey, and I don't know how to do it correctly. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} % ...
3
votes
1answer
31 views

How can I calculate the correct offset for fancyhdr when using geometry to change layout?

I have a document with the following configuration: a custom layout is defined using geometry in the preamble; custom headers/footers are defined using fancyhdr in the preamble; an alternative ...
2
votes
1answer
23 views

Can't create a custom first page footer

I am trying to create a footer in an article for the first page only, while the rest of the pages are supposed to contain a header and page number at the bottom of the page. Here's the code I use: ...
1
vote
1answer
43 views

How to Change Header Footer font and Color in XeLatex

I need to change the Header Footer in Latex which need to be compiled in XeLatex. Header - Green using Lato-Light font Footer - Red using Raleway-Light font Here is the link to the MWE. Fonts are in ...
1
vote
1answer
21 views

Pagenumber in first page when using fancyhr package

My problem is, I want numbering on first page, but it always starts from page 2, and I don't know how what I have to change in order to having the page number on the first page, this is what I have: ...
1
vote
1answer
56 views

Formatting with fancyhdr [closed]

I need a special formatting for my document which it class is (article). The first page has: special header and NO footer header contains image on the right and text on the left and both on the ...
0
votes
0answers
24 views

how add a fancyhdr.sty file to LYX

Am using LYX on wndows8 to create LATEX documents. When i compile my code a file named fancyhdr.sty is required. Some one here can help me on how i add this file. Thank you for responding me.
2
votes
1answer
89 views

Small Capitals in ToC Header (and LoF/LoT)

How can I change the header of ToC by using the solution given by @Bordaigorl here? I want small capitals, like in abstract, chapters and appendix in my example. The same problem is for LoF and LoT. ...
2
votes
1answer
22 views

Switch defined header during bibliography pages

In the code below, I typically start the bibliography on a new page. I would like to be able to display "Bibliography", instead of the previous section number and name on the header, anytime the ...