Questions tagged [fancyhdr]
{fancyhdr} is a package which allows the creation of custom page headers and footers.
1,341
questions
11
votes
1answer
12k 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).
11
votes
3answers
3k views
How to remove header on the page with big picture (or a page containing floats)?
Can you help me to remove header from the page where is only one big picture? I tried \thispagestyle{empty} but it removes a header on the next or previous page. I don't know how to remove it exactly ...
11
votes
1answer
4k views
Distance between top edge of paper and header
EDIT : Please apologize me. I forget to add two lines to MWE I think very essential to handle the problems. Please re-check the MWE.
There is parameter defining distance between bottom edge of top ...
10
votes
2answers
9k views
chapter heading appearing in appendix
I am using \fancyhdr package for the headings and report as a document class
samplecode is given below
\documentclass[a4paper,11pt]{report}
\usepackage[toc,page]{appendix}
\usepackage{fancyhdr}
\...
10
votes
1answer
14k views
\headheight Problem
I'm using LuaLaTeX of latest TexLive 2014 on Windows 7.
I want to overlap headers (page numbers) and documents.
My code is as below:
\documentclass[a4, 10pt]{article}
\usepackage{fancyhdr}
\...
10
votes
2answers
16k 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}
\...
10
votes
1answer
10k views
Understanding headers in scrartcl
I would like to get a better understanding, why using fancyhdr is not recommended using scrartcl. So far I haven't had any problems using them together but the output is always complaining that I ...
10
votes
3answers
4k views
How to hide header only in first page of each section with fancyhdr?
I want the header to be empty in the page were section begins and showed in the other pages. How can I do that?
\documentclass[12pt, titlepage, onecolumn, a4paper]{article}
\usepackage{lipsum} %% ...
10
votes
3answers
3k views
FancyHdr top rule that is not full width
By default, fancyhdr includes a headrule separator line that spans the text width at the top of the page. Is there a (simpler) way to get the headrule (or footrule, for that matter) to span only, say,...
10
votes
2answers
7k views
Difficult with fancyhdr and table of contents
Premise: I'm new with fancyhdr.
I defined the following fancy style:
\lhead{}
\chead{\slshape\leftmark}
\rhead{}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\...
10
votes
1answer
383 views
fancyhdr: How to start header at the very left margin of paper
I am trying to produce a document with a header that consists of a rectangle rounded on one side that begins at the very left of the paper width.
I fail at letting the rectangle begin outside of the ...
10
votes
2answers
1k 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 ...
10
votes
1answer
5k views
Replacing fancyhdr with scrpage2
I'm trying to reduce the number of packages I'm loading in my documents and I read on the KOMA documentation (and elsewhere) that it can define page styles better than fancyhdr. But each time I try to ...
9
votes
3answers
5k views
My footer disappears when I increase headheight
I have created a custom simple layout with the fancyhdr package. Because the header I must use is somewhat big, LaTeX instructed me to increase the headheight to at least a minimum value. The problem ...
9
votes
2answers
26k 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 (...
9
votes
1answer
2k views
Conflict between exam class and fancyhdr package
With the code below:
\documentclass[answers,a4paper]{exam}
\usepackage{fancyhdr}
\begin{document}
hello world
\end{document}
I get the build error:
! LaTeX Error: Command \lhead already defined.
...
9
votes
3answers
9k views
Graphics/logo in headers
I am writing a short note. I would like to include a graphics file with a logo in the header of all pages including the front page. The logo is roughly the size of the box generated in the example ...
9
votes
2answers
21k views
Different header for odd and even pages with fancyhdr
We are making a book with the document class book. We use the fancyhdr package to customize the headings. We want the book title on LE and the chapter name on RO. We tried
\usepackage{fancyhdr}
\...
9
votes
3answers
1k views
two different framed box in running head using fancyhdr
I would like to get the two different filled framed box in the odd and even side running head. Expected are:
my MWE is:
\documentclass{book}
\usepackage{fancyhdr}
\usepackage{tikz,lipsum}
\pagestyle{...
9
votes
3answers
7k views
Using the fancyhdr package, how do I have a footer but no header on the first page only
I would like to have a header and a footer throughout the document, however on the first page I would like no header with the footer remaining as it is throughout the document. So far all I can do is ...
9
votes
2answers
5k 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{\...
9
votes
4answers
12k 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 ...
9
votes
1answer
1k 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 ...
9
votes
1answer
39k 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.
\...
9
votes
1answer
5k 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
\documentclass[11pt,a4paper,twoside,openright,bibliography=...
9
votes
1answer
26k views
How can I customize and use the \leftmark and \rightmark commands with custom fancyhdr styles?
Question
How can I put the section name in the top right header on every page of my custom style mainmatter, but without the number. I do not want any subsections: ONLY SECTIONS.
Problem
First of ...
9
votes
1answer
15k views
fancyhdr - Only show sections, not subsections
Is there a way for the header to only print the title of the parent section? So in the example below, the subsection{LOL} page will have "1.1 LOL" written in the header. I just want it to say "...
9
votes
1answer
9k views
Inconsistent margins using fancyhdr and geometry
For my homework assignments I usually use the fancyhdr package to create a header that contains the group (A, B, C etc), homework title, my name + student number and the date. Besides that I ...
9
votes
1answer
7k views
fancyhdr headings , how to remove the number of the section
I'm French so it's not easy to explain my problem but I'll try.
I use fancyhdr to make my own headings (book class).
I want the section's title at the right of the heading in small caps, and only in ...
9
votes
1answer
2k views
How to get Part in header?
I am writing my master thesis in LaTeX. I am using the book document class and the fancy fancyhdr package. Now, I would like to have the "Part" on even and the "chapter" on odd pages. I read one of ...
8
votes
1answer
12k 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 ...
8
votes
1answer
5k views
Fancy headings with newgeometry
I'm working on a document consisting of several pages of text and a series of full-page figures. Since the figures are larger than the normal text width, I've used the geometry package's \newgeometry ...
8
votes
2answers
10k views
Logo in footer with aligned text
I want to create a latex class to create documents for my company. There is an example style for a word document but it looks more complex as most headers/footers I have found till now to re-create in ...
8
votes
2answers
503 views
Tcolorbox in footer with nobeforeafter adds space to other elements in footer
EDIT:
\documentclass[10pt]{article}
\usepackage{geometry}
\usepackage[skins]{tcolorbox}
\usepackage{fancyhdr}
\renewcommand{\footrule}{\hbox to\headwidth{\color{blue}\leaders\hrule height \...
8
votes
2answers
696 views
Automatically remove ruler when no header is present
This is a question triggered by Automatically remove page number in one-page documents.
When activating the fancyhdr package, it is necessary to clear the headers, which I do below with \fancyhf{}, ...
8
votes
1answer
13k views
Paper margins with fancyhdr package?
When I use the fancyhdr package, the paper margins stretched and the white space decrease, how can I set the paper margins correctly when using the fancyhdr package?
Here is the code,
\documentclass[...
8
votes
2answers
5k views
latex fancyhdr: is possible to use leftmark and rightmark alternatively?
I'm using this code to customize the header layout:
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\lhead{\nouppercase{\rightmark}}
\rhead{\thepage}
I would like to have the section name in the top ...
8
votes
1answer
4k 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.
\...
8
votes
2answers
4k views
Decrease space between paragraph and header
How can I decrease the white space marked with blue? I tried \vspace with negative marks but to no avail (it normally does the trick but not this time). I am using the 'fancyhdr'-package.
\...
8
votes
2answers
891 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 ...
8
votes
1answer
14k views
How to set custom headers?
Having some experience with Latex, I'm now using LyX seriously for the first time. Since I need to set custom headers, I have enabled the Custom Header/Footerlines module and set the page layout to ...
8
votes
2answers
551 views
Page number in the margin and separator
I want to produce this kind of header.
My first attempt includes the use of fancyhdr package but still I can't figure out how it is possible to move the page number in the margin and put the | bold ...
8
votes
1answer
874 views
What is the difference between \\ and \linebreak in cfoot
\documentclass[a5paper,10pt]{article}
\usepackage{array,tabularx,longtable,tabu}
\usepackage{colortbl,tikz}
\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\rhead{\thepage/\pageref{...
8
votes
1answer
2k views
How to configure Table of contents itself?
The aim is to manually configure the page(s) the TOC itself.
The font size of TOC name.
Also I need to configure pagestyle of this(these) page(s)
The components by using \titlecontents I've already ...
8
votes
1answer
2k 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 ...
8
votes
2answers
3k views
Problem with \chapter* and fancyhdr
I'm having a problem with \chapter*{} and fancyhdr. I want to start the first chapter of my thesis with a introduction section, appearing in the TOC but without numeration, that's why I use:
\chapter*...
8
votes
1answer
5k 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 ...
7
votes
3answers
3k 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 ...
7
votes
3answers
9k 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 ...
7
votes
4answers
2k views
How to get a big table on a page with pagestyle empty?
In my document I have a table that is quite big. I would like to have this table on a page with no header and no page number. How can I get this table on a \thispagestyle{empty}? Using it withing the ...