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

learn more… | top users | synonyms

1
vote
2answers
390 views

glossaries, fancyhdr: acronym not replaced properly

In the following example the acronym is not replaced properly in the header and look like in this screenshot: \documentclass{book} \usepackage{fancyhdr} ...
3
votes
1answer
309 views

page number in top right intersects with the page text

My text and the top right page number seem to intersect when using fancyhdr: \documentclass[a4paper,oneside,12pt]{report} \usepackage{amsmath} \usepackage{amssymb} \usepackage{bm} ...
7
votes
1answer
3k views

Change leftmark in fancyhdr

Can anyone tell me how, in the minimal example pasted below, I can achieve that the dot after Appendix in the header disappears? I understand that it is there because I simply made the number of the ...
3
votes
1answer
350 views

Fancyhdr - How to add a footer line outside of the footer area?

I am a beginner in LaTeX, tentatively using it for industrial documents. I am trying to mimic a company form. I do not understand why in the MWE, the content of the minipage, that I would like to see ...
2
votes
1answer
4k views

Force fancyhdr on table of contents page?

I'd like to have my header appear on every page except the first (title page). However, it's not appearing on the first page of my table of contents(regardless of where it appears in the document). ...
5
votes
1answer
778 views

Using \thesubsection in header references last instance - not first

I would like to include \thesubsection in my header, referring to the first instance of subsection, and not the last as seems to be the default. The following MWE says it all: ...
2
votes
1answer
594 views

Modify footer of first page in custom class

I know I can do \maketitle \thispagestyle{fancy} But I want my custom class that I am making (based on article) to do this for me. It already does pagestyle{fancy}, but I can't get it to change the ...
2
votes
1answer
443 views

\markboth{}{} and CJK

I'm writing a Japanese dictionary using the CJKutf8 package in LaTeX. I wrote a few macros to make entries and everything works fine except setting headers with fancyhdr. Using a macro: ...
8
votes
1answer
4k views

Change color of a type of text like header/footer

Can we change the color of a logical type of text, say every header or every footer, by a single command? Header and footer is using fancyhdr. I believe it should be a \renewcommand but won't it ...
2
votes
1answer
475 views

URL doesn't work in header

\documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage[MeX]{polski} \makeatletter \renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad} ...
4
votes
2answers
613 views

How to include headers and footers for pages between chapters?

\documentclass[12pt,a4paper,openright]{mwrep} \usepackage{lipsum} \usepackage[top=2cm,bottom=2cm,left=3cm,right=2cm,twoside]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} ...
4
votes
1answer
737 views

Page number intersects text when using fancyhdr

As i mentioned in title, i can't manage fancyhdr to work. I can't remove page numbers. And page numbering is not stable. And this is the result. As you can see one iii is at the bottom but iv is at ...
2
votes
2answers
2k views

fancyhdr - anomalous behaviour on first page

I am having trouble typesetting multi-line headers using fancyhdr The header on the first page behaves differently than the header on subsequent pages. The first page header has no depth, but produces ...
1
vote
0answers
52 views

How to remove header bar in fancyhdr's \pagestyle{fancy} [duplicate]

Possible Duplicate: How to remove the top horizontal bar in fancyhdr? I am working on my report and found one example. \documentclass{report} \usepackage{fancyhdr} ...
5
votes
1answer
2k views

fancyhdr style problem

I am having some problems with the fancyhdr package. How can I achieve the following in my big thesis file: The header should consists of the chapter name at the left side and the page number at the ...
2
votes
1answer
764 views

Using different layout for makeindex name

I would like to use different layout for \indexname \documentclass[8pt,b5paper,twocolumn]{extbook} \usepackage[top=2cm, headsep=0.4cm, bottom=1.5cm, left=1.5cm, right=1.5cm]{geometry} ...
4
votes
1answer
865 views

Can't get \fancyheadoffset to work

I have loaded the fancyhdr package and I want to make the headers and footers wider (clamp them to the margin), so I inserted the following line after the package has loaded: ...
1
vote
1answer
325 views

TeXbook headers

\documentclass[10pt,% % corpo del font principale a4paper,% % carta A4 twoside,% % fronte-retro %openright, ...
0
votes
0answers
112 views

How to create a table of contents with thumb indexes? [duplicate]

Possible Duplicate: Adding chapter marker to far right edge of page How do I create a table of contents with thumb indexes as shown in chapter 21 of the fancyhdr manual? The manual ...
4
votes
1answer
13k views

Fancyhdr on the first page only [duplicate]

I'm writing an article and I need to put a figure on the top right but only on the first page. Also on the top left I need to place the type of article for Example Scientific Paper (left ...
2
votes
1answer
405 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 ...
11
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
11k 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
277 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
3k 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
362 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
481 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
19k 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
495 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
448 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
362 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
763 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
6k 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
879 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
3k 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
796 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
700 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
639 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, ...
5
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
440 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 ...