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

learn more… | top users | synonyms

-1
votes
1answer
54 views

Spiral around cylinder [duplicate]

i want to draw a spiral around cylinder. Can you help me? something like that http://www.unitmath.com/um/p/Examples/GeometricSolids/Spiral.gif Thank you very much.
1
vote
1answer
29 views

Switch from portrait to landscape maintaining margins [duplicate]

There is a portrait document in which only the second page have to be made landscape (the document has header and footer made with fancyhdr). To accomplish the portrait to landscape turn I'm using the ...
0
votes
1answer
11 views

`fancyhdr` to include just Chapter in header

Using fancyhdr is there a way to restrict the header to just the Chapter names (ignoring any section names?) Spinning off of my previous question [here]:1 I would like to limit the header information ...
0
votes
0answers
19 views

headers and footers acting strangely with floatpag package

Using the fancyhdr package, I have a LaTeX document with the following headers and footers: Underlined chapter name at the top of each page. Page number at the bottom of each page. I was also ...
0
votes
0answers
19 views

How can I produce better spacing between header and content when using fancyhdr package?

I am currently using the fancyhdr package with the following setup: %BOOK FORMATTING \usepackage{fancyhdr} % nice header format \fancyhead[RO, LE]{\textbsf{\thepage}} % ...
0
votes
0answers
29 views

how to remove half line in twocolumn in first page?

I want half line in twocolumn article but in first page like this first page second page \documentclass[landscape,12pt]{article} \usepackage[margin=1cm,top=1.3cm,bottom=1.3cm,headsep=5mm] ...
0
votes
1answer
19 views

Change Page Size Mid-Document: Fancy Header and Footer Horizontal Width

When changing the paper size within a document, the fancyhdr package does not recognize the alteration of the layout width. This page details how to change page size mid-document. An answer has been ...
4
votes
1answer
35 views

Custom header not working as expected using fancyheader

I want to have a custom header like the following: Chapitre5 (Chapter5) in the left and the name of the chapter in the right(Mise en oeuvre) I used this in my root .tex file: \usepackage{fancyhdr} ...
2
votes
1answer
36 views

Alternating page numbers

