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

learn more… | top users | synonyms

2
votes
1answer
302 views

Figure in Header

For our documentation I am trying to put an image inside the header via but it won't work. I already have tried multiple codes but I can't solve my problem with fancyhdr. Anybody has an idea? This ...
2
votes
1answer
209 views

How to prevent offsetting a margin?

I have basic class file and I would like to use fancyhdr. Here is the markup of some-class.cls: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{some-class}[2013/07/29] ...
3
votes
2answers
2k views

How I can put the title on the head on the left side and the name of the chapter on the right?

I'm working with Lyx, and I have the fancy style in the page layout. My document is printed on both sides. On the left side, I want to only have the title of the document and on the right the name of ...
10
votes
1answer
657 views

Page header with box sections & page border

So I'm currently working on converting some documents used in our university to use LaTeX, and I'm stuck on a bit of a hangup. I've been able to nail down all the basics, using plotting, etc; but I ...
4
votes
1answer
294 views

Changing chapter page footer with epigraph

I'm trying to modify the font size of my page numbers in footers, but running into problems with the chapter page when using an epigraph. Here is my MWE: \documentclass[12pt,oneside]{book} ...
4
votes
1answer
796 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
960 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
954 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
1k 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
1k 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
171 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 ...
18
votes
1answer
20k 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
221 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
573 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 }}{}} ...
9
votes
3answers
4k 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
324 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
804 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
1k 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
1k 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
3k 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
209 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
126 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
1k 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
256 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
682 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
156 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} ...
12
votes
2answers
7k 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
155 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
1k 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 ...
2
votes
1answer
13k 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} ...
14
votes
2answers
14k 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
180 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]{% ...
5
votes
2answers
4k 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 ...
3
votes
1answer
823 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
177 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
272 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
667 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
4k 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 ...
4
votes
1answer
4k 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}} ...
12
votes
2answers
4k 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
158 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
769 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
2k 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
3k 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 ...
3
votes
1answer
568 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
2k 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
140 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
1k 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
222 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
962 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 ...