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

learn more… | top users | synonyms

4
votes
1answer
308 views

Page numbers restart for preliminary pages

I have just started typesetting my PhD thesis. I am using the book class. I have a parent file where I define style, chapter header styling, page numbering, etc., and I include every chapter using ...
3
votes
2answers
499 views

Koma-script header/footer change with includepdf

I'm (still) moving from regular LaTeX classes (report, article) to Koma-Script. Lots of things are just okay, but not everything. My current problem lies with PDF inclusion and header/footer change ...
7
votes
1answer
554 views

Chapter Thumbs or Tabs in Book Class

I'm currently finalizing a book, and would like to add chapter thumbs or tabs to the document. While I've found a fair number of packages which are likely capable of doing so, I can't seem to get the ...
4
votes
3answers
518 views

two horizontal lines in header

I need to reproduce the following header format: \documentclass{book} \usepackage{fancyhdr} \pagestyle{fancy} \cfoot{} \lhead{\thepage}
2
votes
2answers
500 views

Undefined control sequence: \undefinedpagestyle at \end{macrocode}

The full source can be found here (static link), but here is the relevant bit: ... % \begin{macrocode} %<*package> % \end{macrocode} % \begin{macro}{\BCSet} % And stuff % ...
2
votes
1answer
122 views

Changing whether the footer rule is present

I would like the footer to be different after the first page of my problem sheet document I have implemented the following: \fancypagestyle{questions} { \fancyhf{}% Delete the current section ...
9
votes
1answer
4k views

How to add a picture to fancyhdr *header* (and align in the top right)?

In the MWE below, the blue square aligns according to plan, whereas the dummy-image doesn't, see screenshots below. How to re-code so that the dummy-image "A" is aligned like the blue square? ...
1
vote
1answer
157 views

\usepackage{fancyhdr} remove bookmarks

Hi everybody sorry for the inconvenience, i try to make a thesis in pdf and i like to put two things in: 1) change the style of chapters (Lenny); 2) put the chapter in a header top on the page; ...
3
votes
1answer
230 views

How to make different headings on even and odd pages

I want to make some headings on my thesis. I use the following codes in my cls file. \pagestyle{fancy} \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter. #1 }}{}} ...
8
votes
3answers
614 views

Preserve page numbering in fancyhdr

I'm using the fancyhdr package to include a header on each page. In order to surpress the section title also being cited in the header of each page, I'm using the command \fancyhf{}, however this also ...
0
votes
1answer
145 views

How to make the first page of a latex document like other pages

I am writing a paper with the article document class. The first page contains a large footer than other pages. I want to make it filled with text like the other pages and contains the same footer. a ...
5
votes
2answers
280 views

Prevent superposition of titles in header (fancy)

I would like to prevent the issue of having titles superposed in the header of my report. I am using the following code: \usepackage{fancyhdr} \setlength{\headheight}{15.2pt} ...
3
votes
2answers
487 views

List of abbreviations/units customisation

I'm still working at my thesis template and ran into the next problem: \documentclass[pdftex, 12pt, oneside]{book} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
3
votes
4answers
401 views

Footer on last page

I begin with LaTeX and use fancyhdr. So I've got a sweet footer for all my pages but...I'd like to create one another which would be active on last page only. This footer will contain my informations ...
4
votes
1answer
1k views

Customize \chaptermark for \mainmatter

Hey guys it's me again, I tried to add \leftmark to my header, but I want to change it from Chapter 1. Introduction to 1 Introduction. My MWE: \documentclass[12pt, oneside, a4paper]{book} ...
2
votes
0answers
156 views

How editing chapter number at Fancy Page? [closed]

I am very interesting about fancy page and i have minimal working answers dan the result : \documentclass{book} \usepackage[top=20mm,bottom=20mm,left=20mm,right=20mm,a4paper]{geometry} ...
2
votes
1answer
104 views

Different \pagestyle - doesn't accept last one

I'm stuck again. -.- I'm currently creating a template for my projects works, thesis, ... and I tried to structure it with \include what really worked fine till now: ...
1
vote
1answer
488 views

Setting \pagestyle{fancy} seems into create an error

Calling fancy page style is somehow apparently causing the following condition to test true. \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \ifcsname chapter\endcsname% ...
1
vote
1answer
144 views

Issue with fancyhdr and child documents for KOMA report

I have a strange problem with fancyhdr and report (KOMA) together with child documents. Individually for each child document, the headers are like I want them to be, but when I compile them all ...
3
votes
1answer
292 views

Can't get fancyhdr to work correctly

I am attempting to write a proposal using the following packages, fancyhdr, everypage and draftwatermark. Although the document prints quite nicely, all of the pages are lacking any headers or footers ...
3
votes
1answer
137 views

Add chapter numbering to page header

I'm currently using fancy for my page header everything is Ok but I just still need to also add the number of the chapter to the header. This is my code: \documentclass[12pt]{book} ...
6
votes
1answer
2k views

How to determine head height automatically

I'm creating three documents with three different headers, containing images or large banners. Is there a way to determine the head height automatically or even better a way to change the head height ...
3
votes
1answer
130 views

Trouble setting margins with Resumé header

I am trying to typeset my resumé in LaTeX and have created a header that I am really happy with. However, now that I am starting to fill in the rest of my information the margins I have set up to ...
2
votes
1answer
300 views

Book fancyhdr confusion

I am writing my master's thesis and would like to have my headers as in this book. I would like my even pages with the page number in the left margin and the chapter aligned to the left. My odd pages ...
0
votes
1answer
1k views

Page numbering at bottom of page

I am writing my thesis and I am using document class thesis. I want the page numbering appearing at bottom of the pages and centered. \documentclass[12pt,a4paper, oneside, bold]{thesis} ...
5
votes
2answers
2k views