How can I have alternating page numbers in the footer (using fancyhdr) in the form of (left footer) page x of y -nextpage- (right footer)page x2 of y? I now have \pagestyle{fancy} \cfoot{\thepage\ ...
3
votes
1answer
65 views

Fancyhdr does not apply the right style

I am using Latex for the first time, to write my thesis. I organized my work as a main file that calls several others using subfiles, since I like to compile a single chapter while I am working on ...
1
vote
0answers
25 views

Applying fancyhdr on pages where new chapters start

I'm using the book.cls document class and the following fancy header: \usepackage{fancyhdr} \fancyfoot{} \fancyhead[RO,LE]{\thepage} \fancyhead[LO]{\leftmark} \fancyhead[RE]{\rightmark} This works ...
2
votes
1answer
33 views

Different texts in odd and even pages in footer

MWE \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{fancyhdr} \usepackage{pifont} \usepackage{lipsum} % dummy text ...
4
votes
2answers
49 views

Different texts in various pages in footer

MWE \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{lastpage} \usepackage{fancyhdr} \usepackage{pifont} \begin{document} ...
1
vote
1answer
43 views

How do you align page numbers 2 and 3?

I am formatting a 115 page book. I have a really strange problem. Page numbers 2 and 3 are not horizontally aligned as you can see in the screenshot. I have checked other page numbers and they are ...
0
votes
0answers
27 views

Section name in the header

I want to make Latex display the subsection name (i.e. "2.1 Subsection") in the left header and the section name (i.e. "2 Section") in the right header. I use the following code: % !TEX TS-program ...
0
votes
1answer
35 views

Add a (different) footer to the last odd page

I have a twoside document and I'm using fancyhdr. Each even-page has footer 'A', all odd-pages have footer 'B' but now I would like the last odd page to have footer 'C'. It's no problem to add the ...
0
votes
0answers
29 views

How to add chapter names in header

I like to add chapter names in my header. Currently I used this command \fancyhead[RO,LE]{Chapter \thechapter} which can only show the chapter number . How can I add names instead of numbers.
2
votes
1answer
56 views

Why is the page number not in the footer of my page?

When I use the below code, the page number on page 2 appears above the footer. Why, and how do I put it in the footer? And what happened to the footer line on page 1? \documentclass{article} ...
3
votes
2answers
34 views

Creating a custom copy of pagestyle plain with fancyhdr?

Consider this MWE (compiles with pdflatex -shell-escape test.tex): \documentclass{book} \usepackage{filecontents} \begin{filecontents*}{insert.tex} \documentclass{article} \usepackage{lipsum} ...
2
votes
1answer
22 views

Overfull hbox in header

I get an overfull hbox in a header within command for \rhead, which I didn't expect since it's right justified. For some reason, removing the footer seems to fix it, yet removing the tikz package ...
0
votes
1answer
44 views

footruleskip already defined error when remove header line - abntex

I'm trying to remove the line of the header. Doing some searches, the best answer was \renewcommand{\headrulewidth}{0pt} but when I add the package fancyhdr I get an error saying that the footruleskip ...
2
votes
1answer
22 views

tabularx right bar half of left bar

So I'm trying to add a table to the header of my document. Basically I'm trying to match the style created in MS Word originally. \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand\headrule{} ...
0
votes
0answers
19 views

hypdvips causing content to overflow into footer

I am having problems with the content of the page running over into the footer. Here is my Minimal Working Example. \documentclass[a4paper,11pt,twoside]{book} \usepackage{fancyhdr} ...
0
votes
2answers
35 views

setting header inside document for some pages

How can I set different header for different sections. In this example I am looking for replacement of \SomeCommand \documentclass{article} \begin{document} \SomeCommand{Header 1 define here} %this ...
2
votes
1answer
29 views

Extra line space being inserted, unrequested

I have created a survey form over two A4 pages, using tables. I have fancyhdr on top of each page and have suppressed the \maketitle command. Both tables have almost exactly the same content (the ...
0
votes
2answers
55 views

Top margin fancyhdr

I've been starting to use the \fancyhdr package now, using next commands: \newgeometry{left=1.5in,right=1.5cm,top=3cm,bottom=2.5cm,headheight=1cm} (after \begin{document} and after the input of the ...
1
vote
1answer
40 views

How do I remove header and footer from contents page and list of figures

This is the code I've used for the header and footer. How do I remove header and footer from contents page and list of figures? \usepackage{times} \usepackage{fancyhdr} \usepackage{graphicx} ...
0
votes
0answers
28 views

Some pages are being right aligned while some are being center aligned.What is wrong in the way I have used fancyhdr?

There seems to be no pattern in which pages are right or center aligned
5
votes
2answers
68 views

Wrap page number in colored box in footer

I a looking for a way to achieve the following outcome for the page numnbers in my footer created using fancyhdr: My current code in a stand-alone example looks like this: ...
1
vote
1answer
48 views

fancyhdr and chapter*

I'm using fancydr like this: \usepackage{titlesec} % Normal chapter titles \titleformat{\chapter}{\normalfont\LARGE\bfseries}{\thechapter.}{1em}{} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} ...
3
votes
2answers
56 views

Remove header from the page after TOC and LOF

I am using Koma-script book document class, twosides, and I also use the package \fancyhdr to modify my pages. The problem is that header appears both in the next page after TOC and after LOF, so I ...
2
votes
1answer
44 views

How to get rid of the “chapter” word with \leftmark?

I'm using fancyhdr to make customs headings and I would like to know if there is a way to get rid of the "chapter" when I use \leftmark in my header ? The document is in oneside report. Thanks !
1
vote
0answers
37 views

Remove header in fancyhdr with new sections

I'm writing my thesis in LyX with the article class. I want my headers to have the "Section X. " except for the pages where the new sections start. Is there any way to do this? My current code is as ...
1
vote
1answer
39 views

Typesetting Error using TeXworks

I am trying to make a minor tweak to a template using TeXworks. I am new to LaTeX so forgive me for my ignorance. The file type is pdfLaTex. When making the slight adjustment and clicking the green ...
4
votes
1answer
71 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 ...
1
vote
1answer
16 views

Header: no number for references page

How can I make sure that the references page has no number in the header (i. e., I still want a header, but without a number). MWE with the problem: \documentclass[]{article} \usepackage{fancyhdr} ...
1
vote
1answer
26 views

Right align header not working

I'm trying to align my header to the right side but it is not going all the way to the right. Here is a minimal example (I'm including my margins in case that is part of the problem? I honestly ...
1
vote
1answer
57 views

Header with section name

I am writing an article document, without parts so the biggest item is the section (I also use subsection and subsubsection) in LaTeX and I am trying to configure the header so that : for each ...
1
vote
0answers
33 views

Can't redefine page style in book class

I have derived a class from the standard book class. I want to redefine the header and footers. But if I use the following code \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \fancyhf{} % ...
3
votes
1answer
65 views

How to replace fancyhdr to a right scrbook way?

I've seen is not right to use fancyhdr with scrbook, i've got a code with fancyhdr and i want to replace it to scrbook. This is the code: \usepackage{fancyhdr} \pagestyle{fancy} \lhead{TEMA 13} ...
2
votes
2answers
45 views

Being able to define headers by hand in each part/chapter of a book

Consider the following code inspired from egreg's answer to this topic: \documentclass[11pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} ...
2
votes
2answers
49 views

fancyhead gradient doesn't match bg colour

I have a "fading line" from white to grey in my header. I wanted to add a page with a different background colour, and therefore fade from this colour instead of white. The problem is that the start ...
5
votes
3answers
95 views

Header and footer for a book using: part on even page and chapter on odd page

My goal is to realize this layout for a book (possibly using fancyhdr, but I'm open to everything): where the current layout is represented in grey. In other words, I want : to put the page ...
1
vote
1answer
35 views

Header line doesn't span width of page

I am using the following code to create a header using fancyhdr: \documentclass{report} \usepackage[margin=3.0cm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} ...
0
votes
2answers
97 views

TOC and header versions of section titles (titlesec interferes with fancyhdr)

I am working on a long document with many chapters, using report class. I would like to have three different versions of certain section titles (long for document, medium for TOC, and short for ...
2
votes
2answers
43 views

Trouble switching between pagestyles

I am working with the following document: \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \setlength{\headheight}{13.6pt} \fancypagestyle{plain}{ ...
2
votes
1answer
63 views

Fancyhdr - No “Chapter” Word, but part number

I am having trouble defining my headers with the fancyhdr package. Here is what I want : - on the left page, on the left side : partnumber.chapternumber. Chapter Name - on the right page, on the right ...
2
votes
2answers
59 views

Removing fancy style from part pages

I am using the fancyhdr package to set headers and footers for the thesis. I have recently added LaTeX \parts, and defined a pagestyle for this purpose called 'partpagestyle'. As the MWE below shows, ...
1
vote
0answers
68 views

Why does section and chapter's name overlapping?

Please help me with the following problem. In the header the chapter name and section name overlapp. It's strange, because (as I show below) I commented the \sectionmark Why does the section name ...
4
votes
3answers
74 views

How to correctly include a header image only on the first page

I found a nice Latex template here and I would like to include an image to to the header which is aligned in the right side. I like the template, which is why I would like to adapt it. I included a ...