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

learn more… | top users | synonyms

1
vote
1answer
46 views

Misaligned fancyhdr footer when using color [duplicate]

Strangely, using {\color{}} in \lfoot{} is causing my footer parts to misalign. This code \documentclass[11pt,a4paper]{article} \usepackage{fancyhdr} \usepackage[pdftex]{color,graphicx} ...
5
votes
3answers
142 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} %% ...
1
vote
1answer
64 views

move margin of pages for bookbinding

\documentclass[a4paper,12pt,openright,twoside]{book} \usepackage[utf8]{inputenc} \usepackage{indentfirst} \usepackage{fancyhdr} \usepackage{booktabs} ...
1
vote
0answers
127 views

Fancyhdr problems with regular footnote!

I am using fancyhdr package. I want a fancy footer but, also want regular footnote to come...is there some way to do both? My code is as follows: \documentclass{article} \usepackage{fancyhdr} ...
0
votes
0answers
66 views

Section spacing suddenly dynamic

I'm using LaTex in combination with MikTex and just recently introduced the fancyhdr package to my thesis. For some reason, when using the \subsection or \subsubsection commands I sometimes get the ...
2
votes
0answers
70 views

table of contents modification with fancyhdr [closed]

I am using the fancyhdr package in the article document class. I would like all pages (including the table of contents page) to have the header and footer that I prescribe in the preamble. I would ...
1
vote
1answer
313 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 ...
1
vote
1answer
67 views

fancyhdr does not display chapter name

I am using the fancyhdr package to create the headers and footers in my document. I wanted to display the chapter name on the left side of the page, so I defined my header like this: ...
8
votes
3answers
274 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, ...
4
votes
1answer
89 views

How to move the page number to the bottom of the page for a single page

I am making a book with the fancyhdr package. I have some headers that put page numbers on the top corners of the pages. On pages that are started by \chapter, LaTeX moves the line number down to the ...
1
vote
0answers
46 views

table of contents and fancyhdr

I'm using the report class to write my phd. But when I tried the \usepackage[Conny]{fncychap} I have to delete \tableofcontents \listoffigures and \listoftable, otherwise it wouldn't work. ...
5
votes
1answer
141 views

Missing footer problem

I am trying to format my document with different header and footer for first page. I have done it successfully for the first page but the footer of the second page is not visible. I think the margins ...
0
votes
0answers
19 views

page number first page of chapter on right side [duplicate]

I'm writing my thesis. I'm using this pagestyle: fancy But page number in first page of chapter appears in the middle of page. I want to move to right side. Can I change it ?
1
vote
1answer
116 views

Using titlesec to have \chaptertitle and \sectiontitle in twosided report

I would like to customize the headers of my report. These should contain chaptertitle and sectiontitle. From here: Header not displaying correctly on chapter page due to subsection I have made an ...
2
votes
0answers
69 views

Irregular behaviour when mixing \pagestyle and \newpage and \marginenote

This might be a newbie question, but I have been struggling for hours to find out what is going on and still it does not make any sense. I managed to create a MWE, but when I gradually transfer to ...
1
vote
2answers
59 views

How do I format the header text of the table of contents?

I'm new here, I have tried to solve most of the problems with my TEX code and so far I have been successful in solving all of them except for this one. I would like to show the word "CONTENTS" in the ...
2
votes
1answer
45 views

Fancyheader and Appendix

