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

learn more… | top users | synonyms

4
votes
1answer
115 views

Different margins in title and chapters

I am struggling here with adapting school template for my document. The problem is that I need different margins on the title and on the chapter pages. Here is the code. On the title page is all easy. ...
5
votes
1answer
53 views

I am at sea with the \markboth \leftmark \rightmark and so on ! Is there a simple explanation?

My problem follows from my difficulties with the english explanations on the marks, from the readmes of fancyhd or titleps, in order to modify the headers. I do not understand the business behind the ...
3
votes
3answers
169 views

Fancyhdr - Is it possible to have a small table inside header?

Ok, I'm trying to create this type of formatting for each of my pages: Now, I want to have this on every single page, in the header on the right hand side. I currently have the following: ...
2
votes
1answer
25 views

Vertical alignment of image an text within tabular environment placed in header using fancyhdr package

The adjustbox package provides a way to vertically align image and a paragraph of text within the tabular environment; I have included an example which shows this: mwea.tex \documentclass{article} ...
1
vote
1answer
157 views

Expand page to use full page height with fancyhdr

I use fancyhdr package and would like to print a large float that exceeds the textheight. Hence I would like to remove the headers and footers. And have the float verticaly centered. I tried ...
3
votes
1answer
15 views

Alignment of image (via includegraphics) in fancyhdr with and without tabular environment

Below I show two examples; an image (via includegraphics) is placed in fancyhdr with and without tabular environment. When the image is placed in the tabular environment, a vertical offset is ...
3
votes
1answer
28 views

Headers of ToC and fancyhdr

Please, consider this code: \documentclass[a4paper,twoside,11pt]{report} \usepackage{fontspec} \setmainfont[Ligatures=TeX,Numbers=OldStyle]{EB Garamond} \usepackage{polyglossia} ...
3
votes
2answers
44 views

Formatting headers in the book class

