Questions tagged [fancyhdr]
{fancyhdr} is a package which allows the creation of custom page headers and footers.
1,830
questions
1
vote
1
answer
25
views
How to set a image in the header via fancyhdr?
I am veeery new to LaTeX but I am encountering a very weird issue, because I need to have the header, on only the first page, as shown in the screenshot. And the Univeristy provided a rectangular ...
1
vote
1
answer
40
views
Problem placing information at the bottom of the first page
I am working on the development of template and I would like to have something similar like this:
I'm working in twocolumn document and I tried to replicate it in \fancyfoot[L]{} (only for the first ...
1
vote
2
answers
63
views
fancyhead: how to have 1 background image and twovforeground image
with this code:
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{fancyhdr}
\title{fancy}
\author{xxx}
\date{March 2024}
\fancyhead[C]{\includegraphics[width=...
0
votes
1
answer
29
views
Set a fixed width for footer/header with fancyhdr
I'm using the geometry package for settings like textwidth and margins. fancyhdr uses the initial text geometry setting. Through my document I also change the geometry of the text layout (i.e. not the ...
0
votes
2
answers
49
views
Chapter and section
I'm writing my thesis (i choose report class) and I'd like to have chapters looking like this:
1 Introduction
I mean I want only chapter number and title in one line. Furthermore I'd like the left ...
0
votes
1
answer
28
views
Adjust right side text margin and header section alignment [duplicate]
I'm using Rmarkdown to produce a landscape pdf document with xelatex.
For my YAML header I'm using
output:
pdf_document:
latex_engine: xelatex
keep_tex: true
includes:
in_header: '...
0
votes
0
answers
31
views
Automatically setting page style to plain when the page starts with section title
I'm writing a document where I don't use page breaks before starting a new section. This means that sometimes, a section will start in the middle of the page, while other times it will start at the ...
2
votes
1
answer
63
views
Tufte-handout with fancyhdr
I want to add a logo in the top right corner of the first page of a tufte-handout document. The code below works fine except that it puts the logo on every page except the first. What should I do?
\...
0
votes
1
answer
18
views
header wrong for first page of bibliography
Here is some sample code partially taken from other examples here. With this code, a page number is erroneously shown in the center footer for the first page of the bibliography. This is not the style ...
0
votes
0
answers
32
views
Multiple page list of figures with non sequential numbering
Any suggestions on how to automatically make the list of figures exhibit page numbers in non sequential fashion, with a step between each number, as for example:
first page of lof: page number => ...
3
votes
1
answer
54
views
Adding a dot after section number in the header with fancyhdr
When using the spanish option of the babel package, a dot is added after the section number for each section. However, fancyhdr doesn't. Here's a MWE:
\documentclass[11pt]{article}
\usepackage[...
0
votes
1
answer
62
views
How to skip enough space between headnotes using fancyhdr?
I've tried many hints however, none of them worked.
Would you help me to fix this? Another thing, please, how can I add a rule under every headnote in every page?
I am using the preamble below:
\...
0
votes
0
answers
54
views
fancyhdr gets overridden by tocloft
I wanted to change the number and distribution of dots inside my toc so I tried to change this with the tocloft package like that:
\usepackage{tocloft}
\renewcommand{\cftsecleader}{\cftdotfill{\...
3
votes
1
answer
78
views
How to extend the fancyhdr header rule to take the full paper width
I am learning LaTeX. I am using fancyhdr, in a book document class.
I want the horizontal rule to extend so that it takes the full page width.
I have tried \fancyheadoffset, but the header content is ...
0
votes
1
answer
43
views
How to print tikzpicture in the right place when using fancyfoot
I have the following case where I don't know how to correct it and I would like that when using tikz I would like it to print in the correct place, which is the footer.
\documentclass{book}
\...
0
votes
0
answers
33
views
How to add a header to an ACM article template
I need to add a header to the first page only on an ACM article template (see the red text on the top of the included image).
This is an example code. Plz. can you help me add a header even if ...
0
votes
0
answers
36
views
fancypagestyle(s) for book class
How to redefine headers correctly to get ride with this problem ?
\documentclass[twoside, 12pt]{book}
\usepackage{mathtools,amssymb}
\usepackage{xcolor}
\usepackage[nobottomtitles,clearempty]{titlesec}...
3
votes
1
answer
99
views
How to use a consistent language for headers and footers with babel?
I have a Hebrew document with some English parts, and I am using the fancyhdr package to have headers and footers. I am using \begin{otherlanguage}{english} \end{otherlanguage} for my English parts. ...
0
votes
1
answer
45
views
How to use natbib package and fancyhdr package together [closed]
Please how can I get to use fancyhdr package with natbib package. It happens that I can't use the two in my document, what can be wrong? and how can I correct that, please?
\documentclass[12pt, ...
1
vote
0
answers
35
views
How to fix abntex2 first page in the bibliography?
It seems that the first page in the bibliography when using the abntex2 package puts the page number in the upper right side of the page, how do I correct this so that the page numbering of only the ...
0
votes
1
answer
39
views
I don't want fancyheader to display runing header in bold font
I am using the below code, which gives running headers in bold font.
But I want normal font.
\documentclass[11pt,letterpaper, twoside]{article}
\usepackage[english]{babel}
\usepackage[margin=1in,...
1
vote
0
answers
51
views
Setting and displaying date ranges extracted from filenames in the header
I already asked a related question about this topic some months ago. However, I have a project with this structure:
Project:
|- main.tex
|
|- pages
|- 20230101.tex
|- 20230102.tex
|- ...
2
votes
2
answers
170
views
Formatting page numbering
I am trying to have the page numbering in my homework file as a fraction. However, when I try to display the fraction in a different colour, the last page does not change its colour. How do I ensure ...
0
votes
1
answer
63
views
Quotes on header of each page [closed]
I have this question today: how can I store some quotes pre-hand in a csv file, say
"quote 1 statement",author 1,year
"quote 2 statement",author 2,year
...
"quote n statement,...
0
votes
1
answer
15
views
How to change fancyheadoffset different for single pages than double digit pages
I'm using fancyhdr to position my page numbers in a document (odd/even pages).
\pagestyle{fancy}
\fancyhf{}%
\renewcommand{\headrulewidth}{0pt}%
\setlength\footskip{2.0cm}%
\fancyheadoffset[rof,lef]{...
2
votes
1
answer
70
views
How to put frame around each page with white space buffer so that text are do not touch the frame?
I like to put frame around each page. Only around the text area of the page. Not including the header and footer.
I am also using fancyhdr. After some struggle, I got the following.
But the frame ...
5
votes
2
answers
248
views
Remove page number, if there is only one page in a section
In my current project, I want to create worksheets that I can print out and distribute. To do this, I want to reset the page number for each worksheet, but only display the page number if the ...
1
vote
1
answer
71
views
Header and footer line lengths change when color changed
I'm using fancyhdr. I want to make the header and footer rules red. When I do, the lines contract slightly, no longer the width of the paper.
First, the normal result when I use the following code:
\...
0
votes
0
answers
25
views
biblatex with category for multiple bibliography at the end of the book, 2 problems with headings [duplicate]
The following MWE reproduces 2 problems which are described at the end of it:
\documentclass[12pt]{report}
\usepackage[twoside,paperwidth=15cm,paperheight=21cm,includehead,top=11mm,bottom=19mm,outer=...
0
votes
1
answer
43
views
How do I avoid overlapping header and first sentence of the page while using fancyhdr?
I am using fancyhdr to put some header and footnote in my document but from second page onward, the first line of the page and the header are overlapping like the following. How can I resolve this?
I ...
0
votes
0
answers
23
views
Page numbering after titlepage
I am writing a small booklet for my elective using \documentclass{abstract}, and creating a separate titlepage.tex, then inserting it with \import{./}{titlepage.tex}. There are no page numbers on the ...
0
votes
2
answers
51
views
How to fix a rotated footer?
I have the following MWE
\documentclass[12pt]{article}
\usepackage[a4paper, left=16.5mm, right= 16.5mm, top=0mm, bottom=25mm]{geometry}
\usepackage{graphicx} % Required for inserting images
\...
1
vote
0
answers
110
views
Inquiry about Writing Style in a Book
I recently came across a book online and was captivated by its writing style. I've been trying to emulate it using LaTeX, and I've attached some sample pages along with the code I've attempted so far.
...
3
votes
0
answers
51
views
Document with Same Page Numbers and Page Anchoring
I want to have a document that resets the page number at 1 at some point. For example: Page 1 of 2, Page 2 of 2, Page 1 of 3, Page 2 of 3, Page 3 of 3, Page 1 of 1, Page 1 of 5, Page 2 of 5, and so on....
0
votes
1
answer
80
views
Using \pageref via \label in Referencing a Page
I am writing a simple document using the fancyhdr package for the header and footer and also the hyperref package. I use \label to label a page.
Here is my MWE (EDITED):
\documentclass[10pt,a4paper]{...
0
votes
0
answers
40
views
How to write "PDG values" in the header?
I want to replace "Symbols" with "PDG Values" in the header. What file do I have to use (for example \listofnomenclature{ll} gives me "Symbols")?
\documentclass[a4paper, ...
0
votes
2
answers
33
views
how to get rid of section names in fancyhdr headline
i just want to have the main chapter name in the headline, not the section name (on the left), as you can see in the picture
my code looks like this :
\usepackage{titlesec}
\usepackage{fancyhdr}
\...
0
votes
0
answers
43
views
Fancyhdr only shows [L]
I am writing a syllabus, and I would like to have the school logo on the left side of the header. I would like to have the course in the center of the header. However, no matter where I put the course ...
0
votes
1
answer
32
views
Image alignment in fancyhdr footer
folks!
I'm aiming to have an image in the center of the footer, but I'm not being able to make it work, the image is sticking out, the content of the footer is not getting top aligned.
I'm using ...
0
votes
0
answers
28
views
Changing font size of contentsname without changing it font size in fancyhdr
How to change the font size of the content title without changing its size in the header
For example, I write in code "\renewcommand{\contentsname}{\huge Table of contents}" and I receive
...
0
votes
0
answers
20
views
Warning message using fancyhdr in Overleaf [duplicate]
To whom it may concern:
I get the following warning message in Overleaf for the following lines of code:
Line 125 \fancyhead[RO,RE]{\thepage}
Line 126 \fancyhead[LO,LE]{\leftmark}
The package is ...
0
votes
0
answers
45
views
How to create a Footer with two rows of content
I'm trying to create a footer that has an lfoot section, rfoot section, and then a full width section below that. Can someone point me in the right direction?
0
votes
1
answer
123
views
How do I add a background behind my page number with fancyhdr?
I currently try to set my page number via:
\fancyhf{}%
\fancyfoot[RO]{\begin{picture}(0,0)\put(1.5cm,-0.9cm){\includegraphics[width = 1cm]{page-number}}}\put(1.5cm,-0.9cm){\makebox[0pt]{\...
0
votes
0
answers
33
views
Enumerate splitted by pages does not work with \restoregeometry or \afterpage
I have a document used for worksheets.
When I use an enumerate and it flows from one page to the other, the pagestyle of the second page (\pagestyle{fancy}) does not apply, and instead, I am left with ...
0
votes
1
answer
79
views
Latex header spanning full page width
I am preparing a document for bookbinding. I want to add a colored header which spans the whole width of the page so that I can trim the book later. I currently found an option which achieves almost ...
0
votes
1
answer
70
views
How to apply different fancyhdr pagestyles across multiple pages
I have the following file structure:
my_doc
├── Pages
│ ├── blankPage.tex
│ ├── Page1.tex
│ └── Page2.tex
├── customPreamble.sty
└── main_file.tex
I have placed all the \usepackage{} calls in ...
0
votes
1
answer
54
views
fancyhdr and extramarks packages: incorrect header when chapter ends page
I have an encountered a problem with the \fancyhdr and \extramarks packages. When a chapter ends on a page, it puts the wrong chapter number. However, if a new chapter starts on that page, it renders ...
0
votes
1
answer
67
views
Fancyhdr Book Class
I have created a file with a running header. Right now, it only captures the last occurrence of each item. I would like for the left hand side to show the first occurrence, and the right hand side to ...
0
votes
0
answers
29
views
Running Custom Marks in FancyHdr
I have created a document that contains a book of the bible with chapter and verses. I have developed a header for the document, but it is not updating correctly. At the moment, it recognizes only the ...
0
votes
1
answer
43
views
Move anchor text in fancy header
In the code below, if the Chapter number is 2 characters or more, it clashes with the chapter name. How to go about moving JUST the chapter number closer to the edge of the document as shown in the ...