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

Fancy Error LATEX

i get this error when i try to run my latex code. Package Fancyhdr \warning \fancyhead's 'E' option without twoside option is use less on input line 55 i got this error for the lines 55,56,57,58. I'...
1
vote
1answer
41 views

How to make section* appear in header

I am using the article class and a custom package where I use the fancyhdr package. I define my header using : \fancyhead[CO,CE]{} \fancyhead[RO,RE]{\scshape\leftmark} The problem is that I have ...
0
votes
0answers
28 views

Several pages in one page

I have document in which there are few lines of text, with a header made by fancy \pagestyle{fancy} \lhead{blabla} \begin{document} Here 2 lines of text \end{document} I would like to repeat the ...
0
votes
1answer
52 views

Reference 'last page' undefined, only running latex twice shows wanted result

If I run lualatex on a .tex file I only get ?? as a result from 'lastpage' in my document. Then if I run lualatex a second time, the correct result (2) is shown in the document footer. Main ...
0
votes
1answer
42 views

How to change \section to be flush right and underlined

Can someone please tell me how to get this design in articel class. I´m not getting anywhere near it using fancyhdr or other packages. Class: scrartcl I would really appreciate help, I´m really ...
0
votes
1answer
32 views

Problem with fancyhdr printing the wrong section title

I have a problem with fancyhdr in combination with the appendix package. The problem occurs - as far as I have observed it so far - only when I compile a one-page document. In twoside mode everything ...
0
votes
1answer
15 views

\firstmark on \tableofcontents produces unexpected result

So I am working on a rather small latex document and can't explaint the behavior of \firstmark on the table of content page. Tell me if I'm wrong, but in my understanding \firstmark holds the first ...
1
vote
1answer
20 views

Precise footer control (include line breaks and shift position)

I am preparing a poster and using fancyhdr to include content at the bottom of the page. I have two issues: \cfoot{} is not centered, this can be solved using \makebox{}, however, the later command ...
4
votes
1answer
43 views

Changing \headheight pushes footer off page

Preface: NOT a duplicate of My footer disappears when I increase headheight - I tried the accepted answer here and still ran into issues. I am using Overleaf to create some documentation for ...
0
votes
1answer
32 views

How to assign different footer from page 2 onwards?

I am writing a document in which 1st page footer contain a sentence while the footer of page 2 onwards contain respective page numbers. 1st page of document contain a longtable which continues on page ...
0
votes
0answers
41 views

Fancyhdr Provokes Immediate Error [closed]

I am interested in getting the title of the current subsection to appear in the header. However, while trying to use the fancyhdr. The code compiles perfectly, yet if I simply add the line \...
0
votes
0answers
23 views

How to show the name of the section at the first page of this section

I want to show the name of the section in my book on the left side of the top of the first page only of this section. For example, in the screenshot below I need to show the name of the section at the ...
1
vote
2answers
28 views

\fancyfoot[CE] in fancyhdr does not work

I'm using the following code and I want to put some information "wawa" in even pages and "popo" in odd pages, but the command \fancyfoot[CE]{wawa} does not work. If I change it to \fancyfoot[CO]{...
2
votes
1answer
31 views

Change footer within the document in fancyhdr

I am producing LaTeX reports via Rmarkdown. The LaTeX code should therefore be generic. I would like to add arbitrary text to the existing footer within the document, defined in a certain pagestyle. I ...
0
votes
1answer
44 views

How to get page numbers only on the header?

I've decided to use Latex for my thesis. I need to follow some style directions such as having the page number on the upper right side, starting to print the numbers only from the second page of TOC ...
3
votes
1answer
53 views

Getting a tikz picture in a fancyheader for only the first page

I'm trying to insert a tikzpicture in the header of the first page of the document. If I place the tikz picture in the declaration of my \fancypagestyle{my1stpagestyle}, then the figure is indeed ...
1
vote
0answers
58 views

Does anyone know how to set the chapter style like the image?

