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
19 views

Problem formatting header and footer with fancyhdr

I am writing my thesis using \documentclass[12pt, oneside]{book} Using the document class 'book', I am automatically getting 'Chapter #' headlines which I don't want and have removed using titlesec ...
user avatar
0 votes
1 answer
36 views

Remove dot from custom defined section title

I've just defines a new type of section title following this page. The used code is shown below: \newcommand{\ssection}[1]{% \section[#1]{\centering\Large \\ #1}} If I type \ssection{This is a test}...
user avatar
0 votes
1 answer
32 views

Working page counter in tikz image in repeating fancyhdr?

I'm trying to generate a aggregated document, that consists of several sub-sequent documents with similar footers and headers: ┌────────────────┐ │fixed header │ ├────────────────┤ │some content ...
user avatar
0 votes
0 answers
22 views

The figure/(table name) is on the page header by use fancyhdr, How to solve it?

The is black line is page header line. \usepackage{fancyhdr} \usepackage{cctbook} in the preamble. \pagestyle{fancy} \fancyhead[CE]{\songti 一维二维}\fancyhead[CO]{\songti 为了部落} I insert the figure or ...
user avatar
0 votes
1 answer
16 views

Set page numbering on specific pages

I have an article in which I'm using fancyhdr to make a header with section names and a footer on the right side of the pages. However I want to remove the header on some specific pages while keeping ...
user avatar
  • 1
0 votes
0 answers
27 views

unnumbered Section* in Header without using chapter

