Questions tagged [header-footer]

{header-footer} is about customizing headers and footers, i.e., choosing a page style for certain pages (e.g. empty, plain, headings) and (for the styles employed) placing information like the current section title and page number. Popular packages are {fancyhdr}, {scrlayer-scrpage}, {titleps}, and {scrpage2}.

Filter by
Sorted by
Tagged with
6
votes
2answers
7k views

how to remove 'Chapter' word only from headings?

I want to suppress the word 'chapter' from my headings but to leaving the normal 'CHAPTER X: Name of the chapter' in the document. I want that my headings says '# Name of the chapter', not 'Chapter # ...
6
votes
3answers
1k views

Page numbering in the middle of a line

How can I set up a document to write the page numbering in the middle of a line? Through fancy pagestyle I've got a situation like the following one: --------------------- % this is a line after the ...
6
votes
2answers
450 views

Typesetting Devanagari-manuscript-style “Pothi”/“Patravali” books

First of all, I am quite new to TeX - so practically a newbie. I am trying to typeset Devanagari books in the traditional "Pothi" format, which looks pretty much like the manuscript illustrated below. ...
6
votes
2answers
2k views

Hide page numbering but retain header/footer

I would like to remove page numbering on a specific page. However, the header and footer should remain intact. If I try: \thispagestyle{empty} The header and footer disappear. What is the ...
6
votes
2answers
3k views

titlesec versus titling; mangling \thetitle

I want to have the chapter name and title of the document appear in the header; I know how to do that with fancyhdr and titling, one of the miscellaneous functions of the latter is to preserve the \...
5
votes
1answer
1k views

What has changed in LaTeX that means the RSC template no longer works

I've been having an issue with the RSC Article template that causes the first page to render fine, but every subsequent page to render incorrectly, with a large blank area at the top, and the rest of ...
5
votes
2answers
1k views

Wrap page number in colored box in footer

