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

3
votes
1answer
659 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
592 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 ...
9
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
324 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 \getmarking[section][...
9
votes
2answers
23k 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
766 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
2k 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
15k 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} \setbeamercovered{...
2
votes
1answer
1k 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} \setlength{\...
19
votes
3answers
11k 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
7k 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{} \renewcommand{\...
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} \fancyhead[...
17
votes
4answers
10k 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} \begin{...
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 ...
19
votes
2answers
27k 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 ...
5
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
760 views

Fancy style, cleaning and improving

I was given the following style: % Style definitions \usepackage{fancyhdr} \renewcommand{\chaptermark}[1]% {\markboth{\MakeUppercase{\chaptername\ \thechapter.\ #1}}{}} \renewcommand{\sectionmark}[...
1
vote
1answer
961 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
5k 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 ...
7
votes
1answer
7k 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
796 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} \usepackage{...
69
votes
4answers
47k 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 ...
8
votes
1answer
10k 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
5k 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 ...
9
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 ...
17
votes
3answers
10k 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}.
18
votes
5answers
10k 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
868 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
6k 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 ...
9
votes
2answers
314 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
2k 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
444 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 ...
6
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 ...
6
votes
2answers
10k 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} \...
5
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. ...
5
votes
2answers
2k 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

Suppress header on first page of section

I created a header using KOMA-Script. How can I suppress this header on the first page of a section?
4
votes
1answer
2k views

Roman numerals in frontmatter are skipping some numbers

I have the following document: \documentclass{article} \usepackage{titling, graphicx} \title{Title goes here} \author{Authors go here} \date{} \begin{document} \include{title} \pagenumbering{Roman} ...
3
votes
1answer
2k views

Text in the header with memoir

How do I put text in the header with the memoir class?
9
votes
4answers
7k views

How to change the formatting/font of page numbers?

So, I'm using the article class, and I'd like to make the page number smaller, and set it in a different font. I don't need to create a new pagestyle, necessarily, and I'm hesitant to do so without ...
4
votes
2answers
2k views

Text in the top-right margin on every page

I am trying to put my name in the top-right margin on every page. How could I do this?
4
votes
1answer
7k views

Times New Roman in LaTeX plus fancy header w/o page number on first page.

Below is my file. I am trying to make sure that I am in 12pt Times New Roman font. Also, I am trying to get rid of the page number on this first page without getting rid of the header. If anyone has ...
7
votes
2answers
2k views

How can I have multiple lines in a header or footer using scrpage2?

For an assignment at university I have to copy a lay-out template that is provided in Word but I want to use LaTeX. For this, I need to have two lines in the footer. How can I achieve this using ...
11
votes
1answer
5k views

header spacing trouble

I'm using the fancy header package, yet I've also adjusted all of my margins, to allow more text on each page as there is no need for the excessively large margins. I've run in to some trouble with ...
12
votes
1answer
22k views

Removing page number from ToC

How to remove the page number from the table of contents page?