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

learn more… | top users | synonyms

1
vote
1answer
16 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
2answers
43 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
19 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 ...
1
vote
1answer
27 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
56 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 ...
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
41 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
52 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. ...
3
votes
1answer
27 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} ...
0
votes
0answers
26 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
17 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 ...
2
votes
1answer
49 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 ...
0
votes
0answers
27 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 ...
1
vote
2answers
61 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 ...
4
votes
3answers
127 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 ...
3
votes
1answer
52 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 ...
0
votes
1answer
31 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 ...
3
votes
2answers
48 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
0answers
53 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
51 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' ...
1
vote
1answer
31 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
28 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
20 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
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: ...
0
votes
1answer
36 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 ...
0
votes
0answers
19 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.
1
vote
1answer
53 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 ...
2
votes
1answer
20 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 ...
1
vote
0answers
30 views

Inconsitent footer position with multicols

A footer created with fancyhdr in combination with multicols is placed at different vertical positions depending on - as far as I have been able to isolate the issue - wether the page is full or not: ...
0
votes
0answers
30 views

why usepackage{fancyhdr} does not apply when I use \chapter*{title}?

I have a problem with the fancyhdr package: I use the book documentclass and I have a chapter which is defined like this: \chapter*{Introduction} ...
2
votes
1answer
86 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
37 views

headings and footnotes in first page different

I want that the first page of each chapter has no headrule. Here is a MWE \documentclass[a4paper,openright,10pt]{book} \usepackage{vmargin} \usepackage{fancyhdr} \usepackage{emptypage} ...
2
votes
1answer
173 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 ...
1
vote
2answers
51 views

How to change the header and footer on the first page of references section

I am trying to change the pagination on the first page of my references section. I've been using fancyhdr to customize the pagination in my headers per the requirements of the thesis format at my ...
3
votes
1answer
29 views

Wrong rfoot placing after setting \newgeometry

I have a document where from a certain point onward the width of the left margin changes. To do so, I used the \newgeometry command of the geometry package. However, in the part of the document with ...
1
vote
0answers
31 views

How can the names of chapters, tables, figures and contents be set?

I'm writing a configuration for a template LaTeX document and I'm trying to write the configuration that defines the text used in titles of the document (such as the name used to indicate a chapter, a ...
1
vote
1answer
35 views

Manually edit chapter for one page with fancyhdr

\documentclass[12pt,a4paper,oldfontcommands,oneside]{memoir} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \lhead{\leftmark} \begin{document} \listoftables \clearpage \chapter*{List of ...
2
votes
1answer
20 views

page numbering with braces and lines

Here is a MWE: \documentclass{article} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage{lipsum} \fancyfoot[C]{ \hrulefill \{ \thepage\ of \pageref{LastPage} \} \hrulefill } \pagestyle{fancy} ...
1
vote
1answer
41 views

Remove name of section from header in pagestyle{fancy} (Notice: document class=article)

I am forced to use the document class: article, because of several packages that I use and format restrictions. I have long names for some of the sections and subsections, so there is no room to ...
3
votes
1answer
99 views

Fancy header and footers

I would like to create header and footers for all the page in my latex PDF, they should look: Header 1) one inch thick; background color: Blue; left hand-side: DOCUMENT Title; right hand-side: Logo ...
2
votes
1answer
33 views

How to remove the name Chapter with fanchyhdr in Book class

It's a question similar to How to remove the name Chapter with fanchyhdr in Report class. However, it's entirely different case on book class. I searched every corner of this site for 3 days without ...
1
vote
1answer
40 views

Fancypagestyle in \DeclareOption

In my class I want to define the page layout first during\DeclareOption and then modify it during a \newenvironment declaration. For that I wanted to use the fancyhdr package. Now my problem is that ...
5
votes
1answer
91 views

The number of page goes down,down and down

I have \pagestyle{fancy} with usual settings. And names of my chapters sometimes are so huge (above the top line) that somehow the number of page (which is in foot of the page) is going down, down ...
1
vote
1answer
39 views

using fancyhead to centre image and title

I am new to latex and am trying to alter a template with little success. So the current template has an image in the header on the left side of the page and a title in the middle. I need to move the ...
0
votes
0answers
24 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} ...
4
votes
2answers
37 views

Image behind text with fancy

I want to have an image behind the page number in my latex document, and tried to write it like \fancyhead[CE,CO]{\textcolor{white}{\thepage}} \chead{\includegraphics[width=1cm]{img.eps}} The ...
2
votes
1answer
52 views

Remove page number on first page using fancyhdr

I am using fancyhdr and this is my preamble. The first page still has 1 in the footer while other pages have Page 2, Page 3 and so on. How to remove the 1 on the first page? ...
2
votes
1answer
46 views

Removing header on chapter page

I am using the fancyhdr package where from what I understand the default is no header on the chapter pages, but I still have the header displaying the section name on all my chapter pages. I would ...
0
votes
0answers
44 views

Alternating which side the header is on odd and even pages

So I'm trying to get the header to display the section name on the right side on odd pages and the left side on even pages. My code is: \usepackage{fancyhdr} \pagestyle{fancy} ...
0
votes
0answers
95 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{} ...