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

learn more… | top users | synonyms

1
vote
1answer
38 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
22 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
46 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
120 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
36 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
44 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
94 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
41 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
26 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
41 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
72 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
56 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
48 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
100 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{} ...
2
votes
1answer
45 views

How to have different head & footer rule widths on odd and even pages using fancyhdr?

I am trying to create a document that has just a footer on odd pages and just a header on even pages. On the odd pages, there should be a head rule width of 0pt and a foot rule width of 0.4pt. On the ...
3
votes
1answer
199 views

Remove `CHAPTER 0.' from header in frontmatter chapters with fancyhdr

As the title says. The heading on the page following the Abstract looks like this: CHAPTER 0. ABSTRACT How can I remove the unnecessary Chapter number from the headings in the frontmatter? ...
1
vote
0answers
40 views

Header starting from the first page

I am using fancyhdr to make header for pages. I want the header to appear from the first page starting from the content then chapters. For the odd page i want the header to be the current ...
1
vote
3answers
88 views

fancyhdr formatting help

Hello guys I am fairly new to LaTeX and this website has never let me down :D I am here once again for some help since I am a total noob. I need a bit of coding help to get a specific style on my ...
1
vote
1answer
87 views

Problem with title page

I have the following title page: \documentclass[a4paper,twoside,12pt,chapterprefix=false]{scrbook} \begin{document} \begin{titlepage} \thispagestyle{empty} \fancypagestyle{empty}{ ...
3
votes
1answer
38 views

fancyhdr: color of page number not changing in document, even though it changes in other documents

For this problem, I am using the following code: \documentclass{article} \usepackage[utf8x]{inputenc} \usepackage{concmath} \usepackage{amsmath} \usepackage{xcolor} \usepackage{pagecolor} ...
2
votes
1answer
44 views

Wrong section number with fancyhdr when using clearpage

I am using Latex for my Bachelors Thesis and I have run into a little problem, I haven't been able to fix yet: I am using Article as my document class and want each section to start with a new page, ...
2
votes
1answer
50 views

Fancyhdr headrulewidth-related question

I have a work-around for this one, but I'd like to do it more elegantly if possible. Suppression of the line under the header when using fancyhdr seems to be well understood, and I have been doing it ...
2
votes
1answer
88 views

Setting a minimum margin size with the geometry package

When using the geometry and fancyhdr packages it is possible to specify margins that are too small to hold the header and footer. \documentclass{article} \usepackage{geometry} \usepackage{fancyhdr} ...
1
vote
1answer
63 views

emacs, twoside option doesn't go in documentclass, why?

I'm typing up some notes in Org-mode (emacs). When I try to export the *.org file as *.tex file and then get a pdf, I see the EVEN page numbers don't appear on the outside of the page as I want them ...
2
votes
2answers
108 views

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 ...
0
votes
0answers
40 views

Increase the actual textheight using fancyhdr?

I've been using the fancyhdr package but the thing is that it creates a lot of empty space at the bottom of the page. I tried to increase the actual \textheight of my thesis according to this ...
2
votes
1answer
70 views

\rightmark not displaying subsection

Current situation My document (report) consists of chapters, sections and subsections. Now I want to display the section name and the subsection name on the left side of the footer. However if I use ...
3
votes
0answers
45 views

How to set the section title as a right header using fancyhdr?

Within \documentclass{amsart} how can I define the \rightmark to be the section title, without the number? I am using the fancyhdr package.
0
votes
0answers
37 views

Centering of footer with custom margins

The problem I encouter is that whenever I change the margins of my tex document, the footer does not remain centered. My tex code is the following: \documentclass[11pt]{article} ...
1
vote
1answer
103 views

How to align fancy footer and header with text?

I use fancyhdr for customized headers/footers. I have the following code : \pagestyle{fancy} \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} ...
3
votes
1answer
60 views

How to use fancyhdr to customize headers for multiple landscape pages

I have used this answer to include two pdfs in landscape format. It works good for one page but not for two. This is my example: \documentclass[twoside]{scrartcl} \usepackage{fancyhdr} ...
3
votes
2answers
102 views

Table inside Header

I'm trying to create table inside Hearder to looks like this : Output but with my following Code: \documentclass{article} ...
2
votes
1answer
40 views

Parallel environment breaks fancyhdr

I have a chapter fully enclosed in the parallel environment. Placing the section title outside of the environment caused the creation of an empty page (with the section title only) and the translation ...
2
votes
2answers
76 views

Number of Chapter - Title Chapter fancyhdr

I want to use this style in my fancy header: Number of Chapter - Title of Chapter i.e: 1 - Chapter Name I use this command, but I view only the title of chapter. ...
0
votes
1answer
70 views

How to set custom fancy pagestyle back to default fancy

I am using a custom fancy pagestyle for my acronyms pages and I am wondering how I set the pagestyle back to "default" for the rest of my document. This is my example: \documentclass[11pt, twoside, ...
6
votes
1answer
358 views

Understanding headers in scrartcl

I would like to get a better understanding, why using fancyhdr is not recommended using scrartcl. So far I haven't had any problems using them together but the output is always complaining that I ...
0
votes
0answers
35 views

Problems with longtabu when using tabu on fancyhead

I'm trying to use the longtabu environment but I get the following error: Not in outer par mode. \end{longtabu} Undefined control sequence.\end{longtabu} Missing number, treated as zero. ...
1
vote
0answers
91 views

Alignment problem with fancyhdr for a report page layout

I am trying to define a base class for some reports to share the same page layout. I use the fancyhdr package for creating the header and footer but I am experiencing some vertical alignment problems. ...
2
votes
1answer
229 views

scrpage2 conflict with fancyhdr

This is a followup to How can I add “page # of ##” on my document? The MWE below works fine with the scrpage2 line commented out, but not with. With that line uncommented, I get the error: Class ...
2
votes
1answer
79 views

Replace period with colon after Chapter (and Section) in header using fancyhdr package

I am using the book document class and I am using the fancyhdr package. In my header, I am using \leftmark on the even pages and \rightmark on the odd pages. I would like \leftmark to display ...
1
vote
0answers
43 views

why usepackage{fancyhdr} does not apply?

I use the package \usepackage{fancyhdr} and then \pagestyle{fancy} but it does not affect my output. Even it does not give error. The code is as follows: \documentclass[12pt,twoside]{report} ...
3
votes
0answers
74 views

Correct counting of paragraph number is header/footer

I want to \usepackage{fancyhdr} to list paragraph numbers in the header/footer of a document. Most of the time this works fine but when a new page starts with a paragraph, the number is also listed on ...
1
vote
1answer
38 views

Missing number, treated as zero in fancyhead

I keep on getting this error Missing number, treated as zero. for following piece of code: \fancyhead[CE]{\small\leftmark}{\textwidth} \fancyhead[CO]{\small\rightmark}{\textwidth} but not for this ...
3
votes
1answer
139 views

Longtable exceeds page length

Situation: I am using rmarkdown and xtable to iterate the creation of several tables, and output them in Latex to create a PDF. Given that most tables are long, Im using Longtable package. Also, i ...
2
votes
1answer
43 views

Alternating coloured rows in table - line width of colouring -

I'm creating a table with alternating coloured rows. However, the colour seems to extend the top- bottom rule of the table, which doesn't look quite right. Also, my header row probably should be a ...
4
votes
3answers
93 views

Epigraph and fancyhdr: a patching problem

I would like to add epigraphs on my part pages using epigraph, but since I also use fancyhdr, I cannot get the proper page style on the part page using the solution given in the package documentation. ...
2
votes
1answer
124 views

Multiple Line Header with Multiple horizontal lines

I'm trying to use fancyhdr to make a multiple line header with the following format: Left Header Center Header -------------------------------------------- Right ...
1
vote
1answer
104 views

tableofcontents prints \leftmark and \rightmark

I use fancyhdr for my headers and footers. This works well on all pages except for the Contents page. Here the header displays leftmark and rightmark, Contents is displayed twice. Any idea why this is ...
3
votes
1answer
52 views

Adjustment of header placement in fancyhdr

I'm using the fancyhdr package with the book class, and I need to not only lengthen the header to be wider than \textwidth (e.g., using \fancyheadoffset) but also to control its position. [EDITED TO ...
1
vote
1answer
64 views

Change the style of the header, footer and chapters

I'm writing my thesis using documentclass book. I want to change the header and footer of pages and modify slightly the size and position of chapter. Now it looks more or less like this: But I want ...