Fancyhdr does not apply same header/footer on chapter and non-chapter pages

I have a problem with the fancy package: I use the report documentclass and I have a chapter, a lot of text and then a new page starting with a section (or the next page has no chapter starting on ...
1
vote
0answers
123 views

Section name on the right hand sides (odd numbered) [closed]

Here are the command lines that appear in the preamble of a book manuscript: \pagestyle{fancy} \lhead{\nouppercase{\rightmark}} \rhead{\nouppercase{\leftmark}} \renewcommand{\chaptermark}[1]{% ...
4
votes
2answers
876 views

\thispagestyle{plain} has no effect [duplicate]

I'm using the default settings of the fancyhdr package and calling \pagestyle{fancy} at the beginning of my document of type report. Since I have some large figures and tables, I would like to ...
2
votes
1answer
469 views

Fancyhdr package and page numbering issues

I am using the fancyhdr package and I have got big issues with the page numbering. Indeed, the pages appear for each new title, but then I don't have anymore page numbers, Here is the code furnish by ...
2
votes
1answer
83 views

Page number in page which contain the name of the chapter

I would like to insert in each page the chapter name and number (bottom right) The problem is that this configuration does not apply to pages that contain the name of the chapter! My code : ...
3
votes
1answer
145 views

How to make the first page of index fancy

I have a file called index.tex that looks like this: \begin{theindex} \item apple, 39 \item banana, 23 ... lots more of this stuff stretching over say 4 pages \end{theindex} I include it in a MWE ...
3
votes
1answer
326 views

How can I stop content overlapping my footer?

I am trying to use LaTeX to generate PDF versions of cheat sheets people build on my website. They are all three column documents, effectively each containing multiple tables. For the most part, ...
0
votes
1answer
1k views

How to insert footer in first pages of chapter?

I am using fancyhdr to make header and footer for pages. In the minimal example the footer is not appearing in the first page of chapter. I want footer to be appear in the first pages of the chapter ...
3
votes
1answer
1k views

How to remove 'Chapter 1.' from 'Chapter 1. Introduction' while using \leftmark?

MWE is below: \documentclass{report} \usepackage{fancyhdr} %\newcommand{\currentchapter}{} %\let\oldchapter\chapter %\renewcommand{\oldchapter}[1]{\oldchapter{#1}\renewcommand{\currentchapter}{#1}} ...
10
votes
2answers
2k views

Alternatives to the horizontal line in fancyhdr

I'm looking for a more fancy alternative to the default (read boring) horizontal line produced under the fancyhdr package. How creative can we get?
1
vote
1answer
109 views

Centered section title in fancyhdr

fancyhdr automatically puts the section title on the right header. When I try \begin{document} \pagestyle{fancy} \chead{\rightmark} \rhead{} \cfoot{\thepage} \end{document} nothing appears in ...
2
votes
1answer
344 views

Getting chapter and section in \fancyhead

I am having a bit of a heard time getting \fancyhead to give me the out put I want. I'd like to have a header that includes Chapter X: THIS IS THE SECTION (italicized like the default). I can get it ...
1
vote
1answer
434 views

Customize page numbering so all pages are equally formatted in book class

The title says it all. A friend is working on her thesis and we cannot figure out how to ensure that the page numbering is equally formatted on all the pages that display page numbers. Default ...
7
votes
1answer
794 views

Tables as Header and footer

I've been struggling with my .tex for quite some time now, and decided its time to look for help. This is the situation: all docs here (my office) need to bring, as header, a table (3 columns) which ...
2
votes
1answer
191 views

Page number position on page with table of contents

I want to position page numbers in my document in top-right corner. I managed to do so using fancyhdr (see below). \usepackage{fancyhdr} \hypersetup{% pdfborder = {0 0 0} } ...
1
vote
1answer
548 views

Insert a url in a footnote [duplicate]

I would like to insert a url in a footnote but that isn't working. I use the following code : \documentclass[a4paper,11pt,final]{article} \usepackage{color} ...
3
votes
1answer
95 views

What is the proper way of moving my content but not my header/footer?

My header and footer are all set. Size and position are good. However, I want to push the actual content to the right and down (creating big margins at the top and left of the document). See this ...
5
votes
2answers
450 views

How to put the text at the top in fancyhdr

I made a document with 2 pages and headers: Can I put "Page 2 of 2" at the top of the 2-nd page, so it was vertically aligned with "Commercial invoice"? How can I manage the padding between the ...
2
votes
1answer
123 views

Empty page on the Part page

I'm using this on my document (scrartcl documentclass): \usepackage{etoolbox} \pretocmd{\section}{\cleardoubleevenemptypage}{}{} \pretocmd{\part}{\cleardoubleevenemptypage}{}{} This makes me get ...
6
votes
1answer
405 views

Want to get 'book name, and 'chapter name, in header

I asked a question to get 'chapter name' and 'section' in the header in the following link : \markboth is not working when using \chapter and \section. Now I have decided to replace the section name ...
0
votes
1answer
404 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 ...
1
vote
1answer
195 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
3k views

fancyhdr - Only show sections, not subsections

Is there a way for the header to only print the title of the parent section? So in the example below, the subsection{LOL} page will have "1.1 LOL" written in the header. I just want it to say ...
1
vote
1answer
726 views

How to print the section name without the section number in a fancyhdr header?

I've copied a code to have a header that prints the section name on the left and my name on the right: \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{\sectionmark}[1]{\markright{\thesection\ ...
2
votes
1answer
614 views

\markboth is not working when using \chapter and \section

I am having a problem when adding \chapter and \section in the document. \markboth is not working when I compile it. I have got a link Why is \markboth not working?. But there is no solution about my ...