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
0answers
24 views

How to display section only using sectionmark

I'm using \sectionmark in my document. How can I hide section text in the main body and display only the \sectionmark in the header. As the repetition can be seen in the attached image. \documentclass{...
0
votes
1answer
25 views

Put page numbers at the bottom center with \pagestyle{headings}

I use the \pagestyle{headings} to show headers in my article in Latex. But the pages numbers appear at the top right corner. How can I make it appear at the bottom center of the page ? I don't want to ...
0
votes
0answers
22 views

How to fix irregular spacing at fancyfoot and fancyhead on TeX 2020

I use TeXLive 2017 is not any issues but when I use TeXLive 2019 and 2020 is erroring from page 2. Anyone helps me fix this error. Regards, HungUT https://www.overleaf.com/read/spqhwhpyqgyx \...
1
vote
1answer
49 views

Fancyhdr for books

I get confused with fancyhdr. Let's consider this minimal example: \documentclass{book} \usepackage{fancyhdr} \usepackage{lipsum} \pagestyle{fancy} \begin{document} \frontmatter \title{A dummy ...
0
votes
2answers
35 views

How to use \url in \fancyhead

I have text like the following in my document: \documentclass[12pt,oneside]{article} \usepackage{fancyhdr} \usepackage{url} \usepackage{systeme} \usepackage{hyperref} \setlength{\overfullrule}{0pt} \...
0
votes
0answers
17 views

Problem with margins when placing an image in header using fancyheader

I am trying to place an image in the header and spacing it 4.5mm from the top of the page and 4.5 mm from the right of the page. In the TexWorks preview it looks like clearly less than 4.5 mm space: ...
0
votes
0answers
23 views

Table of contents breaks page style

I am having a problem with my table of contents, when my TOC creates a new page the page numbering centers instead of remaining flushed right like all of the other pages of the document. As code I am ...
0
votes
1answer
35 views

Using rightmark to display section names on first page

I am having problems getting the section name displayed on the top of my pages. I know \leftmark is the proper way to do this, but I would like that the section name is only displayed when no ...
0
votes
1answer
31 views

Leave Header Blank Fancyhdr

I am new to coding and Latex so please forgive me as I'm sure this is a very straight forward solution. I am creating a PDF report using RMarkdown with a .tex file to control the header, margins, and ...
0
votes
2answers
31 views

Partial rule over footer page numbers

I am using KOMA's scrreprt together with fancyhdr and want my page numbers on the outside of each page. So I use: \fancyfoot[LE,RO]{\thepage} which works as expected. Now, how do I add a short ...
2
votes
1answer
23 views

Changing fancyfoot mid-document

I would like to use roman page-numbering for my initial content (before TOC), and arabic page-numbering for my main content. However, I would also like that the page numbering of the main content were ...
0
votes
0answers
23 views

Fancyhdr footer with hyperref, the link area is the whole footer, not the desired text

