Questions tagged [fancyhdr]

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

Filter by
Sorted by
Tagged with
8
votes
2answers
6k 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
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 ...
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
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
5k 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
950 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
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 ...
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
661 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
5k 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
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
4answers
1k 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
4k views

Glossaries and custom section headings broken

I've a document, where I use the glossaries package to manage acronyms for me. Sometimes, I use a \gls{} command inside a section heading, and I have defined page headers to have the current section ...
7
votes
2answers
496 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
231 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

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 ...
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
3answers
5k 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
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
7k 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
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
818 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
2answers
5k views

Get FancyHDR and geometry to work nicely

In the MWE, geometry is set to leave a top margin of 1cm on the top and on the back of the page. Yet, with FancyHDR on the top of that, occupy some parts of this margin and I have to manually tweak ...
7
votes
1answer
502 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
18k 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 ...
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
499 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
2k views

Page header with gray background and without margin

After finishing my thesis in LaTeX (I am an absolute newcomer) I've been asked to format it in a specific design matching a doc-file I received. I've managed to change titles and fonts and margins ...
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
1k 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
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
31k 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 ...
7
votes
1answer
4k 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: \renewcommand{\chaptermark}[1]{\markboth{#1}{}}...
6
votes
2answers
14k 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
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
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
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
21k 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
15k views

Placing page numbers with Fancyhdr

I have looked through many of the posts on this website, but I am still having trouble placing my page numbers in latex the way I want it. Essentially, I want to mimic the way MS Word formats page ...
6
votes
1answer
636 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
608 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
8k 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
5k views

How to reclaim space from removing headers and footers

I'm using the fancyhdr for headers and footers in most of my document, however there are some pages, such as the title page, for which headers and footers aren't wanted, and for these pages I've set ...

1 2
3
4 5
30