Questions tagged [fancyhdr]
{fancyhdr} is a package which allows the creation of custom page headers and footers.
1,341
questions
7
votes
4answers
814 views
fancyhdr (or alternative?) on first page only in documentclass letter
Similar questions have been asked before but none of them seem to answer my question. I want a \documentclass{letter} with an image in the header of the first page only. I can achieve this with ...
7
votes
1answer
13k views
Fancyhdr adding multiline header causes footer margin to be inconsistent?
I have been searching to fix this problem for a while now. When I use the fancyhdr package to create headers and footers, and I run my code, as long as the header does not take up multiple lines, the ...
7
votes
2answers
390 views
Make fancyhdr reproduce exactly the standard configuration
Which arguments make fancyhdr reproduce exactly the standard page layout when using the book document class?
The standard layout of fancyhdr introduces upper and lower bars, it capitalizes the names ...
7
votes
2answers
216 views
inaccessible when using nth in title expansion with fancyhdr and biblatex?
I really hate that I have to ask questions whenever I hit a problem with Latex, instead of fixing them myself. But there you go - MWE as test.tex:
\documentclass[a4paper,12pt]{article}
\usepackage{...
7
votes
2answers
6k views
How to use fancyhdr and \maketitle concurrently
I'm trying to use fancy header and \maketitle concurrently. This causes a problem because apparently \maketitle calls \plainstyle, which overrides the fancyhdr settings. Is there a simple patch for ...
7
votes
1answer
2k views
How do you use Psvectorian?
Can someone provide a short explanation or example of using psvectorian?
http://melusine.eu.org/syracuse/pstricks/vectorian/psvectorian.pdf
Specifically, I am looking for an explanation of how to ...
7
votes
1answer
2k 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 ...
7
votes
2answers
3k views
Entering the title in the footer
How do I insert the title in the footer? And decide if it is set or not?
%preteste.sty
\usepackage{fancyhdr}
\usepackage{lipsum}
\renewcommand{\title}[1]{\gdef\@title{#1}\gdef\mytitle{#1}}
\...
7
votes
2answers
4k views
How to have two lines in fancyhdr
Sometimes I have long chapter and section names. Having them written in a header causes overlapping problems.
So what I would like to have is two lines in my header. I want to have chapter number and ...
7
votes
2answers
2k views
How to clear footer for the last page?
In the preamble of an exam I am creating, I currently have:
%headers, footers
\usepackage{fancyhdr}
\pagestyle{fancyplain} %header
\fancyhf{} % sets both header and footer to nothing
\renewcommand{\...
7
votes
1answer
1k views
Huge ornament chapter numbering
Well, I'm using a such a code bellow, basically I would like to add ornaments to the numbering of this chapter... Any ideas, examples please? thanks a lot
\renewcommand{\chaptermark}[1]{\markboth{#1}{...
7
votes
1answer
1k 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 ...
7
votes
1answer
6k views
fancyhdr package not working proprely
I'm trying to numerate pages depending on even and odd and add chapter name the left part of the header and section name to the right.
here's the code,
\usepackage{fancyhdr}
\pagestyle{fancy}
\...
7
votes
1answer
45k views
Page numbering at bottom of page
I am writing my thesis and I am using document class thesis. I want the page numbering appearing at bottom of the pages and centered.
\documentclass[12pt,a4paper, oneside, bold]{thesis}
\usepackage[...
7
votes
2answers
1k 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 ...
7
votes
1answer
760 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 ...
7
votes
2answers
1k views
Simple school style report headers
I want to use LaTeX to do a school paper. I need the professor name the class name and class time all to be in the upper right corner of every page. The fancyhdr package, at least in it's default ...
7
votes
1answer
399 views
Inserting predefined paragraph numbers in page header
I am dealing with translated texts that have "paragraph" numbers which are already defined in the source, with which I must keep consistency. Hence I can't use \theparagraph to generate the numbers. ...
7
votes
1answer
3k views
Header and Footer offset in Exam Document Class
I am using the exam document class and I want to implement a layout where the headers and footers span over both the text body and the margins.
I tried using the \fancyhfoffset command from the ...
7
votes
1answer
494 views
lost formating on one page
Formating on one page is broken, namely in header part there is missing one parameter (word) and the columns looks differently as shows the picture bellow.
How can I correct the formating?
The script ...
7
votes
1answer
4k views
how to use fancyhdr package to customize headers in landscape page
I have used the fancyhdr package to customize the header of my pages. However, when I want a page to be landscape (by using the pdflscape package), it does produce a page in landscape orientation, but ...
7
votes
1answer
1k 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
...
7
votes
1answer
996 views
How can I horizontally align rows in fancyhdr?
How can I left-align the [multiple-row] text in the right portion of my header using fancyhdr? I have something like this
\rhead{row 1\\row 2\\row 3}
where the rows aren't the same length, and I ...
7
votes
1answer
10k views
fancyhdr package not working
So I'm using the fancyhdr package and compiling my code and it gives me no error whatsoever but it's not working, it does not display any header or footer and keeps giving me number on the bottom ...
7
votes
1answer
2k views
Show chapter name in fancyhdr when no section is available
The following code shows only section names in the headers.
\documentclass[12pt,a4paper,oneside]{report}
\usepackage{fancyhdr}
\usepackage{lipsum}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\...
7
votes
1answer
15k 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 ...
7
votes
1answer
30k 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 ...
7
votes
1answer
5k 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 ...
6
votes
1answer
14k views
Fancyhdr and scrreprt
I try to use scrreprt and fancyhdr for getting the chapter at the head of even pages left and the section at odd pages right:
\documentclass[12pt,a4paper,twosides]{scrreprt}
\usepackage{fancyhdr}
\...
6
votes
4answers
2k views
Use of shaded box for section numbering only?
I have been wondering "how to get shaded box for section numbers only"?
Also, How to get grey square in between left mark and page number in the header? In code below I can get solid black square.
I ...
6
votes
2answers
7k views
Retrieve only chapter name in fancyhdr
In the tufte-book document class, I am having a hard time figuring out how to insert the chapter name in the header of right odd-numbered pages with the fancyhdr package.
Something like:
Chapter 2....
6
votes
2answers
16k views
Writing thesis using fancyhdr - problems with section title
I am writing my thesis using LaTeX with a provided thesis document class, which uses fancyhdr. My problem is that both the chapter and section titles appear automatically in the header, writing over ...
6
votes
1answer
19k views
How to print the section name without the section number in a fancyhdr header?
I've copied a code to have a header that prints the section name on the left and my name on the right:
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #...
6
votes
1answer
593 views
can't find issues identified by nag
I am somewhat new to LaTeX, but am currently working on a project (trying to use pdflatex for automated .pdf report rendering). I just learned about
\RequirePackage[l2tabu, orthodox]{nag}
today, ...
6
votes
1answer
2k views
Page number appears twice in the page
I don't know why I am getting two page numbers on the same page, one in the center and one on the right:
\documentclass[a4paper,12pt]{report}
\voffset=-1in
%setting the header
\usepackage{fancyhdr}
\...
6
votes
1answer
6k views
Fancyhdr vertical overlap with body section title
I am writing up a product report, and building my header with fancyhdr.
On the first page, the section header (in the body) is overlapping with the page header, as shown here:
This is not repeated ...
6
votes
2answers
4k views
package fancyhdr: no dot behind chapter number in header
I am using a university template and want to modify it just a little bit.
How can I remove the dot behind the chapter in the headings?
Here is a "minimal" example.
\documentclass[paper=a4 , twoside=...
6
votes
1answer
598 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 ...
6
votes
2answers
6k views
How to put fancy header on all pages except the first page?
I am trying to put fancyhdr custom style on all pages except first one, but it either shows up on all of them, or on none, I can't make this style to go from second page, im new to latex, so any help ...
6
votes
1answer
2k views
scrpage2 conflict with fancyhdr
This is a followup to
How can I add “page # of ##” on my document?
The MWE below works fine with the scrpage2 line commented out, but not with. With that line uncommented, I get the error:
Class ...
6
votes
2answers
2k 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}
...
6
votes
2answers
177 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 ...
6
votes
1answer
9k 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). ...
6
votes
1answer
2k 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?
6
votes
1answer
14k views
Get sectionmark in fancyhdr without chapter number
I have been trying to get this done for hours, but I can't get it to work.
I want the left header in my document to appear as the name of the chapter, no numbers. The right one (the one causing ...
6
votes
1answer
7k views
multiline using fancy footer
A simple question. Multiline in footer.
centered and leftmost text is ok, but i am not able to do righ footer multine. The first line always go to the center.
\documentclass[a4paper,10pt]{article}
\...
6
votes
1answer
2k views
fancyhdr - Header Line is removed on beginning of chapter
When compiling the code below, there is no line in the header in the beginning of the chapter.
How do I change it such that the header looks the same on all pages? Thanks
\documentclass{report}
\...
6
votes
1answer
23k views
Same header and footer for every page
I have a problem with my header and my footer.
If I do that:
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\includegraphics[width=8cm]{img/header.png}}
\fancyfoot[L]{ Name Firstname - v1.0 \\ Date}}
\...
6
votes
1answer
6k 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
1k 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 next ...