{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 ...

learn more… | top users | synonyms (2)

14
votes
1answer
9k views

How to add a horizontal line above the footer with fancyhdr?

How to add a horizontal line above the footer using fancyhdr, just like the line present below the header?
20
votes
5answers
10k views

How to get part name in LaTeX ?

Actually I am using the fancyhdr package, and trying to put the current part name in the right header. I know that \rightmark and \leftmark are used to represent the current section and chapter ...
4
votes
2answers
2k views

Running head in LaTeX book is wrong

I have a book with 14 chapters, two appendices (each chapter and appendix in a separate file), and a bibliography and index. This is set up as: Preamble \mainmatter include chapters \appendix ...
9
votes
2answers
2k views

How to remove header on the page with big picture?

Can you help me to remove header from the page where is only one big picture? I tried \thispagestyle{empty} but it removes a header on the next or previous page. I don't know how to remove it exactly ...
6
votes
1answer
2k views

Chapter-specific headers using fancyhdr

I would like to use the fancyhdr package to format the headers for my dissertation, and I'm running into some problems. For the introduction, I would like the even pages to have the page number and ...
4
votes
1answer
697 views

Header doesn't align with decorative line

I use tabular in header with package fancyhdr. I added settototalheight to calculate the header height. Following is a small example. The question is that header doesn't align with the decorative line ...
5
votes
1answer
4k views

Footer spacing in LaTeX

I have a huge footer in my LaTeX-document (a table I need on each page), but the table is too high to be in the document even though I use \addtolength{\footskip}{-30pt} below that size the footer ...
5
votes
1answer
2k views

How to set the chapter style in report class

When a chapter starts, it appears as, e.g., Chapter 1 Introduction and it then in upper left corner of each page in the chapter the name appears as CHAPTER 1 INTRODUCTION But I want that ...
2
votes
2answers
473 views

How to center the pagenumber related to the page

My pagemark in the heading is centered related to the textbody, but since my left margin is wider than my right, the pagenumber is not centered related to the page. Little miniature example: ...
5
votes
1answer
3k views

Simple footers with only a page number

I'm using a memoir template with page header defined. In the appendix, I maximize the geometry to print a lot of tables with narrow margins. I currently disable the memoir header with ...
3
votes
1answer
622 views

Problem with footer positioning on first TOC page (originated on fancyhdr header)

the footer on my first TOC page is not showing in the right position. My code (very simplified, I made a copy of the class and document used, made cuts until I found out the problem and generated this ...
1
vote
1answer
583 views

How to control \chapter text related to \tableofcontents

How can I control \chapter text associated with \tableofcontents How to change the font size of \chapter{text} in TOC page. How to restrict TOC pages to ONE. (Two pages are coming as default). At ...
8
votes
1answer
4k views

Replacing fancyhdr with scrpage2

I'm trying to reduce the number of packages I'm loading in my documents and I read on the KOMA documentation (and elsewhere) that it can define page styles better than fancyhdr. But each time I try to ...
7
votes
1answer
316 views

Different content if command returns empty text (ConTeXt)

I have the following code in my ConTeXt environment: \startsetups[sectioninfo] \ss \rlap{\userpagenumber} \hfill § \getmarking[sectionnumber][current] \emspace \bf ...
8
votes
2answers
18k views

Define different heights for head and foot

is it possible to define different \headerheight for head and foot respectively? For example, there is a logo image in the header which needs a large \headerheight and only text is in foot which needs ...
4
votes
1answer
1k views

Switching from fancyhdr to srcpage2

Is it worth it to switch from the fancyhdr to the scrpage2 package? I am trying to assess it's worth because I am having problems making the headers of the listsofsomething all uppercase. I am using ...
2
votes
1answer
2k views

Remove page numbers in a »titlepage« environment

I use the titlepage enviroment in my thesis and want to remove the page numbers on my title pages (where I've got 2) pages. The titlepage enviroment does that for the first site automatically but not ...
11
votes
2answers
691 views

How can I achieve dictionary headers for two page spreads in LaTeX

I would like to produce a document where I can display the first and last items of each two page spread in the headers of both the left and right pages. I know I can use \markboth{}{} to collect the ...
1
vote
1answer
1k views

Using tabular in fancyhdr

For my header page layout, I use fancyhdr. I use tabulars in the headers. The following is my code. \documentclass[titlepage,a4paper,12pt]{article} %***************************** preamble region ...
5
votes
1answer
14k views

beamer slide number with footer

I am using the warsaw theme and I need to have the footer with frame number the header of the code is: \mode<presentation> { \usetheme{Warsaw} \usecolortheme{crane} ...
1
vote
1answer
991 views

\tableofcontents and \listoffigures — suppress header after first page

I have set the top and bottom margins of a book class document like this: \setlength{\topmargin}{0in} \setlength{\headheight}{0in} \setlength{\headsep}{0in} \setlength{\textheight}{8.5in} ...
17
votes
3answers
9k views

When do I need invoke \clearpage manually?

I am not sure whether invoking \clearpage is necessary or redundant at many places in my input .tex files. Here I will ask you, in what condition is invoking \clearpage necessary? I hope I get a ...
3
votes
2answers
5k views

How to define a header/footer style using \fancypagestyle?

Question How to define a header/footer style using \fancypagestyle ? Minimal Code (does not work) \documentclass{book} \usepackage{fancyhdr} \fancypagestyle{ttt} {% \fancyhf{} ...
3
votes
1answer
1k views

Where should I setup the markup of header/footer? In \fancyxxx or in redefinition of \xxxmark?

\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} \fancyhead[RO,LE]{\small\sf\color{black}\rightmark} ...
14
votes
3answers
7k views

How to translate and rotate the heading of landscaped pages?

Objective How to change the heading of landscaped pages from to ? Minimal Code \documentclass{book} \usepackage[a5paper,hmargin=3cm,vmargin=5cm]{geometry} \usepackage{lscape,lipsum} ...
2
votes
3answers
2k views

Twosided book with same page setup for every page (I want to use fancyhdr)

Here is my problem: Im writing my thesis using the book class. I want my thesis to be onesided (left and right margins of same size), but I would also like to use the fancyhdr package to give me ...
16
votes
2answers
22k views

How to move page number?

I want to change the position of the page number. I've read around here that some suggest to use the fancyhdr package, but I don't want to use it – I'm a beginner to LaTeX so I don't want to use a ...
3
votes
2answers
2k views

How to place a running header and a footer to the page with chapter/section heading?

Some people wants to remove running headers and footers from the pages, where a chapter or a section is begining. But I'd like to stay it in place. How can I make it? (I use KOMA-Script (scrbook) and ...
0
votes
1answer
712 views

Fancy style, cleaning and improving

I was given the following style: % Style definitions \usepackage{fancyhdr} \renewcommand{\chaptermark}[1]% {\markboth{\MakeUppercase{\chaptername\ \thechapter.\ #1}}{}} ...
1
vote
1answer
875 views

Chapter number on page header is not updated in LaTeX document

I have a small technical problem but I have been unable to find a solution to it so far. In my thesis document, the chapter numbers that are displayed on page headers are not updated. It keeps on ...
4
votes
2answers
3k views

How to remove annoying header and footer for some pages that are intentionally made landscape?

I am writing a book where some tables need wider space. The only solution is to make the tables in intentionally-made landscape pages. Unfortunately, there are annoying headers and footers on the ...
6
votes
1answer
5k views

\midrule before \endhead in longtable environment with booktabs package

I am trying to use longtable with repeating headers on each page. For example: Column 1 & Column 2 & Column 3 \endhead \midrule results in an ugly multi-page table. The horizontal rule ...
1
vote
3answers
756 views

Oldstyle (arabic) numbers in headings remove roman pagination

Using the following code to get oldstyle (arabic) numbers in the headings make the preamble page numbers (in roman) to disappear. Here's a minimal working example: \documentclass{book} ...
56
votes
4answers
33k views

How can I display a short chapter name in the header and a long chapter name in the ToC?

I am writing a book and one of my chapter has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the \chapter[short title]{long title} ...
3
votes
1answer
1k views

chaptertitle in place of section mark in header

I am looking to make a page that has in the header chapter chapter num -------------------------chaptertitle for both odd and even pages. Any pointers? Can someone explain how a sectionmark ...
7
votes
1answer
9k views

How to 'center' 'page number' in beamer slides

When inserting page numbers into beamer slides, I usually use: \setbeamertemplate{footline}[page number] Then the page numbers will appear at bottom right. Is it possible to put the page numbers ...
6
votes
1answer
1k views

pagestyle and chapterstyle design

I am using memoir class for my thesis and I would like some help. Am fairly new to LaTeX but I am not new to programming so I can pick up easily. I will appreciate some help in pointing me in the ...
4
votes
3answers
4k views

How to set style of header and footer with horizontal lines in report document type?

How can I set the header and footer for pages as in the picture below: On the top - title of the document and horizontal line below it. On the bottom - author's name and title of subsection on the ...
8
votes
1answer
2k views

Auto-populate the frame titles from subsection titles

Is there a way to make \frametitle automatically take the \subsection heading? Or maybe equivalently, is there a way to make the section\subsection titles in the header larger? I am afraid the ...
12
votes
3answers
7k views

Table of contents with page style empty

How can I make produce a table of contents by \tableofcontents with page style empty? It doesn't work with \thispagestyle{empty} or \pagestyle{empty}.
16
votes
5answers
8k views

How do I insert text into the footline of a specific slide in Beamer?

I'm trying to insert references into a beamer footline. These references are different for each slide, so I cannot include them in the footline template - unless there is then some way to later define ...
7
votes
1answer
762 views

How can I horizontally align rows in fancyhdr?

How can I left-align the [multiple-row] text in the right portion of my header using fancyhdr? I have something like this \rhead{row 1\\row 2\\row 3} where the rows aren't the same length, and I ...
4
votes
1answer
5k views

Frame number right of presentation controls

I currently use \setbeamertemplate{footline}[frame number] to get frame numbers on my slides produced by the LaTeX beamer class. But the presentation controls are above them and not on the left and ...
8
votes
2answers
291 views

How can I get multiple subject names in the header/footer of a ConTeXt document?

I am setting up a ConTeXt document that requires a very particular style for the footers. I need the first and last \subjects followed by the page number in the right corner of the page, like so: ...
5
votes
1answer
2k views

How can I set a header showing the current section?

A few of the appendices in my document contain code covering a lot of pages, but those pages have nothing else than code (and page numbers). How can I put a header showing what's the current appendix, ...
7
votes
5answers
1k views

How do I center text in a page heading?

I'm using \markright to create a page heading. I'm having trouble centering some text in this heading, and I'd like to know how to do this. Here's my current setup: \documentclass{article} ...
4
votes
2answers
431 views

Ruled lines on the bottom half of each page?

I'm trying to typeset a version of a document that will have the document on the half of each page, but I want the bottom half to have thin ruled lines for note taking. Any one have any thoughts about ...
4
votes
2answers
2k views

How do I add a Page X of Y in a KOMA-script class?

I saw the answers to a similar question, but the accepted answer won't take effect in a KOMA-script class. \usepackage{lastpage} ... \cfoot{\thepage\ of \pageref{LastPage}} I am using scrartcl ...
5
votes
2answers
7k views

Different header for odd and even pages with fancyhdr

We are making a book with the document class book. We use the fancyhdr package to customize the headings. We want the book title on LE and the chapter name on RO. We tried \usepackage{fancyhdr} ...
4
votes
2answers
1k 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. ...