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

learn more… | top users | synonyms

1
vote
1answer
93 views

Section title oppsite 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 ...
1
vote
1answer
27 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
16 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
30 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
13 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? ...
0
votes
0answers
45 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
22 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
26 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} ...
3
votes
1answer
42 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? ...
2
votes
1answer
23 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 ...
1
vote
0answers
19 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
69 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
67 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
26 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
22 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
35 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 ...
4
votes
1answer
98 views

Alternate section title in header, also when new section starts at top of page

I'm using fancyhdr to display the current section title in the header of even-numbered pages of a book. I achieve this with the following code: \setlength{\headheight}{14pt} \pagestyle{fancy} ...
1
vote
2answers
1k views

How to insert a running heads after Opening Page?

After Opening Page running heads should always be [running authors], no matter what's the page number (Odd/Even). Then the next page should be [short Title]. Opening Page - Empty Second Page - ...
2
votes
1answer
42 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} ...
0
votes
1answer
120 views

How to make a header show a continuing section's title?

Goal: I want the reader to know which section he is in, even if a section was page-wrapped. I've been using \renewcommand{\sectionmark}[1]{\markright{#1}} previously and then \fancyhead[C]{\sffamily ...
1
vote
1answer
46 views

multiple headers and pagination in a book

For some reason I get "Table of Contents" on every odd page. The other problem being the pagination which is reset after the second edition in the main matter. Help much appreciated. Here's the code ...
1
vote
1answer
46 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
55 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
34 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
27 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
34 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.
11
votes
2answers
18k 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.
1
vote
1answer
12k views

fancyhdr package not found

I'm trying to use the fancyhdr package for headers and footnotes for my LaTeX report, but when I compile TeX returns an error saying that fancyhdr.sty file can't be found. Any suggestion on how to ...
3
votes
1answer
49 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} ...
1
vote
1answer
57 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}} ...
1
vote
0answers
52 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. ...
0
votes
0answers
33 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} ...
3
votes
2answers
93 views

Table inside Header

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

How do you increase headrule length in fancyhdr?

It's pretty well-known how to increase the headrule width, but how do I increase its length (i.e. let it run into the margin).
2
votes
2answers
57 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. ...
2
votes
1answer
31 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 ...
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} ...
6
votes
1answer
117 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
1answer
35 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, ...
2
votes
1answer
62 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} ...
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
1answer
53 views

How to add chapter names in header

I like to add chapter names in my header. Currently I used this command \fancyhead[RO,LE]{Chapter \thechapter} which can only show the chapter number . How can I add names instead of numbers.
2
votes
1answer
119 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 ...
0
votes
0answers
25 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. ...
2
votes
1answer
45 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
36 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
36 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 ...
3
votes
1answer
91 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 ...
1
vote
1answer
26 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 ...
1
vote
1answer
90 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 ...