A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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

LaTeX, fancyhdr how to add section name to header

I am using fancyhdr package and unfortunately i am not able to put section name in header inside a mini page in my own defined \pagestyle. For most pages i use \pagestyle{fancy}, but i have one page ...
0
votes
0answers
17 views

How to set fancyhdr subsection to first subsection name on page?

Consider the following MWE: \documentclass[a4paper]{article} \usepackage{fancyhdr} \pagestyle{fancy} \let\Sectionmark\sectionmark \def\sectionmark#1{\def\Sectionname{#1}\Sectionmark{#1}} \let\...
1
vote
1answer
34 views

How to set header, with `\leftmark` not set by `\chapter*` environment, and manual setting cleared by `\printacronyms`?

\leftmark and \rightmark aren't being set, so I manually do this: \chapter*{Acknowledgements} \fancyhf[HRE,HLO]{\nouppercase{Acknowledgements}} \phantomsection \input{Acknowledgements} \fancyhf[HRE,...
0
votes
0answers
29 views

Move page number location on the first page of index to top right

I am using heading page style for my thesis. As a requirement, the page numbers must be consistently at top-right for all pages. My thesis has an index at the end. The page number on the first page ...
2
votes
3answers
43 views

How to a create a taller header on the first page?

On the first page of an article I want to create a much taller header than on the rest of the pages. Problem is that the first page overflows at the bottom if I use the solution below. How can I ...
0
votes
1answer
26 views

Two images in different corners of the header

I am writing a document in LaTex however I have an issue with the header. I need to insert two images in the header of the file along with some lines of text. So far my code : \documentclass{article}...
0
votes
1answer
28 views

change header style of bibliography page

My LaTeX looks as follows (I omit somethings): \documentclass{amsbook} \usepackage{fancyhdr,etoolbox} \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{\thepage} \fancyhead[LO]{\nouppercase\rightmark} ...
0
votes
1answer
33 views

Remove the page number at the bottom center of each new chapter start page

I am making a thesis in LaTeX with \documentclass{scrreprt}. The \usepackage{fancyhdr} is loaded and customized. Default settings of page number I think is \pagestyle{plain} by report, which ...
3
votes
3answers
334 views

How to write rhead only on the first page?

How to write rhead only on the first page? The other rheads should be nothing. Thank you \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \begin{document} \begin{center} text \...
0
votes
1answer
30 views

Set Section name as a mark for Fancyhdr header

I am using the fancyhdr package in my code and the preamble looks like this \fancyhf{} \pagestyle{fancy} \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \fancyhead[LE,RO]{\thepage} \fancyhead[RE]{\...
1
vote
1answer
55 views

Problems with page header on Table of contents page

My LaTeX looks as follows (I omit a lot of \usepackage and some fancy settings, e.g. open at odd pages): \documentclass[9pt,a4paper,reqno]{amsbook} \usepackage{fancyhdr,etoolbox} \pagestyle{fancy} \...
0
votes
1answer
29 views

fancyhdr \leftmark, \rightmark entry for \section*

I have the following latex document and I want to include a section "List of Abbreviations" without a numbering. This should appear in the table of contents as well (it should look similar to the List ...
0
votes
1answer
28 views

fancyhdr: Suppress header at the beginning of each chapter

There are questions on this topic but I am still confused (because I still do not understand how the given answers work). How do I suppress the header at the beginning of each chapter? \documentclass{...
1
vote
1answer
43 views

Page number is not placed at the right position

I'm trying to place my page numbers on the left on even pages and on the right on odd ones. As far as I understand the following code should do exactly this, but my page numbers are all on the right ...
1
vote
1answer
25 views

Fancyhdr: Centered header and page number between the rule

\documentclass[10pt]{book} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{lipsum} \usepackage{fancyhdr} \title{My Book} \author{Me} \begin{document} \maketitle \chapter{My Chapter} \...
1
vote
1answer
36 views

How can I persuade fancyhdr that my headers have zero height?

I'm putting my headers in the outer margins where they shouldn't take up any vertical space. I though to achieve this by using \vbox to 0pt{...}, but fancyhdr isn't buying. Here is the error message:...
0
votes
1answer
30 views

Costume Template with header and a line over the entire page

I am trying to replicate a template on MS word using LaTeX. The template is as shown in the below picture and must be applied to the entire document. So far I succeeded to either have the text in the ...
0
votes
1answer
39 views

Avoid different format of Title page using fancyhdr

I've been trying to learn some LaTeX formatting and I got stuck on something that should be quite simple but it seems that I only find quite complicated ways to solve it online. When I use the \...
0
votes
1answer
44 views

Fancyhdr does not work!

I am trying to compile my code using fancyhdr package but it doesn't compile it properly. Can someone kindly advise how to fix the issue? Here is what I am compiling: % MNRAS Manuscript Template \...
1
vote
2answers
21 views

Different headers for the first and further pages

MWE: \documentclass{article} \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=2cm,bmargin=3cm,lmargin=2cm,rmargin=2cm} \usepackage[utf8]{inputenc} \usepackage{fontspec} \usepackage[english]{...
0
votes
0answers
19 views

Newgeometry in memoir, different results in different pages

I'm trying to create a document with the memoir class. The document needs to have a specific header and footer on the first page, and a different header and footer on the rest of the document. I have ...
1
vote
0answers
35 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
19 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
37 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
30 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
44 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
43 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
35 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
26 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[ ...
1
vote
2answers
46 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
0answers
26 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
1answer
30 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
29 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
14 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
88 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{...
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
1answer
15 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
43 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
vote
2answers
50 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 ...
2
votes
0answers
62 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
0answers
25 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
31 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 ...
1
vote
0answers
14 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
53 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 ...
1
vote
1answer
36 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 ...
0
votes
0answers
42 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, ...
0
votes
1answer
53 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 ...
0
votes
1answer
47 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
172 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 ...
-1
votes
1answer
45 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 ...