I am having some trouble combining fancyhdr with my Appendix. There's two problems. The first is that the header doesn't show the correct information on the page just before the Appendix (the last ...
1
vote
1answer
185 views

Header font in LyX

I would like to change the header font in my book ms from serif to sans serif. I've spent much time trying to find the answer on the web. I'm using book (KOMA script) and fancyhdr. Can some kind soul ...
1
vote
2answers
171 views

Problems with header and footer in documentclass book

I tried to use a header and footer layout I found here on this website. But I have some problems with changing the code to what I want. I want the pagenumbering to be like page x of y in the footer. ...
1
vote
1answer
154 views

fancy header on bibliography first page

I have used a different first page for all my chapters in my thesis which are defined using: \titlespacing*{\chapter}{0cm}{3cm}{0.5cm} ...
0
votes
0answers
71 views

Change fancy header on one specific page

I have a problem with my thesis. I use fancy header as environment in my document. Code: \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \fancyfoot[EL]{\thepage} ...
2
votes
1answer
68 views

LaTex: Page numbers between hyphens

How do I get page numbers to appear like: - 1 - I followed http://tex.stackexchange.com/questions/40114/format-page-numbers but it just added an annoying header at the top of the page: ...
1
vote
0answers
78 views

Create a document cover using style class

I'm wanting to create a latex class called projeto.cls that should create this report cover image below, which has the following headers and footer for all reports generated. The fields defined entrie ...
4
votes
3answers
139 views

How to center \rhead

I currently have my header as follows \pagestyle{fancy} \setlength{\headheight}{39pt} \renewcommand{\headrulewidth}{0pt} \lhead{\includegraphics[width=.1\textwidth]{Logo}} % Frist page only header ...
2
votes
1answer
108 views

Fancyhdr, even and odd

I want to add the chapter name to the header of even pages and section name to odd. But the output show me just the name of section in every page (odd or even). In below, you can find the sample of ...
1
vote
1answer
250 views

Fancyhdr, chaptermark and table of contents

I'm using fancyhdr for editing the header of my document. I have the following code: \documentclass[a4paper,12pt,oneside,titlepage]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
1
vote
2answers
56 views

Applying a style globally (example in fancyhdr - across page styles)

Imagine I wanted to make all footers, pagestyles, etc. in bold. There's nothing like a \globalpagestyle or something, so my take on the problem was something like this: \documentclass{article} ...
8
votes
2answers
174 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 ...
0
votes
1answer
130 views

How to make fancyhdr examples work

In the Train­ing slides, with ex­am­ples of the fancyhdr resources there's an example which unfortunately doesn't work or is poorly documented. According to ...
5
votes
1answer
47 views

Subsection only in even header

Starting from the following code: \documentclass{book} \usepackage{lipsum} \usepackage{fancyhdr} \fancypagestyle{standardstyle}{% \fancyhf{} \fancyhead[RO]{\large\raisebox{.1cm}{\leftmark}} ...
1
vote
1answer
218 views

How to add full width header? [duplicate]

I'd like to add a header containing of a picture (aligned left with text), multirow text and a picture (aligned right with the text). I found fancyhdr which has an inacceptably compilcated ...
2
votes
1answer
189 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 ...
2
votes
1answer
87 views

Fancyhdr, problem with chapter titles

I've asked my first question on the forum yesterday and I've done several mistakes in it, making the subject not understandable so I've decided to delete the question and start again properly.... I'm ...
0
votes
0answers
25 views

pagestyle{fancy} will cause second page to have different alignment [duplicate]

In the below image I copied the second and third page above one another. As you can see the alignment is incorrect. After the third page (including the third page) everything works fine. I am using ...
1
vote
0answers
59 views

When do variables in classes get evaluated? [closed]

I am developing a non-trivial class that is fairly large and complex. So far, everything has worked the way I designed it to be. I apologize ahead of time as I cannot provide a MWE as my question is ...
2
votes
1answer
67 views

How to get chapter name to appear in fancyhdr report?

I am trying to get the chapter to appear in the header, but it always just displays "CONTENTS". The following is my demo code: \documentclass{report} \usepackage[demo]{graphicx} ...
3
votes
1answer
97 views

Sectionname of section at top of page in footer

When fancyhdr prints the header and footer, I believe it uses the following order: Print header Print page Print footer The problem with this order is that when you have a section in the middle of ...
4
votes
3answers
144 views

Chapter name in header of page

I'm looking to get chapter names in the header of my document. I am using the article class, and the code below is an example of how each chapter/section begins. \noindent {\huge \textbf {Chapter 1}} ...
1
vote
2answers
121 views

Print a short title in the header

I'm creating a style file to use as a template for submissions to a specific journal. That journal requires a short title in the header. I could easily hard-code such a short title in the style file ...
5
votes
1answer
181 views

I am at sea with the \markboth \leftmark \rightmark and so on ! Is there a simple explanation?

My problem follows from my difficulties with the english explanations on the marks, from the readmes of fancyhd or titleps, in order to modify the headers. I do not understand the business behind the ...
3
votes
3answers
241 views

Fancyhdr - Is it possible to have a small table inside header?

Ok, I'm trying to create this type of formatting for each of my pages: Now, I want to have this on every single page, in the header on the right hand side. I currently have the following: ...
2
votes
1answer
99 views

Vertical alignment of image an text within tabular environment placed in header using fancyhdr package

The adjustbox package provides a way to vertically align image and a paragraph of text within the tabular environment; I have included an example which shows this: mwea.tex \documentclass{article} ...
3
votes
1answer
67 views

Alignment of image (via includegraphics) in fancyhdr with and without tabular environment

Below I show two examples; an image (via includegraphics) is placed in fancyhdr with and without tabular environment. When the image is placed in the tabular environment, a vertical offset is ...
3
votes
1answer
54 views

Headers of ToC and fancyhdr

Please, consider this code: \documentclass[a4paper,twoside,11pt]{report} \usepackage{fontspec} \setmainfont[Ligatures=TeX,Numbers=OldStyle]{EB Garamond} \usepackage{polyglossia} ...
3
votes
2answers
160 views

Formatting headers in the book class

I am using the book class for my thesis. In every page that is not the beginning of a chapter, LaTeX writes the number and name of the chapter in the header. Is there any simple (emphasis on the ...
3
votes
1answer
164 views

Changing the location of an element in the header using scrlayer-scrpage

In fancyhr \fancyheadoffset[LO]{\marginparsep+\marginparwidth} moves odd page left element in the header. Do we have any facility like this in scrlayer-scrpage? MWE \documentclass[12pt, ...
1
vote
1answer
18 views

Acronym wrapped at end of page causes page number and header of next page to have same hyperlink

A bit of a confusing title perhaps, so let me explain. I'm using the packages glossaries, hyperref and fancyhdr. Acronyms defined with glossaries have a hyperlink to their definition. However when the ...
0
votes
1answer
76 views

How to show a long chapter name in the footer with two lines?

A short time ago, I asked this question to resize the width of a chapter section. But there is another problem with the footer. If the chapter name is too long, the chapter name in the footer ends in ...
1
vote
1answer
56 views

fancyhdr and \iftopfloat

I am relatively new to LaTeX, and I have been using the fancyhdr package, in which I have chapter title and numbers with headrulewidth on top of the page. However, when I have figures on top of a page ...
4
votes
2answers
348 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} ...