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

6
votes
1answer
4k views

How to modify Memoir class' headers/footers without redefining everything

I am using the memoir class for a multi-part (and multi-book) document. The class' headers and footers suit me fine for a twoside, openright document, but I'd like to add to them the following: In ...
6
votes
1answer
3k views

Format page numbers

How can I control look of the page numbers? For example, in the MWE below: \documentclass[12pt]{article} \usepackage[backend=biber]{biblatex} \usepackage{fancyhdr} ...
5
votes
3answers
515 views

Repeating part of document on every page [closed]

I want to create a document which has the following structure Header Name, Date of birth, Address <-------- This will be written by people (before the document is compiled) who do ...
4
votes
1answer
155 views

Fancy header and footer including images with tikz

Consider the following code: % DOCUMENT TYPE \documentclass[12pt,a4paper]{article} % PACKAGES \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} ...
4
votes
1answer
569 views

How can I put page numbers or headers inside my handouts (handoutWithNotes)?

I've been trying to obtain some stylized handouts using beamer with handoutWithNotes by Guido. What I have now is the 4 framed handouts purely but I'd like to put the page number on the bottom of the ...
3
votes
0answers
5k views

Optimised visualisation of top circles in beamer [closed]

I am making a presentation in Beamer. I am using smoothbars as an outer theme. However I am having a problem when a section has many frames, as indicated in the following image ...
13
votes
3answers
5k views

How to vertically align headers/footers in fancyhdr package?

I'm using fancyhdrpackage for headings and footers. I have defined left-header as a big image, and I want to vertically align (to the top or to the center, the default is to the bottom) the text from ...
12
votes
1answer
3k views

Changing page number location

I need to do the following: For the first page of every section, the page number should be at the bottom and centered. The text should stop one "double space" above it. For all other pages, the ...
11
votes
1answer
5k views

Avoiding page numbers in empty pages? [duplicate]

Possible Duplicate: How to remove head- and footlines for pages between chapters? I have empty pages in my document, many created using \cleardoublepage. I want the page number not to ...
11
votes
1answer
2k views

Multiline Header/Footer?

Using LaTeX, I'm trying to make a multi-line header (using \markright), and having a somewhat difficult time doing it. I've tried: Putting a table within the header using ...
9
votes
3answers
2k views

How to set rightmark after \section command?

I need to typset a book with very long section names. The long names should appear in the normal text and in the ToC but not in the header, so I can’t use the optional argument. \sectionmark is my ...
8
votes
2answers
289 views

Page number in the margin and separator

I want to produce this kind of header. My first attempt includes the use of fancyhdr package but still I can't figure out how it is possible to move the page number in the margin and put the | bold ...
8
votes
1answer
3k views

How to prevent upper case in page header?

I just came across this small problem which I can't seem to fix. I have a section which looks like this: \section{Properties of $C_q$} The problem is that the header of the page uses upper case and ...
8
votes
3answers
5k views

Graphics/logo in headers

I am writing a short note. I would like to include a graphics file with a logo in the header of all pages including the front page. The logo is roughly the size of the box generated in the example ...
6
votes
2answers
284 views

Automatically remove ruler when no header is present

This is a question triggered by Automatically remove page number in one-page documents. When activating the fancyhdr package, it is necessary to clear the headers, which I do below with \fancyhf{}, ...
6
votes
1answer
7k views

fancyhdr - Only show sections, not subsections

Is there a way for the header to only print the title of the parent section? So in the example below, the subsection{LOL} page will have "1.1 LOL" written in the header. I just want it to say ...
6
votes
2answers
2k views

fancyhead not in small caps

The text in my fancyhead is written in small caps. I would like to have it not in small caps. How can I do? This is my fancyhead: \usepackage{fancyhdr} ...
6
votes
2answers
763 views

titlesec: \sectionmark breaking \ifthesection?

In the titlesec package, one may use the \ifthesection (or \ifthechapter,...) command to apply some customization commands only when a \section has been defined. However, it seems that using ...
6
votes
1answer
2k views

Page header - Upper and lower case

First of all: this is the first time that I use LaTeX. I have these commands that create my header: \usepackage[headsepline,plainheadsepline]{scrpage2} \pagestyle{scrheadings} \clearscrheadfoot ...
6
votes
1answer
7k views

Adding header and footer to the front page (and other pages) of an article

I am beginner in LaTeX, and I have been unable to find a solution to what looks a simple problem. I use the article class for a paper. I have received a rectangular logo, about 40 mm high and as ...
6
votes
3answers
3k views

Right align inside header

I have a header, prepared using fancyhdr. I would like the first row of the left header to be right-aligned with the second row of the left header. In the following MWE I would like "My City" to be ...
6
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
3answers
397 views

How I can typeset a footer on only one page?

Does anyone know how I can make \rfoot at only 1 page. I am using report as document class, and in my preface I want my name and city at the right side at the bottom of the page
5
votes
1answer
863 views

How can I get horizontal line of navigation dots in header of Singapore beamer theme?

I'm writing a presentation using the Singapore theme. The dots in the navigation bar are appearing vertically (one below the other) rather than horizontally. This is consuming a lot of space of my ...
5
votes
3answers
4k views

How do I remove “Chapter N” from the chapter titles of a book

