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
1 answer
42 views

Wrong formatting when dividing document in single chapter files

I have setup my document using a chapters folder that contains single .tex files for each chapter. In the main file, I have done all the formatting. When I first included some sample chapters, ...
Jannik Ber's user avatar
0 votes
1 answer
43 views

A letter head with top and bottom logos, page numbers starting with zero [closed]

\documentclass[11 pt, a4paper]{letter} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage[top =2.5 cm, bottom = 2.5 cm, left = 2 cm, right =2 cm]{geometry} \usepackage{...
Sastry's user avatar
  • 1
1 vote
1 answer
115 views

How to obtain top aligned text (with respect to the top of the text and not the bottom) with parbox in header?

I would like to have top aligned text on \fancyhead[L] and \fancyhead[R]. First attemps: with parbox For the moment I was able to obtain this (red dotted line just for explanation purpose): With the ...
zetyty's user avatar
  • 777
0 votes
2 answers
673 views

Recovering a missing page number

In formatting my Ph.D thesis (report document class) it is required that the first page of the TOC ("Table of Contents") contains just a page number and a "Page" located at the ...
Fei Cao's user avatar
  • 113
0 votes
1 answer
409 views

Specific font and size of the footer (page number)

Simple as it is but I can't find an answer. Working on a novel. \documentclass[9pt,twoside,openany]{book} Want to use specific font for page numbers. Currently it's governed by Fancyhdr \fancyfoot[...
tryingout's user avatar
  • 115
0 votes
1 answer
703 views

Page header on different sides for odd and even pages

I am using a custom template to write my thesis, and I am trying to align the page headers on the right side and the page numbers on the left side, in odd pages. The template by default has the same ...
D T's user avatar
  • 93
1 vote
1 answer
428 views

Forcing pagestyle to change in a formatting issue

I used the "report" document class for my Ph.D thesis and the formatting requirement is that 1) There should be a CHAPTER header right aligned and Page header left aligned on top of each ...
Fei Cao's user avatar
  • 113
0 votes
1 answer
128 views

fancy header does not work in dissertation class overleaf

As many before me, I have issues with fancyhdr. Something that should be easy to solve but is frustratingly non-cooperative. I use a dissertation class project on Overleaf to write my thesis. This set-...
Linda's user avatar
  • 7
1 vote
1 answer
112 views

Gregoriotex interferes badly with fancyhdr, how to solve this?

This is a sequel to this question. But it addresses a different problem. When the above mentioned question was posed about a year ago, I had not noticed it. By accident I saw it last week, and as it ...
Pieter van Oostrum's user avatar
0 votes
1 answer
141 views

How to align Tikz picture in fancyhdr header to the document edges?

I am preparing a template and I should add a bookmark-like icon in the edges with the page number. This works fine with tikz, however, the edges of the icon are not aligned with the document edge. If ...
Pab's user avatar
  • 17
0 votes
2 answers
374 views

How to change the font in the running headers in the article class

How do I change (only!) the font in the running headers in article class. I know the answer: use fancyhdr. However, the defaults in fancyhdr are very different from the article class, which means I ...
anon's user avatar
  • 103
0 votes
1 answer
49 views

Table of contents of a Book and Fancy psframebox

I want to do the table of contents of a book, but when I tried to use the command \chapter{} it doesn't work. I guess the problem is that I'm trying to put it in a \psframebox, however, I need it in ...
Merder's user avatar
  • 3
0 votes
2 answers
150 views

How can i get this chapter page style?

that's my first post here. Can anyone help me to understand how to get this? Thanks <3
Sbliz's user avatar
  • 3
0 votes
2 answers
427 views

How to Selectively Remove the Header and Have the Page Number Only Appear at the Bottom of the Page

I am working on a document in which I make use of a header where the header displays the page number at the top of the page. There are, however, a small number of instances where I would like the ...
DDS's user avatar
  • 8,826
1 vote
1 answer
791 views

Compilation Warning - "Negative Labelwidth. This does not make much(enumitem) sense,"

I get a compilation error in the below document. I've made a outline template I like using for my notes, but get a compilation warning with some 'suggestions.' What do these mean? I also get a ...
Ziggy's user avatar
  • 416
5 votes
1 answer
216 views

How to Display the Page Number Only (No Header) for Chapter Pages; Header Only, Elsewhere

Consider the code \documentclass[openany]{book} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{pgfpages} \pgfpagesuselayout{2 on 1} \begin{document} \LARGE \thispagestyle{empty} \pagestyle{...
DDS's user avatar
  • 8,826
0 votes
2 answers
717 views

Different page style on last page of chapter

I am using fancyhdr for the formatting of my page styles. I have used a headerline that expands inwards. On the first page of a chapter this line is shorter. In a chapter it looks like this: When a ...
Philipp's user avatar
  • 222
1 vote
2 answers
120 views

How to format \thesection with leading 0?

I'm pulling together a design from a graphic artist's ideas.. In the body the section header does not show numbers, but they want the section number in the header - but as a padded number - so not &...
baradhili's user avatar
  • 271
0 votes
1 answer
81 views

Add page number on moderncv of classic style

I am aware that this question has been posted a couple of times but none of the answers seem to work with the most up-to-date version of moderncv. https://github.com/moderncv/moderncv This is where ...
Vladimir's user avatar
  • 827
2 votes
1 answer
170 views

Conflict between fancyhdr, truncate and xcolor packages

With this code: \documentclass[12pt,letterpaper,twoside,openright]{report} \usepackage{xcolor} \usepackage{fourier} \usepackage[fit, breakwords]{truncate} \usepackage{fancyhdr} \pagestyle{fancy} \...
Diego Andres Alvarez Marin's user avatar
0 votes
1 answer
42 views

Different header on TOC and Bibliography

I have defined my custom header using the fancyhdr package and this is my code: \renewcommand{\headrulewidth}{0.1mm} \fancyhf{} \fancyhead[RO]{\slshape\rmfamily\nouppercase\rightmark} \fancyhead[LE]{\...
th3g3ntl3man's user avatar
1 vote
2 answers
725 views

Different headers for first page and following pages even and odd

What I would like to achieve is a (fairly high) header in the first page and alternate headers with different heights for even and odd in the subsequent pages. I tried Werner's solution from this page,...
Andyc's user avatar
  • 555
0 votes
1 answer
153 views

fancyhdr troubles with left and right page footer

I am writing a book with LyX Version 2.3.6.1 (+TexLive 2021) I have choosen as Document Class in Lyx book standard but I do not like the default page numbering bottom-centered so I use the possibility ...
Matteo's user avatar
  • 1
0 votes
1 answer
286 views

fancyhdr not showing up on all pages of appendix

I'm trying to get a fancyhdr onto all pages of my appendix. The header and footer don't continue to the end of the section. There are different sections of the appendix (Appendix A, Appendix B, C, ...)...
SP1's user avatar
  • 77
1 vote
1 answer
499 views

Modify the chapter mark

I have an incorrect chapter mark in a page. I inserted an unnumbered chapter (\chapter*{History} and I get "List Of Figures" as the chapter in the current position. How can I change it? The ...
tush's user avatar
  • 1,125
0 votes
1 answer
503 views

Define multiple page styles with fancyhdr (also multiple plain)

Is it possible to define multiple page style using fancyhdr package, for toc and for the document, setting also in a different mode the plain pages for toc and the plain pages for the document. This ...
Mario Sernicola's user avatar
0 votes
1 answer
103 views

Why does LaTeX use the wrong header?

Based on my question "Check if number is in list" I have another problem: I used the answer from Steven to get two lists: highlightedProjects and normalProjects. The projects are tex-Files ...
Ramona K.'s user avatar
0 votes
1 answer
340 views

Fancyhead Display Custom Shorten Version Of \leftmark

Good day, I would like to display a custom shorten version of the \leftmark with Fancyhdr. Ideally it would be some type of switch with a case for each chapter. Right now this is what the header's ...
RilDev's user avatar
  • 3
0 votes
1 answer
46 views

Add Header to TOC TableofContent, error with \tableofcontents

I am encountering a weird problem. I've been trying to get a header into my Contents page. For reason using \thispagestyle{fancy} along with \usepackage{fancyhdr} in the preamble does not "...
Kayoshin's user avatar
1 vote
1 answer
52 views

how to make fancyhdr headers positioning to not depend of size of ToC in two-sided document

Consider this test case: \documentclass[twoside]{article} \usepackage[a4paper, vmargin={350pt, 350pt}]{geometry} \usepackage[linktocpage=true]{hyperref} \usepackage{titling} \title{Title}\author{}\...
Alex Shevchenko's user avatar
2 votes
1 answer
297 views

Vertical alignment for multiple elements in header with scrlayer-scrpage

I have recently started using the koma-script classes, but I am having trouble transitioning from fancyhdr to scrlayer-scrpage. I want to place a logo on the right side and a mark on the left side. ...
marv's user avatar
  • 2,099
2 votes
2 answers
953 views

destination with the same identifier (name{page.}) has been already used, duplicate ignored warning

Consider this test case: \documentclass{article} \usepackage{hyperref} \usepackage{fancyhdr} \fancypagestyle{empty}{ \pagenumbering{gobble} } \usepackage{titling} \title{} \author{} \begin{...
Alex Shevchenko's user avatar
0 votes
1 answer
70 views

How to make section name appear in ToC when using both fancyhdr and titlesec

We want the section Preface to appear on the TOC, but as can be seen on the following screenshot, the section name does not appear to be visible, although the dotted line is appearing with page number ...
Buster3650's user avatar
1 vote
2 answers
351 views

Is it possible to change the font size of the section number and text with fancyhdr

We would like to change the font size of the section only, but as header and footer is set with fancyhdr, then we would like to use same package or a package that is not in conflict with fancyhdr. Our ...
Buster3650's user avatar
0 votes
1 answer
927 views

Headers with fancyhdr (or others): Chapter on odd pages, Section and Subsection on even pages

I'm using a double sided report for my thesis and in the headers I want to show: Chapter number and name (on the left) on odd pages; Section number and name (on the left) and Subsection number and ...
Oleksiy Popovych's user avatar
2 votes
1 answer
226 views

Remove Number Label from \sectionmark

There are a number of questions on the site that come somewhat close to this one, but don't seem to solve my problem. I'm working in Overleaf for the following, if that means anything. I'm trying to ...
flevinBombastus's user avatar
2 votes
1 answer
89 views

fancyhdr commands give different result when writing a document in Hebrew

This question is a follow up to my previous one. I am writing a book in Hebrew. I want the mainmatter of the book to have the following style in the headers and footers. nothing to be printed in the ...
tush's user avatar
  • 1,125
1 vote
1 answer
176 views

How to show only chapter number and chapter title as well as book title in header using fancyhdr

I am writing a book in which I want to customize the headers and footers for the main matter. I want it to have the following style: nothing to be printed in the footer - (\fancyfoot{}) page number ...
tush's user avatar
  • 1,125
2 votes
4 answers
466 views

fancyhdr long section name overlaps page number

Hi I use fancy header but the page number overlaps with the section name in the header. Is there a way to force either a tiny bit smaller text or just allow for longer margins in the header? Thanks. ...
Simon Chemnitz-Thomsen's user avatar
1 vote
1 answer
180 views

Spacing between header and text

I have a pretty simple report document that I made myself (I usually use templates) \documentclass[11pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{titling} \usepackage{graphicx} \...
NotQuiteSo1337's user avatar
0 votes
0 answers
36 views

\Subsectionname in header breaks after a while

I am writing my thesis using subfiles and have split it up into sections and subsection. Each subfile contains a section. I use a fancy header with subsection and section in the header alternating on ...
Simon Chemnitz-Thomsen's user avatar
1 vote
2 answers
37 views

Custom Header | Match Table of Contents Font Size with Fancy Header Font Size

Background I am creating a maths primer worksheet. I just need help with fancyhdr under % [ pkg - page format ] and \tableofcontents under % [ document ]. Here is an example: % [ file: maths-primer....
Michael Sodeke's user avatar
4 votes
3 answers
683 views

fancyhdr and rightmark - how to remove the dot

I am using the fancyhdr package to create a heading for my document. It is working really good, but on the odd pages on the right side I get "1.1. Section 1", but what I want is "1.1 ...
Knall bert's user avatar
0 votes
1 answer
107 views

Running header missing from my pdf file

Here is a Latex code of a journal's template. While the accompanying pdf in the journal's site shows a running header in both the odd and the even pages, when I execute the same file, I do not get a ...
Anisha's user avatar
  • 33
1 vote
0 answers
44 views

\headheight warning with image in header [duplicate]

In the Overleaf, when I compile , I get this warning constantly: Package Fancyhdr Warning: \headheight is too small (12.0pt): Make it at least 106.59952pt. This is my work: \documentclass[12pt]{book} \...
dmtri's user avatar
  • 161
1 vote
2 answers
2k views

Header with image on every page

I am very new to LaTex and I am trying to create a document, where every page (well every page after the title page) shows the same header picture on the top left corner. I am using Overleaf. I tried ...
Remo's user avatar
  • 169
0 votes
1 answer
127 views

Messed up header / geometry - header line above text instead of below

I've messed something up in fancy header / geometry settings and I'm getting header line above the header text. Where is the mistake and how can I get the default behaviour of displaying the header ...
Konrad's user avatar
  • 279
1 vote
1 answer
316 views

Deleting header rule on the first page

I would like to generate myself a standard, simple report template. In the attached example I would like to have different set of headers on the first page. I'm stuck with a problem trying to remove ...
Konrad's user avatar
  • 279
0 votes
0 answers
24 views

fancyhdr error when putting in graphics [duplicate]

When I try to put \includegraphics in the header of a tex document using fancyhdr I get an error saying that \includegraphics is an undefined control sequence. Here is the code: \documentclass[a4paper]...
MathStudent's user avatar
0 votes
1 answer
48 views

PythonTeX cannot modify header or footer

Using PythonTex 0.18 i cannot change the header or footer. I followed the solution in using-pythontex-py-with-fancyhdr but it still doesnt work. MWE: \documentclass[11pt]{article} \usepackage{fancyhdr}...
dangu's user avatar
  • 13

1
3 4
5
6 7
37