\documentclass{article} \documentclass[12pt,twoside]{article} \usepackage[utf8]{inputenc} \usepackage[a4paper, left=2cm, right=2cm, top=2cm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \...
user avatar
0 votes
1 answer
23 views

Get beginning and ending counter of environment in page

Let's say I have an environment theorem. And on top of each page, I want to print Theorems 1-3 so I would need to know how to access the starting and ending counter of the environment theorem. How ...
user avatar
  • 757
1 vote
1 answer
37 views

\@abspage@last fails to typeset number in header

I tried to typeset the total pages number in right header by \@abspage@last under pagestyle fancy. Instead of number, the text abspage@last is printed. Why? And how to deal with it? MWE: \...
user avatar
  • 2,211
3 votes
1 answer
55 views

How to center lines of text using fancyhdr

Illustrating a minimal example: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{Short Name \\ Really long Name} \chead{Title} \rhead{Date} \begin{document} | \end{document} ...
user avatar
  • 337
0 votes
1 answer
22 views

Footer spacing inconsistency with fancyhdr

I'm using the fancyhdr package with multiple columns. As you can see from the image bellow, the text spacing is inconsistent. I've tried to use \footskip in the geometry package and looking online, ...
user avatar
1 vote
1 answer
55 views

Conflict between \pagestyle{fancy} and xcolor package

\documentclass{article} \usepackage{xcolor,fancyhdr} \pagestyle{fancy} % This line causes error message "Package xcolor Error: Undefined color `RED'". % If this line is removed, or replaced ...
user avatar
  • 2,211
0 votes
1 answer
24 views

Why changing page footer content draws a line to the top of the page

I wanted to change my footer content so it would be a text I chose instead of the page number. But making this change draws a line to the top of the page. How to get rid of it? Here is the code: \...
user avatar
  • 27
0 votes
1 answer
44 views

Page numbering disappear when using together (1) fancyhdr and (2) geometry packages

[ORIGINAL QUESTION: How to insert the page numbering with reledmac and reledpar?] I am writing a book in two languages, with facing pages, by using several packages, as the matrita package, the ...
user avatar
  • 151
1 vote
1 answer
52 views

Format full header with figure and plain background

I want to configure my page header such as I've tried using the eso-pic package suggested in this answer, but it seems like it doesn't allow add images or text too. \documentclass[letterpaper,12pt,...
user avatar
  • 13
0 votes
1 answer
30 views

How to append something to a page style defined by \fancypagestyle

Some other codes can be appended to a macro by tools from etoolbox, for example, \apptocmd. I wonder if there are similar ways to append something to a page style defined by \fancypagestyle from the ...
user avatar
  • 2,211
0 votes
1 answer
43 views

Customising Overleaf Template

I guys, I am using this technical report template that I consider robust and well built. I tried to change the template adapting it to my needs and I managed almost in everything, except for two kind ...
user avatar
  • 247
1 vote
1 answer
74 views

Make dotfill on left page

Please help me code the left dots for note. They are repeated on all pages. Thank you in advance!
user avatar
0 votes
1 answer
28 views

How to get page number to the right of \textwidth

I would like to set my page numbers to the bottom right to the right of \textwidth. I have a couple figures that have long footnotes and the page numbers are currently on top of this. While not ideal, ...
user avatar
  • 411
0 votes
1 answer
34 views

Chapter name on the left and section name on the right in the header

I am trying to add a header on the top of each page of my document. I want to have each chapter's name on the left and section name on the right (flushrigt). \documentclass[12pt, a4paper]{report} \...
user avatar
  • 67
0 votes
0 answers
26 views

fancyhdr not working with wrapfigure on page? [duplicate]

I am using fancyhdr to specify the header and footer of my document. Everything works fine until I try placing a wrapfigure environment on the page as below: \begin{wrapfigure}{r}{0.3\textwidth} \...
user avatar
2 votes
2 answers
153 views

Issue with my template

For all my documents, I created a template.tex file which is imported in all my files. But it says that I got those issues : /home/rperrod/rp/PERSO/LaTeX/Test/template/t.tex:20: Undefined control ...
user avatar
0 votes
2 answers
35 views

How do you change fancy page numbering style after specific point in report?

I'm writing a report in which I want to have separate numbering styles before and after the introduction. For the executive summary and toc I want to have no page numbering, and following this (up to ...
user avatar
  • 115
0 votes
2 answers
42 views

How to make the setting fancyhdr for \frontmatter is same as for \mainmatter?

\documentclass[twoside,11pt]{book} \usepackage{fancyhdr,xcolor,lipsum} \let\Chaptermark\chaptermark \def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}} \fancyhead{} \renewcommand{\headrulewidth}{...
user avatar
0 votes
1 answer
17 views

Problem with importing logo in footer

I wanted to use this answer to insert my own logo instead of the bluish grid example logo here using the following codes unsuccessfully: % Assemply of the footer four boxes to \Fframex \JoinCoffins*\...
user avatar
  • 141
0 votes
2 answers
44 views

How to make the box page number is in line?

\documentclass[twoside,11pt]{book} \usepackage{fancyhdr,xcolor,lipsum} \fancyhead{} \renewcommand{\headrulewidth}{0pt} \fancyfoot{} \colorlet{myfancycolor}{black} \fancypagestyle{mystyle}{ \...
user avatar
0 votes
0 answers
30 views

No page numbering is appearing when using fancy header and subfile packages?

I know this topic is the subject of numerous posts on this forum. I have read through them, but I don't really understand the answers and they haven't been working for me. Furthermore, I am also using ...
user avatar
0 votes
1 answer
51 views

header with lowercase letters

I want to write a document with oneside style in which the chapter titles and the section titles in header appear with lowercase letters. I use this code \documentclass[oneside]{book} \usepackage{...
user avatar
  • 329
0 votes
1 answer
20 views

Header and footer only displayed on Chapter pages, but not on non-chapter pages

I am using fancyhdr to set headers and footers. However, those are only displayed on chapter pages. Non chapter pages footers and headers are blank. Why is this the case? Here is a MWE % packages and ...
user avatar
0 votes
1 answer
32 views

Margin paragraph and head rule are reversed on even pages in twoside book

I am writing a book in Hebrew (which means Right to Left direction of text) using the book doc class together with the twoside option. I enlarged the margin paragraph to be 50mm. Now I want the header ...
user avatar
  • 298
0 votes
1 answer
32 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, ...
user avatar
0 votes
1 answer
32 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{...
user avatar
  • 1
0 votes
1 answer
29 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 ...
user avatar
0 votes
2 answers
86 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 ...
user avatar
  • 103
0 votes
1 answer
32 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[...
user avatar
0 votes
1 answer
36 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 ...
user avatar
  • 83
0 votes
1 answer
44 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 ...
user avatar
  • 103
0 votes
1 answer
47 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-...
user avatar
  • 7
0 votes
1 answer
48 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 ...
user avatar
0 votes
1 answer
46 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 ...
user avatar
  • 7
0 votes
2 answers
39 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 ...
user avatar
  • 3
0 votes
1 answer
33 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 ...
user avatar
  • 3
0 votes
2 answers
81 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
user avatar
  • 3
0 votes
2 answers
60 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 ...
user avatar
0 votes
1 answer
63 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 ...
user avatar
0 votes
0 answers
14 views

Set custom field in header [duplicate]

we are currently writing our thesis. Since we work as a team we have to write down the author for each section. I tried it by overwriting \leftmark and \rightmark with the command \markboth and \...
user avatar
5 votes
1 answer
194 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{...
user avatar
  • 4,905
0 votes
2 answers
105 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 ...
user avatar
  • 202
1 vote
2 answers
56 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 &...
user avatar
  • 249
0 votes
1 answer
25 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 ...
user avatar
  • 747
2 votes
1 answer
49 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} \...
user avatar

1
2 3 4 5
34