I am using the book class for my thesis. In every page that is not the beginning of a chapter, LaTeX writes the number and name of the chapter in the header. Is there any simple (emphasis on the ...
3
votes
1answer
47 views

Changing the location of an element in the header using scrlayer-scrpage

In fancyhr \fancyheadoffset[LO]{\marginparsep+\marginparwidth} moves odd page left element in the header. Do we have any facility like this in scrlayer-scrpage? MWE \documentclass[12pt, ...
5
votes
2answers
1k views

latex fancyhdr: is possible to use leftmark and rightmark alternatively?

I'm using this code to customize the header layout: \pagestyle{fancy} \fancyhead{} \fancyfoot{} \lhead{\nouppercase{\rightmark}} \rhead{\thepage} I would like to have the section name in the top ...
1
vote
1answer
16 views

Acronym wrapped at end of page causes page number and header of next page to have same hyperlink

A bit of a confusing title perhaps, so let me explain. I'm using the packages glossaries, hyperref and fancyhdr. Acronyms defined with glossaries have a hyperlink to their definition. However when the ...
0
votes
1answer
39 views

How to show a long chapter name in the footer with two lines?

A short time ago, I asked this question to resize the width of a chapter section. But there is another problem with the footer. If the chapter name is too long, the chapter name in the footer ends in ...
1
vote
1answer
32 views

fancyhdr and \iftopfloat

I am relatively new to LaTeX, and I have been using the fancyhdr package, in which I have chapter title and numbers with headrulewidth on top of the page. However, when I have figures on top of a page ...
4
votes
2answers
46 views

Difficult with fancyhdr and table of contents

Premise: I'm new with fancyhdr. I defined the following fancy style: \lhead{} \chead{\slshape\leftmark} \rhead{} \lfoot{} \cfoot{\thepage} \rfoot{} \renewcommand{\headrulewidth}{0.4pt} ...
2
votes
1answer
23 views

Fancyheader footer for float pages

I'm trying to keep the page number on float pages using fancyhdr. Here is my current set-up: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{lastpage} \usepackage{fancyhdr} ...
5
votes
1answer
50 views

Is there way to make horizontal line on the top of the page that contains only a page number

I tried to write a book of the following style: Is there a way to modify the upper horizontal line such that it does not have the word "Sisältö" or any other text except page numbers? ...
3
votes
1answer
40 views

How can I use adjustbox in \sectionmark?

I want to use adjustbox in \sectionmark but it doesn't work. Is there a work-around for this? \documentclass{book} \usepackage{blindtext} \usepackage{adjustbox} \usepackage{fancyhdr} ...
5
votes
1answer
62 views

Only show header if section number > 0

The current section name + chapter.section number is shown in the header. This is normal behaviour (what I want). Example: How can I remove the header text, if there is no section on the page. The ...
1
vote
1answer
24 views

fancyhdr and cals vertical merge problem

\documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{cals} \begin{document} \headheight=81pt \chead{ ...
8
votes
1answer
120 views

Distance between top edge of paper and header

EDIT : Please apologize me. I forget to add two lines to MWE I think very essential to handle the problems. Please re-check the MWE. There is parameter defining distance between bottom edge of top ...
4
votes
1answer
240 views

Fancyhdr and scrreprt

I try to use scrreprt and fancyhdr for getting the chapter at the head of even pages left and the section at odd pages right: \documentclass[12pt,a4paper,twosides]{scrreprt} \usepackage{fancyhdr} ...
3
votes
1answer
39 views

fancyhdr: missing section number of bibliography

I know there are other questions like this, but I didn't find an answer for my particular question. Please consider the MWE below. While the section number is included in the header for the first ...
2
votes
2answers
52 views

Including section titles in fancyhf headers

I would like to include the section name of the page's displayed section in my header tags in the fancyhdr package, something like \fancyhf[HR]{SECTION NAME} \fancyhf[HL]{SUBSECTION NAME} How can I ...
0
votes
1answer
37 views

Section vertical position is displaced

Here are two pages of the same document, Image 1 shows the 2nd page, where \section{Tareas realizadas} is overlapping the textheight top, while the Image 2 shows the 3rd page (correct behavior). Why ...
6
votes
2answers
93 views

Automatically remove ruler when no header is present

This is a question triggered by Automatically remove page number in one-page documents. When activating the fancyhdr package, it is necessary to clear the headers, which I do below with \fancyhf{}, ...
4
votes
2answers
165 views

No page number on the first page of an Index (not ToC)

The publishing house I am going to publish a book with demands no page number on the first page of each chapter. I used \thispagestyle{empty} in most cases and had to use ...
10
votes
2answers
360 views

Annoying problem with fancyhdr and auto-generated chapters

I have been facing an annoying little problem. I'm using fancyhdr to customize the headings on my thesis but according to the package documentation it is unable to remove the "uppercasedness" of the ...
4
votes
1answer
46 views

Image in header, custom padding

First of all, sorry about the poor title, but I searched for ten minutes and couldn't find a better one.. I'm using fancyhdr to set some custom headers and footer in my LaTeX document. I'd like to ...
3
votes
1answer
52 views

Removing header underline and margins from a single page

I'm using the book class and fancyhdr in TexMaker and I want to use a rotated table which will eventually take up one whole page. The largest problem is the header line as my table will overlap with ...
1
vote
2answers
22 views

Wrong header in Bibliography page

I need help with header in bibliography page. I use fancyhdr to set different headers for even and odd pages. When my bibliography runs long to a second page, the header appears as like what I set ...
3
votes
2answers
72 views

Using fancyhdr in titlepage using Report Class

In the report class I am having trouble getting the header to show up on the title page. From what I understand, the \maketitle command automatically sets the pagestyle to empty. I had tried ...
5
votes
1answer
43 views

Add chapter number in roman numbers using fancyhdr

I am trying to add the chapter number to the footer using fancyhdr. What I would like to do is have the chapter number in roman numbers and the page number in arabic together like so: VI - 8 This ...
6
votes
3answers
132 views

Using the fancyhdr package, how do I have a footer but no header on the first page only

I would like to have a header and a footer throughout the document, however on the first page I would like no header with the footer remaining as it is throughout the document. So far all I can do is ...
2
votes
2answers
86 views

Illegal unit of measure (pt inserted) \end{document} [closed]

By looking at questions with same title as mine, I unfortunately don't find answers to fix my code. I am not too familiar with LaTex, but after reading several webpages I really can't see what I am ...
6
votes
1answer
84 views

Fancyhdr adding multiline header causes footer margin to be inconsistent?

I have been searching to fix this problem for a while now. When I use the fancyhdr package to create headers and footers, and I run my code, as long as the header does not take up multiple lines, the ...
4
votes
1answer
4k views

fancyhdr: Section number, Section, colon and subsection in header

I am a bit confused with the fancyhdr options. I currently have this style for my headers: MWE: \documentclass[12pt,oneside]{book}%use oneside to ensure no blanks\ \usepackage[text={5.45in,8.5in}, ...
1
vote
0answers
28 views

How can I typeset the current subsection in the page header? [duplicate]

How do you set the name of the subsection in the header? I've managed to put the chapter and section in the header/footer, by using the fancyhdr package. More specifically, I used, in \rhead, ...
5
votes
2answers
90 views

Problems double-sided document header

I'm having troubles setting the header of a two-sided document. I need only the chapter number (not necessarily) and name in the header at left for even pages and at right for odd pages; I don't want ...
2
votes
1answer
80 views

Fancyhdr - the header image collides with the body of the content

I am really confused. In the original document , I had a header that collides with the body of the document. Now for preparing the MWE , I removed the unnecessary packages and code segments. I found ...
4
votes
1answer
51 views

Fancyhdr messes up with \backmatter

I just found out that if fancyhdr has to mention a chapter located in \backmatter, it does this by numbering it with the number of the last chapter. For instance, this: \documentclass[11pt, a4paper, ...
5
votes
2answers
64 views

How to remove the horizontal line below the image in the header

To add image in the header , I have written the code, basically the pagestyle modification. Now , just for a trial , I first modified only my plain page style. After the image gets inserted in the ...
2
votes
1answer
74 views

Header and footer with tables. Right margin go off the page

I'm not completely sure if this topci is repeated, but anyway... I'm writing some company reports that have a special header and footer layout containing tables. I have been able to configure the ...
5
votes
2answers
88 views

Removing gap above “Chapter X” introduces problems with the text formatting

I am trying to get the page layout of my thesis sorted out. I am using fancyhdr to give me the page number in the top right and chapter name in the top left with a horizontal rule under, and sectsty ...
1
vote
1answer
61 views

page header logo overlapping page header text

I am using the following LaTeX source to place a logo into page header: \pagestyle{fancy} \chead{\includegraphics[width=1.5cm,keepaspectratio]{./docs/log4cplus}} \setlength{\headheight}{47.0pt} ...
4
votes
1answer
126 views

Huge ornament chapter numbering

Well, I'm using a such a code bellow, basically I would like to add ornaments to the numbering of this chapter... Any ideas, examples please? thanks a lot ...
0
votes
1answer
353 views

Gantt diagram and pdflscape

I'm trying to put a gantt diagram (using pgfgantt package) into landscape mode (using pdflscape package), but I have encountered a problem: It seems that, either because of pgfgantt, pdflscape or ...
6
votes
1answer
105 views

fancyhdr page decorations and page numbering

Hello there are several examples of decorative pages. Most examples work with a single page,when numbering is not necessary. When i try to make for every page. It does not work, or i have problems ...
2
votes
3answers
67 views

How to reposition or remove middle pagination labels?

Right now, I am using the following fancy headers as required by my school's department policy. However, when I look at the footer, it has a number for each page in the middle of my footer label. I ...
6
votes
4answers
783 views

How to get a big table on a page with pagestyle empty?

In my document I have a table that is quite big. I would like to have this table on a page with no header and no page number. How can I get this table on a \thispagestyle{empty}? Using it withing the ...
2
votes
1answer
88 views

How can I use fancyhdr to style my BibTeX's page headings?

I haven't yet found a solution to this problem. Before using BibTeX, I styled my bibliographies with fancyhdr, which worked. I was able to write it directly into the bibliography environment: ...