I a looking for a way to achieve the following outcome for the page numnbers in my footer created using fancyhdr: My current code in a stand-alone example looks like this: \documentclass[12pt,...
5
votes
1answer
1k views

fancyhdr page decorations and page numbering

Hello there are several examples of decorative pages. Most examples work with a single page,when numbering is not necessary. When i try to make for every page. It does not work, or i have problems ...
5
votes
2answers
13k views

Page number and name in the header of each page

How do you enter a page number on the right-hand side of each page? Also, is there a command so that "My name" is on the top left corner of each page except the first page? And maybe put a bar ...
5
votes
1answer
836 views

How to automate a dictionary (sorting, headers)?

Here is a piece of solution to automate a dictionary using the links given in the first following comments. There are two problems to solve : When one definition starts on one page and finishes on ...
4
votes
1answer
8k views

avoid \headrulewidth appearing at chapter beginning

I am using the following code set my headers. \fancypagestyle{plain} \fancyhf{} \pagestyle{fancy} \fancyhead{} \fancyhead[L]{\textit{\sffamily\ifthenelse{\isodd{\value{page}}}{\leftmark}{\rightmark}}}...
4
votes
1answer
8k views

How to get header and footer over ToC, LoF and Nomeclature?

I would like to know how we include header and footer over Table of Contents, List of Figures and Nomenclature? Do we need to renew any command? or any package is used to do that? Sample script would ...
4
votes
1answer
890 views

Mix Warsaw and Madrid beamer theme

This is my first question. Be patience please. In beamer class, I want the headline of Warsaw (you know, not only current section and subsection but also all sections and all subsections of the ...
4
votes
1answer
1k views

Custom footer using tikz

I am trying to modify the footer of my article document using Tikz but I don't know where to start. My idea is to enclose the page number in a circle and between lines at the footer: -----------------...
4
votes
1answer
1k views

Non-superscript footnotes, in the text

There are already answers about how to make footnotes marks appear full-size in the footnote text (i.e. bottom of page), for example: this, or this. I want to know how to make it non-superscript in ...
4
votes
2answers
1k views

scrpage2: Three “marks” for headings

As far as I know of the \automark command (scrpage2 package), it is only possible to mark two different "header-types" (e.g. sections and chapters). I'm searching for a way to mark an additional "...
4
votes
2answers
3k views

scrlttr2: make second page footer match first page footer

I'm trying do my cover letter in scrlttr2. I'm working from a template which I found online and I want the same footer for the second page as for the first. I really have no idea how to do this and ...
4
votes
1answer
3k views

Set header and footer rule color in memoir

Is there a way to set color for header and footer rule in memoir class? Using the following code: \documentclass[ebook,12pt,twoside,openany]{memoir} \usepackage{lipsum} \usepackage{graphicx} \...
3
votes
2answers
2k views

wrong header in bibliography (classicthesis)

I'm using classicthesis and have a problem with the header of my bibliography: instead of small caps I receive normalfont letters. I don't know how to make a reproducible MWE, because when I load a ...
3
votes
2answers
14k views

Including section titles in fancyhf headers

I would like to include the section name of the page's displayed section in my header tags in the fancyhdr package, something like \fancyhf[HR]{SECTION NAME} \fancyhf[HL]{SUBSECTION NAME} How can I ...
3
votes
1answer
859 views

Memoir : Warnings “The material used in the headers is too large” w/ accented titles

With memoir class, the default headers height seems unsuitable for accented titles of chapter/section. The result doesn't look strange, but Warnings The material used in the headers is too large (14....
3
votes
2answers
542 views

How to get the author and chapter names in header; alternatively using fancyhdr?

I want to set a header/footer which shows: Chapter name on odd numbered page; Author name (different authors in different chapters) in even numbered pages; Page number in central footer. Any help ...
3
votes
1answer
11k views

No page numbering for the table of contents

How do I skip numbering until the beginning of chapter 1 with scrbook? I'm using something alone the lines of \begin{document} \pagestyle{empty} \pagenumbering{none} \maketitle \tableofcontents \...
3
votes
2answers
1k views

komascript/scrpage2: odd page header in passages without a \section (two-sided docs)

Suppose you have a two-sided document. The even page's header contains the title of the current chapter; the odd page's header contains the title of the current section. Nothing too fancy, and pretty ...
2
votes
1answer
1k views

Suppress the page number on a specific page

Problem description: I have 2 images that I'd like them to be in the same page. The problem is that I can't scale their size down and therefore the 2nd one overlaps with the page number. Question 1: ...
1
vote
1answer
2k views

Why do these page numbers get partially cut off at bottom of page?

I have recently come upon this paper, and for some reason the page numbers on the bottom of the page get partially cut off after page one. Does anyone have an explanation for this? Here is the code: \...
1
vote
2answers
257 views

Place theorem number *before* theorem label in page header?

In the accepted answer to Put current theorem-like item's name/number in header, it is shown how to put in the page's header the label of the (last-on-page) theorem, lemma, etc. For example, if ...
0
votes
1answer
766 views

Page numbers incl. text (different side)

I have two questions according to my Thesis. First, how do I switch margins automatically for every second pages, such as: Second how do I switch the page numbers and including different text every ...
7
votes
1answer
468 views

Inserting predefined paragraph numbers in page header

I am dealing with translated texts that have "paragraph" numbers which are already defined in the source, with which I must keep consistency. Hence I can't use \theparagraph to generate the numbers. ...
7
votes
1answer
2k views

Page styles only work for \thispagestyle under afterpage

Using afterpage to set a page style after some page only works for \thispagestyle, but not for \pagestyle. Why is that? How can I make it work? \lipsum[1-20] produces 4 pages of text, Lorem Ipsum ...
6
votes
1answer
681 views

include document title in memoir class header

Using memoir class on a (lengthy) document, I want to customise headers, however (having spent several hours of trial and error) I'm presently stumped when it comes to the nuances required. Can anyone ...
6
votes
1answer
1k views

Remove italic from memoir headings pagestyle

I am using the memoir class for my thesis and I'd like to stop the headings from being italic in the page headers. I am using the headings page style, I found out how to remove the uppercase heads ...
6
votes
3answers
2k views

Header and footer for a book using: part on even page and chapter on odd page

My goal is to realize this layout for a book (possibly using fancyhdr, but I'm open to everything): where the current layout is represented in grey. In other words, I want : to put the page ...
6
votes
2answers
3k views

How to change the position of the page number in the first page of every chapter of a book?

I am using the book.cls and I want that the page number of the first page (only the first page) of every chapter be at the bottom and on the right. And page numbering of the other pages remain intact. ...
6
votes
4answers
995 views

References in Chapter Titles

I am currently writing a manuscript using \documentclass{book}. I would like to devote one of the chapters in the manuscript to a proof of an earlier result. I have named the Chapter: \chapter{...
5
votes
3answers
2k views

Specify distance from page margin to header with geometry

With geometry, the placement of the header is set by specifying the distance from the text body below to the header above with headsep: \documentclass{article} \usepackage[showframe, headsep = 5mm]{...
5
votes
3answers
5k views

Add chapter/appendix prefix in table of contents of scrbook with correct appendix running head

My first question is how to add the chapter or appendix prefix in the table of contents of scrbook class instead of the its default appearance. For example, in the figure below, I want to change the ...
5
votes
1answer
520 views

Wrong rfoot placing after setting \newgeometry

I have a document where from a certain point onward the width of the left margin changes. To do so, I used the \newgeometry command of the geometry package. However, in the part of the document with ...
5
votes
1answer
7k views

Customize \chaptermark for \mainmatter

Hey guys it's me again, I tried to add \leftmark to my header, but I want to change it from Chapter 1. Introduction to 1 Introduction. My MWE: \documentclass[12pt, oneside, a4paper]{book} \...
5
votes
3answers
2k views

Memoir class: turn off section numbering but still have header

Trying to get rid of auto display of section numbers within text (section title only), but still have a header that gives the section title (also sans number). Can't seem to find this in memoir docs. ...
5
votes
1answer
1k views

Two sections on one page make fancyhdr takes the second one as page header

I have two sections on one page. Unfortunately fancyhdr takes the second one as the page header, which will result in something like seen in the image below. I want to have the first section as the ...
5
votes
1answer
6k views

How to remove 'Chapter 1.' from 'Chapter 1. Introduction' while using \leftmark?

MWE is below: \documentclass{report} \usepackage{fancyhdr} %\newcommand{\currentchapter}{} %\let\oldchapter\chapter %\renewcommand{\oldchapter}[1]{\oldchapter{#1}\renewcommand{\currentchapter}{#1}} %...
5
votes
1answer
1k views

How to show the page number in plain frame?

In beamer I have a frame that is plain. (I use plain frame to remove the table of contents in header and the footer icons.) \documentclass{beamer} \useoutertheme{infolines} \begin{document} \begin{...
5
votes
2answers
132 views

Polyglossia v1.46 modifies font family in header

This is my first question, please let me know if I am doing something incorrectly! After updating polyglossia to version v1.46 (from 2019/11/15) there seems to be a clash with memoir to version 2019/...
4
votes
1answer
4k views

Nomenclature as a chapter

Using nomencl I am trying to make a nomenclature at the end of my PhD thesis. But the header of the previous chapter (in this case the appendix) is printed on the second page. How can I change the ...
4
votes
1answer
426 views

How to put a period between the chapter number and chapter title with scrlayer-scrpage?

By default, the headings with scrrept, scrlayer-scrpage, and scrheadings are of the form "«number» «title»" in the headings for numbered chapters. I am wishing to change it to "Chapter «number». «...
4
votes
1answer
1k views

page number does not appear on first page of bibliography

When I make my bibliography, something strange happens. If the bibliography is more than one page, the page number is not included on the first page. I want the page number on bottom-center of the ...
4
votes
2answers
376 views

Bad interaction between titlesec/titleps and packages that use \markboth internally

The following MWE demonstrates a bad interaction between endfloat and titleps. The second page has the word FIGURES in all caps in both the header and the footer, contrary to the page style ...
4
votes
1answer
2k views

Date on the bottom of the page without drafting option in ClassicThesis

I'm using classicthesis to write my document. I don't use the option drafting but I can see on the bottom of the page the date (there is a part of the date that is not readable, but when I copy and ...
3
votes
1answer
2k views

Koma Script header-footer on chapter start page

The scrbook class omits the header footer on the page where a new chapter starts. How to add them on those pages?

1
3 4
5
6 7
14