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

learn more… | top users | synonyms

9
votes
1answer
1k views

fancyhdr not centering after changed geometry

I have a document with different page margins, so I have to change geometry settings after fancyhdr loaded. However, the width of header after geometry is not correct. \documentclass[12pt]{article} ...
2
votes
1answer
2k views

Logo in LaTeX document

I don't see any (big) logo on the title page of document class. I'm using the example of report in TeXnicCenter. How can I include a logo on all pages? \documentclass[a4paper,twoside,10pt]{report} ...
4
votes
1answer
143 views

Lost formating on last page

Recently I have updated coding to Bilingual dictionary in Latex (the minimal example published at the link) as part of Showcase of beautiful typography done in TeX & friends by adding declention ...
1
vote
1answer
518 views

Multiline Header and Custom First Page Header

I am tasked with arranging the LaTeX files for a journal. Right now, here is the LaTeX code (not mine, so I don't really know how to work around this). The first page of every paper has a "special ...
6
votes
2answers
2k views

fancyhead not in small caps

The text in my fancyhead is written in small caps. I would like to have it not in small caps. How can I do? This is my fancyhead: \usepackage{fancyhdr} ...
2
votes
1answer
3k views

Simple footer with fancyhdr and pagestyle fancy, article with frontmatter etc

I am trying to get a simple on every page but excluding title page. Now I only get footer in front matter and excluding title page. The main matter do not get footer. Edit: I want a simple footer ...
7
votes
1answer
920 views

Page styles only work for \thispagestyle under afterpage

Using afterpage to set a page style after some page only works for \thispagestyle, but not for \pagestyle. Why is that? How can I make it work? \lipsum[1-20] produces 4 pages of text, Lorem Ipsum ...
10
votes
2answers
595 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 ...
3
votes
1answer
103 views

How to make a tabular in a header ignore the environment set by the currently processed longtable

I have a tabular in my header, using fancyhdr and a longtable that take multiple pages. The longtable has been created by an environment that also sets some variables: ...
6
votes
1answer
12k views

Increase height of fancyhdr header

How would one increase the height of the \fancyhead{} so that the text in the main body, doesn't collide with the title? I have the following MWE: \documentclass[a4paper,10pt,oneside]{article} ...
2
votes
1answer
242 views

fancyhdr equivalent in ConTeXt

In LaTeX the fancyhdr package provides the lhead, chead and rhead macros that allow me to create the left, center and right parts of the header. These macros also enable me to treat each part of the ...
2
votes
1answer
172 views

Main section heading in footer

I would like to have a footer on every page containing the main section (always the name of the current \section, not \subsection) and the current page, e.g. My section heading | 42 Bonus level: ...
4
votes
2answers
3k views

fancyhdr package: changing header from uppercase to lowercase

I need to change my headers from uppercase to lowercase using fancyhdr. How do I do that? \documentclass[10pt,cleardoublepage=empty,twoside]{book} \usepackage{fancyhdr} \pagestyle{fancy} ...
2
votes
1answer
1k views

Reducing/removing gap between header and custom chapter title

I'm writing a portfolio/report with pdflatex and while trying to get a header and footer I have got a situation where there's now a significant gap between the header and the chapter title, whereas ...
9
votes
1answer
2k views

Odd/Even fancy headers with article class

Using fancyhdr and the book class, one can set different headers/footers for odd/even pages as \fancyhdr[RO]{foo} \fancyhdr[LE]{bar} and so on. How can I achieve the same with an article class, ...
1
vote
1answer
180 views

Setting headers and footers, I have 2 styles

I have 2 styles for my header and footers. This one is for 90 %of my pages, I want the section in the header. My name left in the footer and my page right: \fancypagestyle{standard}{ \fancyhf ...
2
votes
1answer
409 views

Disable exceptional behavior of the first page in letter

I use the following code for my letter: \documentclass[a4paper, 11pt]{letter} \usepackage{fontspec} \usepackage{fancyhdr} \newcommand{\DocumentTitle}{Motivation Letter} ...
4
votes
1answer
786 views

Header and Footer on multipage listoffigures

I've using the fancyhdr package to modify the header and footer. If my \listoffigures spans multiple pages then the header and footer on page one of the LoF is not fancy. The TeX example below ...
4
votes
1answer
2k views

Font size of the headline

I wrote a text in LaTeX with the font size as 12 pt. Now, when I create a headline the size is also 12pt. How can I change only the size of the headline? I need a 10 pt size for headlines. MWE: ...
2
votes
2answers
221 views

Header and page styling problems

I need help with the preamble. Here is the code \documentclass[12pt,letterpaper]{book} \ProvidesLanguage{Italian} \usepackage[italian]{babel} \usepackage[ansinew]{inputenc} \usepackage[T1]{fontenc} ...
9
votes
2answers
1k views

Header not displaying correctly on chapter page due to subsection

(Complete source code below.) (Note: Not sure if I am using LaTeX or just TeX. I am editing with TeXworks, as TeXStudio was not rendering what I typed without +20 seconds of lag.) I apologize if ...
2
votes
1answer
1k views

Make the glossary title upper case in header

I'm using the report class with twoside parameter. I'm using fancyhdr to configure the headers/footer. I'm using the glossaries package to generate a glossary. The glossary is the only chapter in my ...
5
votes
1answer
1k views

fancyhdr: include footnote only on page 1, but header on all pages

I want to put a footer on page 1 but not on other pages. I also want to put a header on all pages. Could some one tell me how I can do that? The code I am using so far (only relevant lines shown): ...
3
votes
2answers
429 views

Longtable doesn't work well with geometry [closed]

I would like to produce document with multiple longtables inside. I need to customize my headers with fancyhdr placing graphics inside it and modyfying page geometry. But then longtables have problems ...
5
votes
1answer
387 views

How do I have a second line in my header?

I would like to have a header that looks like <my name> <Class> <page number> <Student number> However, I can't figure out how to insert the second ...
1
vote
1answer
806 views

Fancyheaders: how to turn off the page number on the first page? [duplicate]

Possible Duplicate: Custom first page with fancyhdr I don't know how to turn off the page number on the first page of the following article with different headers on odd and even pages. I ...
5
votes
1answer
581 views

Change fancyhdr settings in preamble after they have already been set

I have a "standard" preamble (portion in the code below that I indicated that I really don't want to change) that I am trying to reuse. But, I want to adjust the right margin for one particular ...
6
votes
1answer
569 views

graphics in style file

I aim to create a reporting template for other TeX users to use at our work. My objective is creating an .sty file. The specifications are fairly simple but one is causing grief: that is including our ...
4
votes
1answer
1k views

How do put a header inside the margins?

I have to create a document that obeys the following guidelines: "Margins must be set at a minimum of ¾" (1.87 cm); Your name must appear outside the set margins of the page, at the top ...
3
votes
1answer
2k views

Help with footer

I'm pretty much finished the document I'm working on, but now that I'm adding the footer I have run into some issues. I'm using fancyhdr and have rather small margin, so the footer doesn't really fit ...
3
votes
1answer
841 views

How to customize pagenumber position using fncychap

Using fancypages and two-sided documents, I used to set \fancyfoot[LE,RO]{\thepage} to get the page number on the page away from the center. Now that I use the package fncychap it won't work on pages ...
6
votes
1answer
1k views

Page header with gray background and without margin

After finishing my thesis in LaTeX (I am an absolute newcomer) I've been asked to format it in a specific design matching a doc-file I received. I've managed to change titles and fonts and margins ...
8
votes
2answers
582 views

Generating QR-code in header impossible?

I've got a strange issue with the packages pstricks/pst-barcode and fancyhdr. Here is what I like to do: A custom header for every page, Name on the left, QR-code on the right. Although the QR-code ...
6
votes
2answers
130 views

Weird interaction between everyhook and fancyhdr

In a document I'm working on, I'd like whitespace to be added before a custom environment, but only if that environment doesn't immediately follow a sectioning command (\section, \subsection, etc). I ...
3
votes
1answer
608 views

Removing “Chapter 0” before TOC and Appendix issue

I am using the memoir class with the fancyhdr package for headings. I wanted to lower the size of my headings because of overlapping issues. Here is my tex code \documentclass[oneside]{memoir} ...
2
votes
2answers
201 views

fancyhdr too long names of the sections, lines at the right and left

I am using fancyhdr for my header. The problem is, that some of my section names are too long and it looks quite stupid. I attached a screenshot. So how can I have this correctly? So it does not ...
4
votes
1answer
7k views

fancyhdr color and width of line?

I am using the fancyhdr package and I want to have a thicker line under my header and I want to have it colored, but my problem is, that this 2 commands: \renewcommand{\headrule}{\vbox to 0pt{\hbox ...
3
votes
1answer
333 views

How to stop wallpaper package hiding fancyhdr page numbers

When I use the wallpaper package to put a background behind a slide or document, and then use fancyhdr to try and paginate the document the page numbers dont show up. Am I doing something wrong, or is ...
7
votes
2answers
5k views

Distinguish even/odd pages in header with oneside option

See the MWE below. How can I achieve (in the standard book class) that despite the oneside option odd and even pages are distinguished in the header? I would like to have that, also with oneside ...
4
votes
1answer
317 views

fancyhdr: Title don't match title number

Some of my titles in the header don't match the number. This happens in page 3 in the example. What can be a solution or a work around? \documentclass[twoside]{report} \usepackage[ansinew]{inputenc} ...
10
votes
3answers
845 views

Cross-references in headers, clash between fancyhdr and hyperref

I am writing my thesis and using fancyhdr for the headers. Just the standard "Chapter name on odd pages and section name on even pages". I also need to use the hyperref package to break up long urls ...
4
votes
1answer
232 views

Wrong \rightmark in twocolumn mode

I would like to use the "dictionary" style of page header, using \rightmark--\leftmark as suggested in fancyhdr package. However, in twocolumn mode, \rightmark containts the first mark in the latter ...
4
votes
1answer
537 views

Two Page Numbers in One Page

I am using LyX to layout a collection of essays. There is one page-number-position per spread in the design. Please find the example below. Instead of showing 59, is it possible to show 58—59? I am ...
2
votes
2answers
2k views

Fancyhdr layout of “Contents” and “Chapter 0”?

The attached latex produces header of page 2 and page 4 to look like where I would have liked "CONTENTS" to be "Contents" and "Chapter 0: Rresumé" to be "Rresumé". All the following chapter ...
0
votes
0answers
41 views

Switching between fancy and plain page style [duplicate]

Possible Duplicate: Problem with multiple fancyheader page styles I'm having issues with switching between the fancy and plain page styles. I defined both styles in the preamble but once I ...
6
votes
1answer
775 views

How to create Fancy Title Headers

I want to create a Fancy Title Header for an Article, like the one shown below: Can someone please provide some hint on how to achieve this?
5
votes
1answer
462 views

Similar header format for my company

I need to reproduce the following header format: Please help; I'm a completely starter at LaTeX or TeX. I work with LyX and this is included in the document's preamble: \usepackage{fancyhdr} ...
5
votes
1answer
352 views

Question about changing the position of the footnote rule

My question is after I redefine the length of footrule, the footrule doesn't change the position on even or odd page, it's always at the left side. Did I lost something or there's the other way to ...
6
votes
1answer
12k views

Page numbering in header/footer (fancyhdr) [duplicate]

Possible Duplicate: How to remove the top horizontal bar in fancyhdr? How would I get rid of the line in the header, and the line and page numbering in the footer? My code is below. ...
5
votes
1answer
407 views

move page number in a standard book shell

I'm using a standard Latex book shell to typeset a book. Does anyone know how to format page numbering as follows: for preliminary pages, e.g. title page, contents, preface, etc., put page number ...