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

learn more… | top users | synonyms

2
votes
1answer
41 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
133 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
31 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
84 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
82 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
36 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
39 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
43 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
71 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
59 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
92 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
39 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
57 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
42 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
87 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
58 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
100 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
37 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
68 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
59 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
261 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
33 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
82 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
198 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
68 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
42 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
71 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
125 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
41 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
91 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
97 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
98 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
49 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
58 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
66 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
115 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
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 ...
5
votes
2answers
72 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
89 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
163 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 ...
8
votes
2answers
135 views

How to have two lines in fancyhdr

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 and ...
2
votes
1answer
94 views

Fancyheader cfoot overlaps with main content

UPDATED question. Here is an MWE - finally I could produce one. \documentclass{article} \usepackage{geometry} \usepackage{graphicx} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} ...
3
votes
1answer
48 views

One line header for two line section [duplicate]

In my code I have two line sections. But I want it in 1 line in header . What can I do? \documentclass{biditufte-handout} \usepackage{ptext} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} ...
1
vote
0answers
82 views

appendix counter is too large

After including more on my appendix, I got the following error: LaTeX Error: Counter to large. I've got more than 30 sides in the appendix, but after Z the acrobat shows AA, BB, ... that's ok, but ...
2
votes
1answer
94 views

Problem with utf8 adding color headers with fancyhdr

I'm making a book of poems and I'd like to add some specif style to the pages. So I use fancyhdr And everything goes right until I add \usepackage[utf8]{inputenc} This is the code I use ...
3
votes
1answer
24 views

endnotes.sty inserts unwanted text into fancy headers

I have a document that uses fancyhdr (with fancy page style enabled), and also uses endnotes.sty to create endnotes. However, the pages that have endnotes on get the text "Notes" inserted into the ...
1
vote
0answers
119 views

Use smaller \headheight in fancyhdr

When I use headers without fancyhdr, TeX is happy to use the same \headheight as is used for the text, but when I use fancyhdr, fancyhdr increases \headheight. Here is an MWE. ...
3
votes
3answers
80 views

How can I customize the plain side header with the renewcommand if parameters cause in an error

Minimal working example: \documentclass[12pt, a4paper, oneside, parskip=half]{scrbook} \usepackage{fancyhdr} \usepackage[english]{babel} \usepackage{blindtext} \pagestyle{fancy} \fancyhead{} ...