{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}, {scrpage2}, and {titleps}.

learn more… | top users | synonyms (2)

6
votes
3answers
1k views

How do I prevent “Contents” from appearing twice in the header when I use \leftmark and \rightmark with fancyhdr?

I would like to use \leftmark and \rightmark, but have "Contents" appear only once (on the left) in the header. Instead, it appears as both the \leftmark and the \rightmark. The following MWE ...
6
votes
2answers
7k views

Page numbering - removing page number from first page

How do you turn off page numbering from the first page in a LaTeX document?
6
votes
5answers
3k views

Place a TikZ picture on every page

I am looking to place a picture (TikZ picture) on every page of my document. How can I do that? In essence I would like to control the placing of the image on even and odd pages. For example the ...
6
votes
1answer
6k views

Setting the space between page header and text block

I work with documentclass report and use fancyhdr package for chapters in this way: \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \renewcommand{\chaptermark}[1]{\markright{\thechapter\ #1}} ...
6
votes
3answers
2k 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
3answers
75 views

A \cite{} as name for a chapter header

I'm writing a document where each chapter is a reading record of a paper. So I want the name of the chapter to be the title of the paper, and the header of the chapter to be the short citation of the ...
6
votes
3answers
328 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
1k views

Text before maketitle

My goal is to put text before \maketitle as well as on left side, and on the right. They should be on the same level. I've tried \begingroup -- doesn't work: \documentclass[a4paper,10pt, twoside, ...
6
votes
2answers
387 views

Suppress headers when page contains a section title using titlesec

I'm writing a book with titlesec and try to suppress headers containing the section name, when the section starts at the top of the respective page. Given that all my sections start on a new page I ...
6
votes
2answers
2k views

Omit/delete second bar under the navigation bar in szeged theme?

The code below gives nice slides with a navigation bar on top that leads to the different sections (I have no subsections) in the presentation. However, below the navigation bar there is a second bar ...
6
votes
2answers
257 views

How to a put a repeated text in the left margin of a page, like a header or footer, but on the side

I'm trying to copy a stationery format which puts the return address in a small block in the middle of the left margin of the page, like a header, but on the side I've tried using the everypage ...
6
votes
3answers
802 views

longtabu and scrpage2: line breaks in page header cause compilation errors

Please consider the following MWE: \documentclass{scrartcl} \usepackage{longtable,tabu} \usepackage{lipsum} \usepackage{scrpage2} \chead[Headline 1\\ Headline 2]{Headline 1\\ Headline 2} ...
6
votes
1answer
2k 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} ...
6
votes
2answers
1k views

Header, footer and font customization

How can I create a default header, footer and customize the font of my LaTeX document? I wanted something like this: Default book title Chapter name ...
6
votes
4answers
77 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: ...
6
votes
3answers
240 views

Using the fancyhdr package, how do I have a footer but no header on the first page only

I would like to have a header and a footer throughout the document, however on the first page I would like no header with the footer remaining as it is throughout the document. So far all I can do is ...
6
votes
2answers
443 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
372 views

Hyperlinked sectionnames in fancyheader

I am trying to create a header that consist of chaptername and sectionname (chaptername:sectionname) both of them a hyperlink to chapter and section respectively. I am using Hungarian language so ...
6
votes
2answers
1k views

How to make custom page frame using LaTeX?

I need to make questionnaire template for automatic processing with queXF. To do this I need to produce pages like this: The queXF requirements for the pages are unique barcode for each page ...
6
votes
2answers
141 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
3answers
148 views

Why does \maketitle change the availability of \@title?

I am trying to include the document title in a heading using scrartcl. For some reason when I call \maketitle, the \@title variable seems to be unset and all uses of it turn up empty. My document ...
6
votes
2answers
221 views

Have page number on the left side of the empty page before the start of a chapter

I've been working a while now to get the layout the way I want it, but I still have two things that I can't seem to get fixed. I would like to have the page number of the empty page before the start ...
6
votes
2answers
1k views

fancyhdr - how to disable auto section number and still show section name in header

\documentclass[fleqn,12pt,a4paper]{article} %\RequirePackage{Kaumudi_Package} \usepackage{fancyhdr} \pagestyle{fancy} \begin{document} \section{section-1} \newpage \section{section-2} \end{document} ...
6
votes
4answers
882 views

How to get a big table on a page with pagestyle empty?

In my document I have a table that is quite big. I would like to have this table on a page with no header and no page number. How can I get this table on a \thispagestyle{empty}? Using it withing the ...
6
votes
2answers
91 views

\pdfpages, box, headers

I'm using pdfpages to put a PDF file into my latex document. The command \includepdf[page=1,angle=90,height=\textheight]{file.pdf} works fine but I would rather it kept the header and footer that ...
6
votes
2answers
182 views

Photo on the lowest side of the header

I am trying to add a photo on the header. I thought of using wallpaper package. My simple code is \documentclass{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \usepackage{wallpaper} ...
6
votes
1answer
287 views

glossaries \leftmark and \rightmark not translated

I was trying to make an article in french with a glossary (glossaire in our weird tongue), and I noticed that, even if I did manage to set the translation right for the body, the \leftmark (or ...
6
votes
2answers
167 views

Eliminate topspace and bottomspace in ConTeXt

Background Looking to put the page number flush to the bottom of the page using ConTeXt. The key lines in the Minimum Working Example (MWE) below are: \setuplayout[ topspace=\zeropoint, ...
6
votes
1answer
2k views

How to determine head height automatically

I'm creating three documents with three different headers, containing images or large banners. Is there a way to determine the head height automatically or even better a way to change the head height ...
6
votes
1answer
176 views

How to disable the header at any page in ConTeXt?

I haven't written an article since I paid my attention to ConTeXt. Now it is a chance to do it. I have tried to set the header, but failed. The structure of this article is like this: ... title ...
6
votes
2answers
111 views

Weird interaction between everyhook and fancyhdr

In a document I'm working on, I'd like whitespace to be added before a custom environment, but only if that environment doesn't immediately follow a sectioning command (\section, \subsection, etc). I ...
6
votes
1answer
3k 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
481 views

fancyhdr plus fontsize 12pt causes varying vertical alignment of sections

Looking at the example provided in Different headers for different chapters, I noticed something strange: The vertical alignment of sections is varying. I was able to strip the effect down to the ...
6
votes
1answer
960 views

First page of ToC has a page number. How to remove it?

I have a problem with the number of the page that appears on the first page of ToC (I don't want it, of course), but only when I have at last two page of ToC. When ToC takes only one page, footer and ...
6
votes
2answers
146 views

Can't remove page number with \thispagestyle{empty} or \pagenumbering{gobble}

I'm using the template available here but it shows a 1 of 1 page numbering at the bottom. I'm trying to remove it to no avail. Adding \pagenumbering{gobble} removes the numbers but the output still ...
6
votes
1answer
237 views

Footer Suppression

I'm wondering if it's possible to suppress footers if the page has a footnote, but display the footer as normal otherwise. To be specific, I'm reproducing an old book which uses catchwords for pages ...
6
votes
2answers
1k 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
1answer
356 views

Can I have bigger margins on pages containing only floats?

Latex sets the margins to give a good reading experience for text. For pages containing only figures this generally does not matter and I would like my figures to fill as much space as possible, in ...
6
votes
1answer
364 views

Headers of \chapters* take the headers of their previous \chapter

When using book.cls and using \chapter* after a \chapter, the header used in \chapter* is wrong. An example is pasted below. Is there any known workaround for that? I have tried quite some tricks ...
6
votes
1answer
4k views

How to customize the page header and the page number of classicthesis?

I am using the classicthesis package and would like to customize the page headers and the page numbers. Here is a test project that shows the problem. \documentclass[dottedtoc, headinclude, ...
6
votes
2answers
3k views

Distinguish even/odd pages in header with oneside option

See the MWE below. How can I achieve (in the standard book class) that despite the oneside option odd and even pages are distinguished in the header? I would like to have that, also with oneside ...
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
2answers
524 views

Clear tableofcontents page in book or report

How do I clear the \tableofcontents page in book or report? \documentclass[a4paper]{book} \usepackage{lipsum} \begin{document} % i need clear this page {\thispagestyle{empty} %but is not work ...
6
votes
1answer
508 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
1answer
396 views

Show current section or chapter in header in ConTeXt

I've found this command: \setupheadertexts[][{\getmarking[sectionnumber]\ \getmarking[section]}] to show the current section in the header. But how can I show either the current chapter or the ...
6
votes
1answer
960 views

Change footer in beginning of chapters

I want the footer of all pages to be "Page N°X" on the right. I used this: \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear all header and footer fields \fancyhead[R]{\leftmark} ...
6
votes
2answers
116 views

Controlling the position of page numbering

How do I get the number of each page to be three quarters of an inch down and three quarters of an inch in from the top right hand corner? \documentclass[12pt, a4paper]{report} ...
6
votes
1answer
150 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 ...
6
votes
1answer
515 views

fancyhdr - Header Line is removed on beginning of chapter

When compiling the code below, there is no line in the header in the beginning of the chapter. How do I change it such that the header looks the same on all pages? Thanks \documentclass{report} ...
6
votes
1answer
834 views

The problem of fancyhdr and leftmark /rightmark for the bibliography with biblatex

There is the well know problem of empty marks with latex but fortunately there is a hack for the content to appear only once in the header; but for the bibliography with biblatex, it does not seem to ...