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

learn more… | top users | synonyms

2
votes
1answer
399 views

Table of Contents in a Journal

I have a problem with the numbering of items. I own the items separately and do not know how to put it together, for the numbering, etc, etc. I have several articles, and need to get an index should ...
10
votes
2answers
3k views

Want \section* to change the page header

In a book, I have several numbered sections followed by an unnumbered section. I have placed an \addcontentsline following the \section* that introduces the unnumbered section, so that it will appear ...
12
votes
2answers
10k views

Top right side page numbering

I want the numbers of pages to be placed at the top right side. I try to do it like this \documentclass[12pt]{article} \usepackage{fancyhdr} \begin{document} \lhead{} \chead{} \rhead{\thepage} ...
11
votes
3answers
11k views

Headrule length in fancyhdr

Using the fancyhdr package, is it possible to change(increase or decrease) the headrule length without changing the header length? In the picture related, one can see that the headrule rectangle(in ...
6
votes
2answers
1k views

fancyhdr - how to disable auto section number and still show section name in header

\documentclass[fleqn,12pt,a4paper]{article} %\RequirePackage{Kaumudi_Package} \usepackage{fancyhdr} \pagestyle{fancy} \begin{document} \section{section-1} \newpage \section{section-2} \end{document} ...
2
votes
1answer
276 views

Customizing headings

I am writing a document in the book class. I am looking for a way to produce the following. In one of my chapters, the sections carry a name, each of which can be summed up by only a few letters, for ...
1
vote
0answers
2k views

\fancyhead[LE,RO]{\thepage} not working [closed]

I'm having some issues with page numbering in my LaTeX document. I would like the odd numbered pages to display the page number on the left and the even numbered pages to display it on the right. ...
2
votes
1answer
358 views

Exclude footer from bibliography

I'm using fancyhdr in a document I'm writing and what I want to do is place numbering (which is placed in the footer) only in the main body of the document. Not in the bibliography. In other words I ...
6
votes
1answer
480 views

Remove fancyhdr footer when float page too large

I'm working on a book with fancyhdr with some overfull float pages, and want to remove the footer on only those pages, but keep the header. Can I either automatically remove footer if the caption ...
3
votes
2answers
2k views

Fancyhdr footer not working on pages where a chapter does not begin

I'm using fancyhdr to put a text and page number on every page: \usepackage{fancyheadings} \fancypagestyle{plain}{ \fancyhf{} \lhead{section \bfseries \thesection} \chead{CS04-708 Main Project, ...
6
votes
1answer
18k views

sectionname + number in header with fancyhdr

I want to have section name + number on the left side in the header, and a predefined text on the right side. Also want to have subsection / subsubsection name + number, if the subsection is long ...
2
votes
1answer
493 views

Why \hyperlink{\rightmark}{} does not work in fancyhead (and inside some other macros)?

\fancyhead[LO,RE]{\hyperlink{\rightmark}{\bfseries\rightmark}} (\leftmark is all the same) cause error: TeX capacity exceeded, sorry [input stack size... Why? (here, \rightmark has double ...
4
votes
1answer
5k 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}, ...
6
votes
1answer
437 views

Hyperlinked sectionnames in fancyheader

I am trying to create a header that consist of chaptername and sectionname (chaptername:sectionname) both of them a hyperlink to chapter and section respectively. I am using Hungarian language so ...
4
votes
1answer
361 views

Need directions on how to gain more control over graphical design of header/footers

I have a design of a letterhead which contains a header and a footer as seen below in ASCII-form. As you can see it contains a header and a footer which have both above and below a horizontal ruler. ...
3
votes
2answers
3k views

headlines with fancyhdr and documentclass scrreprt

I am using documentclass scrrept and fancyheader headlines. The problem is that on every page where a new chapter starts, here are no headers. Only the page no is shown in the middle of the footer. ...
6
votes
1answer
7k views

Adding header and footer to the front page (and other pages) of an article

I am beginner in LaTeX, and I have been unable to find a solution to what looks a simple problem. I use the article class for a paper. I have received a rectangular logo, about 40 mm high and as ...
4
votes
1answer
751 views

How to apply custom headers/footers on pages with new chapters?

I'm writing my final report in LaTeX for my bachelor's degree. I'm aiming at having a document similar to the .doc template used normally. I want to have my customs headers and footers applied on ...
5
votes
1answer
5k views

How do you increase headrule length in fancyhdr?

It's pretty well-known how to increase the headrule width, but how do I increase its length (i.e. let it run into the margin).
8
votes
1answer
3k views

fancyhdr: How get part on even and chapter on odd pages

I am trying to use fancyhdr to set the part no. and name on my left pages and chapter no and name on the right pages. My document is ...
1
vote
2answers
864 views

custom header text and headrule

Using mweclass LaTeX class (report based) is writing a document as follows: \documentclass{mweclass} \title{MWE} \author{J. Doe} \begin{document} \thispagestyle{mwetest} \maketitle ...
3
votes
2answers
2k views

section title and page number overlapping in heading; fancyhdr

I have set the headings to show the section number and name on the left side of the page, and the page number on the right. This works fine for most section names, but one particular one is a little ...
7
votes
3answers
2k views

How do I prevent “Contents” from appearing twice in the header when I use \leftmark and \rightmark with fancyhdr?

I would like to use \leftmark and \rightmark, but have "Contents" appear only once (on the left) in the header. Instead, it appears as both the \leftmark and the \rightmark. The following MWE ...
4
votes
1answer
2k views

fancyhdr: putting part in fancyhdr

For my dissertation I've redefined \thechapter as \thepart because I'm only using parts, sections and subsections. With the code below I get the section as the right header but nothing on the left. ...
7
votes
1answer
785 views

fancyhdr overwrites my page numbering settings

\documentclass{mwrep} %page number on the end of chapter \makeatletter \let\ps@closing\ps@plain \makeatother %margins \usepackage{anysize} \marginsize{3cm}{3cm}{2cm}{2cm} \usepackage{lipsum} %mark ...
5
votes
1answer
2k views

rightmark without numbering?

I'd like to include the section name in the header WITHOUT the section number. The only instructions I could find on how to do this said to add this: ...
7
votes
2answers
683 views

Switching from memoir to report

I've been using memoir for a while now, and have started facing problems with modified output routine, this has forced me to seriously consider switching (back) to report class. What I'm going to ask ...
2
votes
1answer
628 views

Is there method for removing \\ newlines - problem with fancyhdr and multiline chapter name

Some of my chapter has very long names, and they have different break line in ToC and on Chapter page, according to a solution to How to make (force) line-break in Chapter Title (in ToC, Chapter, ...
4
votes
1answer
2k views

Problem with multiple fancyheader page styles

I want to use multiple fancyheader styles in my document. I've run into a problem that seems to be a bug to me. The code below doesn't compile with latex; it seems stuck in an infinite loop. ...
7
votes
1answer
435 views

How to display unprinted text in headers?

I use fancyhdr to display first and last headword from my dictionary in the header section. The problem is that the headwords in the dictionary may contain special symbols (see example picture)) that ...
4
votes
1answer
485 views

\ifnum conflict with appendix

Was helped briliantly before, here's another small problem I do not get fixed: Using the fancyhdr package I get, as promised, fancy headers. However, a chapter in the frontmatter gets a 0. ...
2
votes
1answer
1k views

Consistent placement for page number with changing margins

I have a document (letter paper) with a cover letter, some single column pages and some two-column pages. For readability I would like to use 1.5" margins for the single column pages and 1" margins ...
2
votes
1answer
2k views

How to get header and footer over ToC, LoF and Nomeclature?

I would like to know how we include header and footer over Table of Contents, List of Figures and Nomenclature? Do we need to renew any command? or any package is used to do that? Sample script would ...
6
votes
3answers
3k views

Right align inside header

I have a header, prepared using fancyhdr. I would like the first row of the left header to be right-aligned with the second row of the left header. In the following MWE I would like "My City" to be ...
14
votes
3answers
10k views

Using fancyhdr to create an image based header and footer

I'm trying to generate a latex report (via Sweave and R) where the header of the document is an image that covers everything (including the top/left/right page margin) and the footer covers everything ...
9
votes
4answers
4k views

How to cut a section title in the header

I redefine my headers as in the following MWE: \documentclass[12pt]{article} \usepackage{xstring} \usepackage{fancyhdr} \fancypagestyle{monstyle}{% \fancyhf{} % remove everything ...
1
vote
1answer
2k views

How to display headers bold?

Is there a way to change the headers in XeLaTeX? Basically I just want my headers (pagenumber, author and title) to be bold, but none of the solutions suggested for LaTeX seems to have any effect on ...
8
votes
1answer
5k views

How do I increase the spacing between header text and the 'headrule' line with fancyhdr?

This is going to be something so obvious that I'm almost embarrassed to ask! I've been using fancyhdr to put some fancy headers and footers in my thesis template – in fact, doing what it says on the ...
10
votes
2answers
7k views

Problem with the header/ footer width

I have recently started using the geometry package to format the margins of my documents. Although, I've noticed that the width of the header/ footer remains the same. How can I correct this? ...
11
votes
2answers
7k views

How can I get no header but still get “page x of y” in footer?

I'd like to get "page x of y" in a footer on each page, and the way I've found is to use: \usepackage{fancyhdr} \usepackage{lastpage} \pagestyle{fancy} \cfoot{Page \thepage\ of \pageref{LastPage}} ...
6
votes
1answer
3k views

Format page numbers

How can I control look of the page numbers? For example, in the MWE below: \documentclass[12pt]{article} \usepackage[backend=biber]{biblatex} \usepackage{fancyhdr} ...
8
votes
1answer
3k views

Fancyheaders and special pages: contents, bibliography

I use the fancyhdr package and it works in general. Unfortunately, some "special" pages' headers, like those of the contents and bibliography, seem to resist every approach to format them. They show ...
6
votes
1answer
587 views

Include hspace in header/footer in fancyhdr? [duplicate]

Possible Duplicate: How can I force a \hspace at the beginning of a line? I am trying to put a postal address in the footer. I want the first line to be "Address: Address line1", then the ...
1
vote
1answer
4k views

Multiple header lines with fancyhdr in LyX?

Is it possible break up a long header or footer line so that they are positioned in two or more vertically aligned lines using fancyhdr? For example I want to break up "This is an example of a ...
6
votes
2answers
15k views

How to set the header font size using fancyhdr package?

Basically, I want the header fonts to use a different (smaller) font size than the size I set using \documentclass. What should be the option I'd be using ? \documentclass[12pt]{article} ...
4
votes
1answer
6k views

fancyhdr and memoir

When I wrote the code below gave the following error: ! LaTeX Error: Command \footruleskip already defined. Or name \end... illegal, see p.192 of the manual. See the LaTeX manual or ...
6
votes
1answer
651 views

fancyhdr plus fontsize 12pt causes varying vertical alignment of sections

Looking at the example provided in Different headers for different chapters, I noticed something strange: The vertical alignment of sections is varying. I was able to strip the effect down to the ...
11
votes
2answers
5k views

Different headers for different chapters

I cannot find in any latex forums a solution for my problem with chapter-specific headers. I am compiling a one-sided report with various chapters. For all the chapters, I have the header showing the ...
12
votes
3answers
4k views

Non-special first page in \documenclass{article}

I'm new to TeX and LaTeX, so I might not explain it all that well. I'm trying to put pagenumbers on each footer in the form "Page X of XX" using fancyhdr. So far I have this: \cfoot{Page \thepage\ ...
26
votes
1answer
828 views

Non rectangular page geometry

I am interested in using non-rectangular page geometries for my flipbook idea (in fancyhdr with image and flowing text). The page geometry that I'm after is that the text has a little rectangle ...