It may be just a name of package or of a font but I don't know the name so I would like to write it. Is there a way to do that?
1
vote
0answers
30 views

Chapter number not showing on odd pages

I have set my chapter numbering to Roman, and by using the fancyhdr package, I put the chapter number in the top center of each page. However, it is only showing on even numbered pages. Example: \...
3
votes
1answer
41 views

How to show page numbering after a specific page

I'd like to show page numbering after table of contents, but Latex starts showing page numbering on list of figures \documentclass[12pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[...
0
votes
1answer
35 views

Some problems with toc and usage of fancyhdr package

Firstly, I would like to have my introduction the same as my bibliography(font and location) (Photo 1) the introduction is better seen in photo 2 Secondly, I want to remove the "contents" from the ...
0
votes
1answer
56 views

Distance between top (or bottom) margin and header (or footer)

I am preparing a camera-ready book. My publisher has given me a stylesheet that is based on a Microsoft Word template. I am having trouble setting the exact measurements of the sheet with the geometry ...
2
votes
1answer
35 views

Right/left aligning with fancyhdr

I cannot wrap my head around fancyhdr and a two-paged document. This is what I have now: \pagestyle{fancy} \renewcommand{\chaptermark}[1]{ \markboth{#1}{} } \renewcommand{\sectionmark}[1]{ \markright{...
3
votes
2answers
86 views

how to skip first page while using fancyhdr package in tex

I am writing a tex document using book document class, and all the text is under \begin{enumerate}. I am also using fancyhdr pkg as follows : \usepackage{fancyhdr} \fancyhead[C]{book-title} This is ...
1
vote
0answers
10 views

Want headers to appear on subsequent pages

I have the table of contents for Tables and Figures. The headers in the figures pages are working fine. However, in the table pages, they are not. Here is the code in driver.tex \tableofcontents % ...
0
votes
1answer
34 views

Disable headers in sub-files when compiled stand-alone

I am writing a large report (using the report class), and hence have a "main" file alongside all the parts as separate TeX files. The subfiles package is used to import all of the part files into the "...
0
votes
1answer
33 views

Page numbering issue on part and chapter pages

I want to have my pages on the top right corner of all of my pages. However, for every \part and \chapter the page number is on the bottom middle. My code (the numbering part) is: \documentclass[...
0
votes
3answers
68 views

Table of contents to take full name of sections while header and footer take shorter version of them

I am creating my thesis using LaTeX where I used fancyhdr for defining my header and footer globally. What I am trying to attain are: Print shorter version of my current Chapter name as header on ...
1
vote
1answer
33 views

Modify left fancy header also in the bibliography section

When I change the behavior of \leftmark in the Reference section, it only changes on the second odd page of that section (by default, both \leftmark and \rightmark is set as \bibname). Compile the MWE ...
0
votes
1answer
35 views

Headers and footers using fancyhdr displays table of contents on even pages

For my thesis I wish to alternate the header for even and odd pages like this template. I looked at the code of that template, but it was a bit too complicated for me to apply it to my own file. On ...
1
vote
0answers
35 views

Problem in displaying correct header notes

I am currently facing in one of the page where the last line ended by only chapter, in that page its unable to show the chapter number in the header, , every chpater number that we see is the verse ...
0
votes
1answer
28 views

Fancyhdr not working

I follow a template for an academic journal. I would like to have in the even pages the name of the authors in the heading and in the odd page the title of the paper. My MWE is: \documentclass[]{...
2
votes
1answer
66 views

Last Section appearing on top with usage of pagestyle fancy

I am having trouble including page numbers in my resume. I earlier used \pagestyle{empty} for non-numbered page but thought to have page numbers. So I decided to use following packages which works ...
0
votes
1answer
19 views

Custom footer on first page (using `hook')

I have the following MWE: \documentclass[12pt, twoside]{memoir} \usepackage[utf8]{inputenc} \usepackage[margin=1.5in]{geometry} \setlength{\parindent}{0pt} % space at start of new paragraph \...
1
vote
1answer
49 views

Custom Footer on Each Included PDF

I'm working on a document that's essentially a collection of PDFs (about 55). Here's what I've got so far: \documentclass[12pt]{article} \usepackage[letterpaper,margin=1in,landscape]{geometry} \...
0
votes
0answers
25 views

Fancyhead selectors do not work correctly

I'm using fancyhdr package to add in the header of my book the title of chapter and the page number. I would like on the even pages the page number to be on the left, whereas the chapter title on the ...
0
votes
0answers
97 views

RSC template fancyhdr doesn't respond well!

I am using RSC latex template (https://www.latextemplates.com/template/royal-society-of-chemistry) to write my research article using Texliv and the margin at bottom is not well aligned (see image ...
0
votes
1answer
38 views

Clear header except page numbering

Edit: Due to failure in answer, I will break the problem into two parts -- simple and complex with the intention of being more clear on what the question deals with. Simple problem: With respect to ...
1
vote
1answer
47 views

larger header on first page

I have a multipage document that has a larger header on the first page. However, it is not a titlepage, I don't know where it ends. I would like the pagebreaks to be determined automatically. This is ...
1
vote
0answers
34 views

\leftmark and \rightmark not working with paracol

I have a document with two texts shown side-by-side using paracol. I want to have a simple header style where the odd pages show the title of the first section on that page and the even pages show the ...
1
vote
1answer
32 views

fancyhdr is only appearing on the titlepage

I'm trying to get a small image into the footer of my report. I found online that the best way to do this is by using the fancyhdr package. I thus included following code into my main.text document, ...
0
votes
0answers
39 views

header and footer appear different on first page

I want to create a document that has the same header and footer on each page, but when compiling, the pdf shows a different header and footer on the first page as that which appears on the remaining ...
0
votes
2answers
65 views

Pagenumbering is missing on pages without chapter start

I'm currently writing my thesis and found a problem with my pagenumbering. Only on pages where a new chapter starts, there is a page number, on the following pages the footer is missing. The pages ...
2
votes
3answers
42 views

How to make chapter first page use mystyle?

It seems chapter first page use plain style. I created mystyle. How to make chapter first page to use mystyle? \documentclass[twoside]{report} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{...
1
vote
1answer
38 views

How to bottom-align both \lfoot and \rfoot together using fancyhdr

LaTeX code: \documentclass{article} \usepackage[a6paper]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \lfoot{\Large Hello\\World} \rfoot{\Large \...
2
votes
2answers
47 views

fancyhdr in page margins

I want to print text as you would a header on a page but rotated in the left/right margins of the page following a typical book format (print right on odd pages and print left on even pages) using ...
2
votes
1answer
40 views

header on both pages of ToC

I'm trying to add a header to most of my pages, all work, however the table of contents doesn't seem to work. Only the second page shows a header (not the first one). Code in my main file \...
0
votes
0answers
58 views

How to set fancyhdr on chapter initial page of two side report?

\documentclass[twoside]{report} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} \begin{document} \chapter{First} \lipsum[1-9] \end{document} Given the obove as a start. I see one ...
1
vote
2answers
37 views

Vertically align a too high threeparttable on landscape page while keeping fancyhdr in original place

I have a rather large threeparttable that was too wide to fit on a vertical page, so I put it on a landscape page. But now it is a bit too high to fit between the top (left) and bottom (right) ...
0
votes
1answer
44 views

Page numbering on chapter pages (fancyhdr) + roman numbering before introduction

I would like to have all of my page numbers on the top right of my pages and for now it does so only for my pages without a ,\part or \chapter. Furthermore, I would like my pages before my in ...
1
vote
2answers
67 views

How to put my page numbers on the right side of the header?

I'm writing a \documentclass[a4paper,twoside,12t]{report} and I would like to get my page numbers on the top right side of my pages (after the table of content) with fancyhdr. Here is the code I'm ...