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

learn more… | top users | synonyms

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? ...
2
votes
1answer
23 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} ...
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
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 ...
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? ...
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 ...
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} ...
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.
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} ...
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}} ...
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} ...
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} ...
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 ...
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. ...
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, ...
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
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. ...
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. ...
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 ...
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 ...
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 ...
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 ...
2
votes
1answer
38 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
85 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
43 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
61 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
43 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
52 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 ...
2
votes
2answers
53 views

Control over section and header style

I attach the minimal working example of my issue: \documentclass[12pt, a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{\tiny\thepage} ...
2
votes
2answers
61 views

Vertical align text next to image in rhead without influencing the positioning of lhead

I try to vertical align a text next to an image in a fancyhdr environment. This is my LaTeX code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} ...
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 ...
5
votes
2answers
65 views

Header only for the first page

The header is printed on the first page only as I need, but the header box (empty) still present on other pages. How to get rid of it? \documentclass[a4paper,10pt,twoside,titlepage]{article} ...
1
vote
2answers
69 views

page number in header next to chapter/section name

I'd like to place the page number next to the chapter/section name in the white space that's not underlined (like in the classicthesis package (I had a look at that package but it seems like the ...
0
votes
2answers
99 views

Text on background-image footer and header

I'm trying to create a template for my article, which has an image on the header, and on on the footer. I also want to put text on these images. The result would look like this : (Blue and green ...
6
votes
1answer
59 views

How to have two lines in facnyhdr

Sometimes I have long chapter and section names. Having them written in a header causes overlapping problems. So what I would like to have is, two lines in my header. I want to have chapter number ...