We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [fancyhdr]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
18 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
12 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
26 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
18 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
32 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
30 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
24 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[ ...
0
votes
1answer
48 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 ...
1
vote
2answers
45 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
1answer
23 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
23 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
0answers
13 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
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
0answers
35 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{...
2
votes
0answers
51 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
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
34 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
votes
1answer
194 views

RSC template fancyhdr doesn't respond well!

I am using RSC latex template (https://www.latextemplates.com/template/royal-society-of-chemistry) to write my research article using Texliv and the margin at bottom is not well aligned (see image ...
1
vote
2answers
36 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 ...
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
38 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?
0
votes
1answer
25 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 ...
0
votes
1answer
72 views

Inner Spacing within Footer (fancyhdr)

How can I create exactly the following spaces/distances? Margin from bottom to footerrule: 22mm Distance from footerule to text: 5mm Distance from Footerrule to top of footertext: 7mm Current state: ...
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
33 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 ...
1
vote
1answer
46 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 ...
0
votes
0answers
38 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, ...
3
votes
1answer
204 views

Multiple page number positions in one document

I'm working on a document with multiple page number styles. The introduction consists of Roman (I, II, III,...) page numbers, the actual text consists of page numbers in Arabic style (1, 2, 3,...), ...
3
votes
1answer
2k views

\thispagestyle and \pagestyle with packages fancyhdr and extramarks causes confusion

I am writing a scientific article using the article class. I have encountered some issues with my page headings that I have defined through the packages "fancyhdr" and "extramarks". I have 3 ...
0
votes
2answers
79 views

how to make different header & footer setup for first page & rest of the pages in same document

I need to bring different header & footer contents in first page. what package can i use for this process. \documentclass[twocolumn, 9pt, a4paper]{extarticle} \usepackage{titlesec} \titlelabel{\...
0
votes
1answer
43 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
58 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 ...
2
votes
0answers
300 views

fading tikz fancyhdr problem in book printing [closed]

I recently had a book printed, where I used fading lines in the header. In the PDF it looks correct, bu in the actual print, the lines on the left pages didn't fade as much as the lines on the right ...
0
votes
1answer
19 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
votes
1answer
36 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 ...
3
votes
2answers
273 views

Margin spacing of footer for landscape page

I put a lot of time into figuring out how to have the page numbers on the long side of my landscape pages as per my school's formatting requirements (yes I'm sure) but now the numbers are apparently ...
2
votes
1answer
71 views

Last Section appearing on top with usage of pagestyle fancy

I am having trouble including page numbers in my resume. I earlier used \pagestyle{empty} for non-numbered page but thought to have page numbers. So I decided to use following packages which works ...
2
votes
1answer
32 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
45 views

Problem with the header at using fancyhdr

I'm new in LaTeX and I have a problem creating my header at using fancyhdr package. When I include it, the text overlaps in the upper part of the header, and I've tried to fix with the command \...
1
vote
1answer
169 views

Fancypagestyle in \DeclareOption

In my class I want to define the page layout first during\DeclareOption and then modify it during a \newenvironment declaration. For that I wanted to use the fancyhdr package. Now my problem is that a)...
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
71 views

Distance between top (or bottom) margin and header (or footer)

I am preparing a camera-ready book. My publisher has given me a stylesheet that is based on a Microsoft Word template. I am having trouble setting the exact measurements of the sheet with the geometry ...
0
votes
1answer
70 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
44 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 ...
1
vote
1answer
23 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
79 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 ...