\documentclass[12pt,a4paper,oneside]{report} \title{Notes} \date{2020\\ July} \author{John Doe} \usepackage{hyperref} \usepackage{fancyhdr} \pagestyle{fancy} \fancyfoot[R]{\hyperlink{toc}{{\tiny ...
0
votes
1answer
36 views

Fancyhdr Footer not showing, how to fix this?

\geometry{a4paper,top=0.5in,left=0.50in,bottom=0.55in,right=0.50in} \usepackage{amsmath} \usepackage{tabto} \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \renewcommand{\...
0
votes
0answers
43 views

Header-Footer (text and background-image) positioning issues

I'm working on the header and footer section (which are supposed to appear on every page). I've looked around already but I haven't managed to find any answers close to what I need. I'm trying, but ...
0
votes
2answers
30 views

Fancyhdr and SBL Hebrew font

I wanted to use fancyhdr in a document with the SBL Hebrew font. However, I get warning messages about undefined font shapes. Please see my example below: \documentclass{minimal} \usepackage{fontspec,...
3
votes
1answer
52 views

how to add background color for top and bottom geometry page?

I am trying to create a document and somehow I want it to be in color, but it has been difficult for me to try to color the top and bottom, for all pages in general \documentclass[letterpaper,12pt,...
0
votes
1answer
38 views

How to Align the Namesection to the left, to add a passport size image on right?

I am new to LaTeX, using Overleaf to compose my new CV. My question is that i would like to add a passport size photo to the right end of the namesection (i.e. right top corner of the document), so i ...
0
votes
0answers
32 views

How do I align my (right) header page number with the right-side margin of the body text?

I'm a newbie to LaTeX; using Overleaf to write a journal article. I used fancyhdr to create a running header with the page number on the top right, but the number is not aligned with where the body of ...
0
votes
1answer
27 views

Put number of page at the bottom of every page of the document

I am trying to put the number of my pages at the bottom of the page. The document is \documentclass[a4paper, 12pt]{book} Using \fancyfoot{\thepage} I am able to do it with only a few pages (the first ...
0
votes
1answer
16 views

Fancyfoot only applied on the last page

I'm trying to move my page numbers to the right. Here is the code of the whole document: \documentclass[14pt]{report} \usepackage{graphicx} \graphicspath{pics/} \usepackage[a4paper,top=25mm,bottom=...
1
vote
3answers
47 views

Making each page number link back to beginning of chapter or section

I was wondering if it is possible to have the page numbers that appear in the footer of each page link back to the beginning of the section or chapter in which they appear. I have this code that works ...
0
votes
0answers
14 views

Redefine plain pagestyle multple times, for frontmatter

So I want custom styles for this document, but the styles do not work on the first page of each chapter/toc, etc, since it uses the plain style. I have redefined the plain style but it shoud be ...
0
votes
1answer
30 views

LaTeX, fancyhdr wrong section name in header if using \section*{name}

I am polishing up bibliography in my research paper and I have a problem with fancyhrd showing wrong section name for every but the first page of my bibliography. This is what I mean: The first page ...
0
votes
1answer
54 views

How to do fancy color background header and footer in a book?

I would like to get header as : MWE: \documentclass[11pt,a4paper,openright,fleqn,twoside]{book} \usepackage[paperwidth=16cm,paperheight=24cm]{geometry} \usepackage{titleps} \newpagestyle{mystyle}{% ...
0
votes
1answer
40 views

Fancyhdr and Epigraph Problem with page numbering

I used the fancyhdr package and put the page numbers on the left/right side at the bottom of the page. Then I used the epigraph package to put a quote on top of a chapter page. The problem is that ...
1
vote
2answers
38 views

Problem with fancyhdr and title page

I would like the header and footer to show up also on the title page, but this is not happening. This question has been asked several times is different variations, over the years, for example here. @...
1
vote
0answers
18 views

Page number appears in the middle of page on every new chapter [duplicate]

I currently use Latex for a simple paper that's based on the extbook class. My source code looks like this: \documentclass[10pt, twoside]{extbook} \usepackage[german]{babel} \usepackage{blindtext} \...
0
votes
1answer
45 views

Remove header line in Latex [duplicate]

I want to remove the header, but I am not sure how to do this. I cannot remove the line in the header. This is the code I am using: \usepackage{sectsty,fancyhdr} \sectionfont{\LARGE\bfseries}% https://...
0
votes
1answer
20 views

Colored title of list of figure interfering with colored fancy header

I am writing a document where I want to have the title of List of Figures colored and the header as well (let's say in red). But it seems that the \fancyhead[L]{\textcolor[rgb]{1,0,0}{\leftmark}} ...
1
vote
1answer
53 views

How to Put Link to Arbitrarily Numbered Next Section in Footer

I want to put a link to the next section within my footer. I'm using fancyhdr and hyperref. The kick is that this is a homework file, so I'm jumping around sections (and between books), so there's no ...
1
vote
1answer
30 views

How to remove: footer's bottom-margin and fancyhdr's auto-displayed line?

I use a header (blue rule and image) and a footer (blue rule). I have 2 issues that I'm trying to solve: 1. I want my footer rule to touch the very bottom of the page (there is some bottom-margin ...
-1
votes
1answer
52 views

Can you have page numbers and tiny top/bottom margins?

I've been given some very specific format requirements, I need to have a 0.5cm top margin while also having page numbers in the top right. I've tried using fancyhdr to make this work, but the page ...
1
vote
1answer
45 views

How to center page numbers in KOMAScript scrbook document with custom margins?

I want to make heavy use of margins (Tufte-style) but I don't want to use Tufte-LaTeX because I got the impression that in the long run, it is better to use KOMAScript classes. I used the package ...
0
votes
0answers
11 views

using \leftmark gives me the section label rather than the section name

I write my lectures in separate documents and when I include them in the main document I use \leftmark in the header to display the section. I tried something new, adding a footnote to the section ...
1
vote
1answer
32 views

Upper case problem in fancy head

I have a large document with severals packages loaded. In this, I have fancyhdr package and the command \fancyhead[LE,LO]{\nouppercase{\leftmark}} to put chapter title in the head of the page, with ...
0
votes
1answer
40 views

Customize fancyhdr footers with background

I'm trying to customize the background of footers using fancyhdr package. This is what I have now: \documentclass{article} \usepackage{fancyhdr} \usepackage{calc} \fancypagestyle{plain}{% \...
0
votes
1answer
33 views

pagestyle{plain} after beginning of chapter showing up as pagestyle{fancy}

I'm working on a bilingual edition using paracol and fancyhdr. I want p. 1 of each chapter to be in \pagestyle{empty}, pp. 2-3 to be in \pagestyle{plain}, and pp. 4- to be in \pagestyle{fancy}. This ...
0
votes
1answer
37 views

fancyhdr : vertical alignment of left header

I am trying to reproduce the following without the comments in green and blue : The LaTeX code I am using is as follows : \documentclass[11pt, letterpaper]{letter} \usepackage[includeheadfoot,...
1
vote
1answer
45 views

Clearing header on specific ordinally numbered pages of each chapter

I'm using reledpar and fancyhdr to lay out something in book class. I've got \thispagestyle{empty} at the opening of each chapter, but I need to clear the header (though not the footer) of the second ...
0
votes
0answers
14 views

\twocolumn package FancyHDR two footers on the left sides of both columns

So I've been using \twocolumn for my Physics dissertation, and to make my pages looks more sophisticated I've been using the fancyhdr package: \usepackage{fancyhdr} \pagestyle{fancy} \...
1
vote
1answer
46 views

Fancy header line

I want to construct a header line which looks like this. How do I do it? Does fancyhdr support this kind of header line?
0
votes
1answer
17 views

\includepdf and \rightmark do not work with each other?

I have several pdf files available, and now I wish to combine them into 1 file, which I call "attachment bundle". I want to put a table of content at the beginning, showing the starting page of each ...
1
vote
1answer
28 views

fancyhdr with the appendix package

When writing reports, I like to use the fancyhdr package for headers and the appendix package for appendices, but I have run into a small issue with compatibility. Consider the following: \...
0
votes
0answers
33 views

bibliography overwrites header

I am writing a journal-type document, in which the bibliography for an article should be printed at the end of the article. I am using the book class for it. For the references, I want to use \begin{...
0
votes
1answer
51 views

Fancy style, textheight change from chapter to chapter

I create my own header and footer style with the package fancyhdr, and I want it also on the chapter pages. I used the solution in this thread. Also, as my style needed to change the spacing between ...
0
votes
0answers
15 views

fncychap malfunctions setpcounter chapshift

I am new user in Overleaf for drafting my thesis (if the words I used in question part is wrong, pardon me!), format is twoside, report. I use package fncychap for chapter style Also I want to have ...
0
votes
0answers
27 views

How do I align page number in the footer in the center?

I am using the following to insert page numbers in my footer: \pagestyle{fancy} \fancyhf{} % clear all header and footer fields \fancyfoot{} \renewcommand{\headrulewidth}{0pt} \...
0
votes
0answers
26 views

fancyhdr works perfectly on first page, but messes up top of second page

So I have used the package \fancyhdr{} to insert a logo in the top of my first page in a document, this works perfectly. The problem is just that on the second page, all my text is moved down the ...
0
votes
0answers
49 views

in header replace chapter1. to chapter1:

I am using the report document class and I am using the fancyhdr package. I want to replace chapter 1. to chapter 1: in header. I write this code: \documentclass[12pt]{report} \usepackage{fancyhdr} ...
0
votes
1answer
31 views

Fancyhdr header : chapter, subsection and subsubsection appearing on the header

I am trying to create a LaTeX template with a specific header. Here is what I am trying to do : Left odd : \subsubsection Right odd : My name, I can deal with this one :) Left even : \subsection ...

1
2 3 4 5
29