Questions tagged [fancyhdr]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
38 views

Problems with page header on Table of contents page

My LaTeX looks as follows (I omit a lot of \usepackage and some fancy settings, e.g. open at odd pages): \documentclass[9pt,a4paper,reqno]{amsbook} \usepackage{fancyhdr,etoolbox} \pagestyle{fancy} \...
0
votes
1answer
24 views

fancyhdr \leftmark, \rightmark entry for \section*

I have the following latex document and I want to include a section "List of Abbreviations" without a numbering. This should appear in the table of contents as well (it should look similar to the List ...
0
votes
1answer
23 views

fancyhdr: Suppress header at the beginning of each chapter

There are questions on this topic but I am still confused (because I still do not understand how the given answers work). How do I suppress the header at the beginning of each chapter? \documentclass{...
1
vote
1answer
39 views

Page number is not placed at the right position

I'm trying to place my page numbers on the left on even pages and on the right on odd ones. As far as I understand the following code should do exactly this, but my page numbers are all on the right ...
1
vote
1answer
18 views

Fancyhdr: Centered header and page number between the rule

\documentclass[10pt]{book} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{lipsum} \usepackage{fancyhdr} \title{My Book} \author{Me} \begin{document} \maketitle \chapter{My Chapter} \...
1
vote
1answer
33 views

How can I persuade fancyhdr that my headers have zero height?

I'm putting my headers in the outer margins where they shouldn't take up any vertical space. I though to achieve this by using \vbox to 0pt{...}, but fancyhdr isn't buying. Here is the error message:...
0
votes
1answer
22 views

Costume Template with header and a line over the entire page

I am trying to replicate a template on MS word using LaTeX. The template is as shown in the below picture and must be applied to the entire document. So far I succeeded to either have the text in the ...
0
votes
1answer
31 views

Avoid different format of Title page using fancyhdr

I've been trying to learn some LaTeX formatting and I got stuck on something that should be quite simple but it seems that I only find quite complicated ways to solve it online. When I use the \...
0
votes
1answer
38 views

Fancyhdr does not work!

I am trying to compile my code using fancyhdr package but it doesn't compile it properly. Can someone kindly advise how to fix the issue? Here is what I am compiling: % MNRAS Manuscript Template \...
1
vote
2answers
21 views

Different headers for the first and further pages

MWE: \documentclass{article} \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=2cm,bmargin=3cm,lmargin=2cm,rmargin=2cm} \usepackage[utf8]{inputenc} \usepackage{fontspec} \usepackage[english]{...
0
votes
0answers
18 views

Newgeometry in memoir, different results in different pages

I'm trying to create a document with the memoir class. The document needs to have a specific header and footer on the first page, and a different header and footer on the rest of the document. I have ...
1
vote
0answers
32 views

Header in Middle of Top Rule

I am trying to create a header so that it looks like the image below such that the header is not right on top of the first line However, I played with the dimensions on this MWE and can't seem to get ...
0
votes
1answer
19 views

Prevent Header from Mashing with Text

I am writing a document with standard margins set by the fullpage package. However, I am also trying to use fancyhdr to embed a header. Yet, when I print this, the header runs into the first line of ...
2
votes
2answers
36 views

Header and footer appear in my table of contents

I don't want the header and the footer to appear in my table of contents. I used \thispagestyle{empty} just before \tableofcontents and it works... but just for the first page of my table of contents. ...
0
votes
0answers
25 views

Wrap text around picture in fancyhdr header

I would like to be able to wrap the text around the logo in the fancyhdr reader on all other pages than the first. As you can see on the screenshot there is text over the logo. I do not want to ...
0
votes
1answer
36 views

Header with book title and part name using fancyhdr

I am currently writing a book in french which is made of three parts (with \part{}). Using the fancyhdr package, I would like to have the tile of my book on the even pages and the name of the part (...
2
votes
2answers
38 views

Fancyhead disappear during the application of title

I'm developing a business procedure template, and I noticed that by applying the title (with all its features) to the page, the fancyhead disappears on the page where the title has been applied. ...
0
votes
1answer
34 views

Inserting text and an image into the header

How would you modify the current code so that I can insert a small image as part of the centred header in the highlighted spot? Thank you! \documentclass[]{article} \usepackage[margin=0in]{geometry} ...
0
votes
0answers
26 views

Colored margin vertical text

I'm using the below code to create colored margin. but instead of the chapter name I would like to have the section name. Can you help me please? \documentclass{book} \usepackage{lipsum} \usepackage[ ...
1
vote
2answers
46 views

Bad rendering of a cell [duplicate]

I'm trying to visualize a table inside a fancyhead. This table has only the yellow central column. The problem is that when I go to compile and open the document with Acrobat DC, I don't see the top ...
0
votes
0answers
25 views

LastPage Package, don't count included pdfs in appendix

I use the LastPage package and the fancyhdr package to create a footer that lookes like %Footer \fancyfoot[L]{\footnotesize{\doctype} {\docname}} \fancyfoot[C]{\footnotesize \thepage/\pageref{...
0
votes
1answer
27 views

\begin{appendices} header problem

I'm having a little problem with the appendices environment that probably is very easy to solve, but for the life of me I haven't been able to figure it out. Here is the deal, I need to add ...
0
votes
1answer
28 views

Using different headers with different headheights

I'm writing a report and I'm using two different headers. I guess the "titlepage" header is occupying a lot of space, so I get the "headheight too small" message and the IDE changes all of the ...
0
votes
0answers
14 views

How to specify exact spacing of page numbers on the top right corner of a `report` using `fancyhdr` package?

I'm writing my thesis and one of the requirements is that the page numbers must be located at the top right corner of the page (one-sided report). While I have been able to achieve it using \fancyhdr ...
0
votes
0answers
54 views

Remove Header in reference section

I'm wrapping up my thesis these days. I get an problem to remove headers on references chapter. It will only remove for 2 pages and not all 3. How come? Code: \documentclass[12pt]{book} \usepackage{...
0
votes
0answers
38 views

fancyhdr package: Not Displaying header and footer [duplicate]

Can anyone help me see why the fancyhdr package fails to display the header and footer while I typeset my file? I have all the correct file paths for the input commands. Also, there is no error ...
0
votes
1answer
12 views

In Appendix Fancyhdr header suddenly disappears

I use the fancyhdr package. It works fine for the whole document, however, in the Appendix, the last two pages are without header. I haven't found a solution online and I am grateful for any help! ...
2
votes
1answer
37 views

why adding \pagestyle{fancy} gives compile error with tex4ht?

This MWE \documentclass[12pt]{article}% \usepackage{fancyhdr} \pagestyle{fancy} \begin{document} \section{$\cos \left(x\right)$} test \end{document} Gives this error make4ht foo1.tex ........ (/...
1
vote
2answers
40 views

Frontmatter and Chapter headings

I'm trying to format my thesis and I got to a pre-textual element (acronyms list) that has two pages. The first page has the correct "plain" heading, but the second page doesn't, because it's ...
2
votes
0answers
56 views

How to force fancyhdr to mark the subsection on a page?

I am trying to use fancyhdr to create headings on some notes I am writing (article class, one sided). I would like to have the section name and number on the left and the subsection name and number on ...
0
votes
0answers
24 views

Different header heights on different pages

I'm writing solutions for math contest and I have some troubles with margins. In one file I want to have more than one solution, but every solution should start on a new page. The first page of each ...
0
votes
1answer
27 views

Fancyhdr and hyperref - unwanted space before header

I'm writing a report in french. I'm using hyperref's autoref for cross-references and I have redefined some of the names used by the function, such as Appendix and Figure, in my preamble. I just ...
1
vote
0answers
10 views

Fancy Header Suppressed on first page of Appendices Environment

I'm trying to get fancy headers on my appendices. The code I've written works on all pages except the first one after the \appendixpage. Any advice would be appreciated. \documentclass[11pt, twoside]...
1
vote
1answer
49 views

Sectionmark command ignored in running head of first section page

Some of my section titles in my book xetex document with fancyhdr are too long for putting them into the running head. I use \sectionmark in order to set a shorter version for the running head. This ...
1
vote
1answer
34 views

Add chapter between TOC and first “official” chapter while using fancyhdr

I am currently writing a report (documentclass: scrreport) for my University. I'm pretty close to the deadline and I'm only polishing the formatting at the moment but there's one problem I can't get a ...
0
votes
0answers
42 views

How can i remove empty space after header on next page in fancy hdr?

Here is my code... \documentclass[11pt,twoside]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{luainputenc} \usepackage{fontspec} \usepackage{arydshln} \usepackage[a4paper, left=0.5cm, ...
0
votes
1answer
49 views

How to add theorem numbers to footers using fancyhdr?

I have to add the theorem numbers to the footer using the fancyhdr package. It works fine, if I only add the last theorem number that is mentioned on that page (see example below). However, I would ...
0
votes
1answer
45 views

Positioning page number on the right in specific place

I want to position the page number on the right footer but also have the possibility to move the number horizontally as I have a template underneath. I've tried both fancyhdr and scrlayer-scrpage and ...
1
vote
1answer
88 views

colors with headers

I have some custom color and I'd like the headers of fancyhdr to be colored differently. How do you make the different headers \fancyhead[L], \fancyhead[R], \fancyhead[C] have different colorboxes ...
-1
votes
1answer
41 views

How can i change the footer line to dashed line in fancyhdr?

I\m looking for solution that i can change the footer line to dashed line in fancyhdr. I just dont know how can i change the footer line to dashed line, what can i use, please give me a hint or ...
2
votes
1answer
40 views

FancyHDR Problem

I'm having a hard time with fancyhdr package in overleaf. My goal is make a header where the \subsection apper on the top left side of odd pages. In even pages, i want the the \section to appear on ...
2
votes
1answer
37 views

How to add header in all pages except first on in `resume.cls` class

Please consider this resume template: https://da.overleaf.com/articles/rishi-shahs-resume/vgxvkmxktyxn. My resume is more or less built this way but I have two pages. I want to add header to the ...
0
votes
1answer
40 views

How to set margins, header and footer with fancy hdr?

This is a document template with header and footer, but I have no idea how to make a broken line and that the header look like this (all at the top is the header) Someone can help me?
1
vote
1answer
49 views

How to make section* appear in header

I am using the article class and a custom package where I use the fancyhdr package. I define my header using : \fancyhead[CO,CE]{} \fancyhead[RO,RE]{\scshape\leftmark} The problem is that I have ...
0
votes
1answer
80 views

Reference 'last page' undefined, only running latex twice shows wanted result

If I run lualatex on a .tex file I only get ?? as a result from 'lastpage' in my document. Then if I run lualatex a second time, the correct result (2) is shown in the document footer. Main ...
0
votes
1answer
56 views

How to change \section to be flush right and underlined

Can someone please tell me how to get this design in articel class. I´m not getting anywhere near it using fancyhdr or other packages. Class: scrartcl I would really appreciate help, I´m really ...
0
votes
1answer
54 views

Problem with fancyhdr printing the wrong section title

I have a problem with fancyhdr in combination with the appendix package. The problem occurs - as far as I have observed it so far - only when I compile a one-page document. In twoside mode everything ...
0
votes
1answer
20 views

\firstmark on \tableofcontents produces unexpected result

So I am working on a rather small latex document and can't explaint the behavior of \firstmark on the table of content page. Tell me if I'm wrong, but in my understanding \firstmark holds the first ...
1
vote
1answer
24 views

Precise footer control (include line breaks and shift position)

I am preparing a poster and using fancyhdr to include content at the bottom of the page. I have two issues: \cfoot{} is not centered, this can be solved using \makebox{}, however, the later command ...
4
votes
1answer
110 views

Changing \headheight pushes footer off page

Preface: NOT a duplicate of My footer disappears when I increase headheight - I tried the accepted answer here and still ran into issues. I am using Overleaf to create some documentation for ...