How do I remove "Chapter N" from the chapters when using the book document class? This does not appear in the TOC (which I don't want, either). But it appears at the beginning of a chapter, and on ...
5
votes
3answers
386 views

Put a frame around all pages, except one, in a book

I am writing a book and would like to put a red, 5pt thick frame around all pages, except around one page in the middle of the book, which contains a figure that is bigger than the frame. The frame ...
5
votes
2answers
6k 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
6k views

How do you increase headrule length in fancyhdr?

It's pretty well-known how to increase the headrule width, but how do I increase its length (i.e. let it run into the margin).
4
votes
1answer
125 views

how to use fancyhdr package to customize headers in landscape page

I have used the fancyhdr package to customize the header of my pages. However, when I want a page to be landscape (by using the pdflscape package), it does produce a page in landscape orientation, but ...
4
votes
1answer
2k views

\pagestyle{empty} on a specific number of pages

I would like to remove the style of my report on my table of contents. I formerly used \thispagestyle{empty} before \tableofcontents but it obviously works only for the first page of the table of ...
4
votes
1answer
262 views

How can I place marginal notes always on the right but show normal odd/even headers?

I would like to typeset a book where the odd/even pages have the same format: each has a long text section on the left and a place to put small marginal notes on the right. If necessary, I want the ...
4
votes
1answer
13k views

Fancyhdr on the first page only [duplicate]

I'm writing an article and I need to put a figure on the top right but only on the first page. Also on the top left I need to place the type of article for Example Scientific Paper (left ...
4
votes
2answers
617 views

Why are pagenumbers centered with \pagestyle{headings} on \chapter{}'s first pages?

I'm using documentclass report with options twoside and openright. The pagestyle is headings. This is a minimal working example: \documentclass[twoside,openright]{report} \usepackage{blindtext} ...
4
votes
1answer
4k views

Landscape, A3/A4 paper with XeTeX

With pdflatex, it seems easy to get a landscape document, on A3 paper. One only needs to add [landscape,a3paper] or [landscape,a4paper] to the document class options. With xelatex, however, these ...
4
votes
3answers
9k views

Header or footer of title page differs with that of main text

My purpose is that every page except title page has same header and footer. for title page, ==> it has exactly same footer with that of other page. ==> and it has completely different header with ...
3
votes
2answers
172 views

Coloured swatch per chapter

I know that this should be possible, but I'm not sure how to go about it. I would like to have a small rectangle appear on each page (outside edge), which runs right up to the edge of the page, and ...
3
votes
1answer
267 views

how to extend header over the page margins?

I have defined the page margins and header as appears in the codes bellow, but I want the header to cover the page margin width too, in the pages after page 2 (all pages except the first page). I ...
3
votes
3answers
151 views

custom footer on title page using \maketitle and book document class

I'm trying to add a custom footer to the title page of my thesis, in order to insert some text that is required by my university. I'm using fancyhdr to do so. However, the footer appears on the second ...
3
votes
2answers
1k views

Problem with elsarticle and lineno

I am using the elsarticle class in order to typeset a preprint of an article I am writing. I wanted to add line numbering in order to make the revision easier, so I included the lineno package. This ...
3
votes
0answers
92 views

How make a picture slideshow [duplicate]

I would like to use beamer class as backbone for my presentation. However, I encountered a problem. My wish is to put pictures on it and for LaTeX to decide their placement and divide them on frames ...
3
votes
1answer
621 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 ...
3
votes
1answer
1k 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
1answer
324 views

Incorrect running heads on last page of a long table

I'm setting a table of logarithms. I'm using longtable, and it works well. Every line of the table has a markboth reference, like so: \textbf{1.03}\markboth{1.03}{1.03} & .01284 & .01326 ...
2
votes
2answers
99 views

Multiline text in multiline equation

I have an assignment to copy the picture below in LaTeX. I got stuck with the (A.4) equation in attached picture. Specifically, I need the text part of that equation to be in two lines but the way I ...
2
votes
1answer
2k views

Header and footer in IEEEtran

How to do this in IEEEtran conference format: Add a header on first page of the paper as ,conference name Add a footer on first page of the paper , notice Add a footer on rest of the pages of ...
2
votes
1answer
923 views

How to change the chaptermark of bibliography

In previously asked questions about changing the chaptermark in a bibliography, I couldn't get a solution for my problem. That is why I'm asking a new question. I'm writing my thesis. The references ...
2
votes
1answer
1k views

\markboth is not working when using \chapter and \section

I am having a problem when adding \chapter and \section in the document. \markboth is not working when I compile it. I have got a link Why is \markboth not working?. But there is no solution about my ...
2
votes
1answer
7k views

Same header and footer for every page

I have a problem with my header and my footer. If I do that: \pagestyle{fancy} \fancyhf{} \fancyhead[R]{\includegraphics[width=8cm]{img/header.png}} \fancyfoot[L]{ Name Firstname - v1.0 \\ Date}} ...
2
votes
1answer
550 views

Footline placement after \begin{document}

I'm trying to place an image as a border in the footer (footline) of a beamer presentation. I've noticed that if I use \setbeamertemplate{footline}[large] after the \begin{document}, the vertical ...
2
votes
1answer
3k views

Word-style headers in LaTeX

I was wondering if there was a way to create a header in LaTeX that looks similar to those from Microsoft Word, for, say, a picky teacher.