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

learn more… | top users | synonyms

3
votes
1answer
1k views

Customizing the header with fancyhdr

I am writing a report using the scrreprt KOMA class. Currently my header looks like this: Introduction is the chapter name. I would like to make two changes to it: I would like to have the ...
2
votes
1answer
540 views

How to write custom footer for some pages

I am using fancyhdr to hide header and footer in some pages but I also want to write custom footers for certain pages. Is there an easy way to do it? Or is there any way to put define text in the ...
4
votes
1answer
994 views

Section and subsection name in headings

I'd like to make the headings of my article look like this: <Section name> <Subsection number> <Subsection name> | <Page number> and I wrote this code:...
12
votes
1answer
3k views

How to use short subsection title in header but not in table of contents?

I have a (onesided) document with fancyhdr and pagestyle fancy so it displays the section-title on the right header and the subsection-title on the left header. If section and subsection titles are ...
7
votes
1answer
4k views

\section and \subsection alternating in the header

Right now, I'm trying to finalize the layout of my diploma thesis - unfortunately I cannot figure out how to achieve the heading I want. I'm using the amsart document class and try to achieve the ...
1
vote
2answers
2k views

Setting page number with fancy without lastpage package

I am using the following code to generate footer with fancy to show the page number \documentclass[twoside,a4paper,10pt]{article} \usepackage{lastpage} \usepackage{fancyhdr} \pagestyle{fancy}% \...
2
votes
1answer
539 views

fancyfoot on the last page

On the last page of my document, I need to add Next Review Date: blah blah. If I add the text at the bottom of the document, there is a possibility that the text might appear on a new page on its own....
3
votes
1answer
4k views

Chaptername in header except for Chapter page using fancyhdr

I am trying to achieve a header that displays topic, chapter and page number on every page except on pages where a new chapter begins. In that case the chapter space should be empty. I use fancyhdr ...
5
votes
1answer
7k views

Problem with header/footer position

I wanted a document with a header/footer on the first page and only a slighlty different footer on every other page. If I do it like suggested in different places: \documentclass[12pt,a4paper,ngerman]...
10
votes
1answer
16k views

Chapter title on even header and section title in odd header

I wanted to put the title of the chapter on even header and the title of the section of the chapter to the odd pages. My headers are now are using this code: \begin{document} \frontmatter % Use ...
8
votes
1answer
3k views

Change header and footer to only a group of pages

I would like to change the header and footer to only a group of pages in my document. I'm using the fancyhdr package with these settings: \usepackage{fancyhdr} \pagestyle{fancy} \makeatletter \...
1
vote
1answer
245 views

Error creating header fancyhead for oneside contents

I created my thesis and used this code to created heading. The document is setted to book class and oneside option. I got a page where both the left and right are number. Instead I would have the page ...
1
vote
0answers
43 views

Problem with fancyhdr [duplicate]

Possible Duplicate: sectionname + number in header with fancyhdr Uncustomised fancy page outputs at right head number and name of section. When I type \rhead{\thesection} it outputs just a ...
1
vote
1answer
14k views

fancyhdr package not found

I'm trying to use the fancyhdr package for headers and footnotes for my LaTeX report, but when I compile TeX returns an error saying that fancyhdr.sty file can't be found. Any suggestion on how to ...
6
votes
1answer
1k views

Formatting page number (fancyhdr?)

Could anyone please show me how to get this page number formatting:
3
votes
1answer
552 views

How to make the page number appear on the abbreviation list?

does anybody know how to make the first page of the abbreviation list have the page number? My abbrev. list is made of 3 pages and only the other two have the correct page numbering (roman). The first ...
6
votes
2answers
15k views

Custom header/footer rules (fancyhdr?)

I want to be able to customize my header/footer so far that I can change the rules that separate it from the document. Look for example at http://ww1.microchip.com/downloads/en/appnotes/00734b.pdf (...
1
vote
0answers
94 views

How to make the title centered with respect to the header line? [closed]

I have the following code for some document: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{..} \rhead{..} \begin{document} \begin{center} \Large{..} \newline \newline \...
13
votes
1answer
5k views

Page numbering at the top centre

I'm trying to place page numbering at the top centre (as required by submission guidelines at my university). It should be a very easy thing to do, but it seems impossible... I spent a day ...
4
votes
1answer
967 views

Page number alignment

This is my code: \usepackage[french]{minitoc} \fancyfoot{} \fancyfoot[RO,LE]{ \textbf{ \small \textsf{\thepage}}} \documentclass[12pt,a4paper]{book} \usepackage[T1]{fontenc} \renewcommand{\...
5
votes
1answer
937 views

Automatically adjusting textheight dependant on header / footer size

I want to have a variety of page styles used throughout my document, with different header and footer formats / content. I'm having trouble with getting the footer to not flow off the page. The ...
10
votes
1answer
2k 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
157 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
666 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 ...
8
votes
2answers
3k 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} \lhead[\rm\thepage]{\fancyplain{}{\sl{\...
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
1k 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
734 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
107 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: \newcolumntype{|}{!{\color{...
17
votes
1answer
25k 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} \...
3
votes
1answer
292 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
191 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: ...
5
votes
2answers
6k 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 ...
10
votes
1answer
3k 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
241 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
502 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} \newcommand{\Author}{...
4
votes
1answer
987 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
3k 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
237 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} \...
10
votes
2answers
2k 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 ...
3
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 ...
6
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
522 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
518 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
1k 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
711 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
664 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
2k 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 ...