{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
2answers
208 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
780 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
4k views

How to get only “Chapter 1. The title of the chapter” in the left of header

I am trying to use fancyhdr, but I can't get it to not show the section and to keep the normal case for title and 'Chapter'. How can I have my heading to be "Chapter 1. The title of the chapter" ...
6
votes
2answers
63 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
126 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
219 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
144 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
140 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
108 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
2k 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
407 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
859 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
104 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
232 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
819 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
300 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
264 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
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
476 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
473 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
368 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
818 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
1answer
104 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
414 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
625 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 ...
6
votes
1answer
230 views

Headers with vertical rule with Koma-Script

I am trying to obtain the following headers with scrbook: numbers half-way into the margin, a a rule that extends up to (touches) the upper edge of the page, running heads should be within text ...
6
votes
1answer
590 views

How to use short subsection title in header but not in table of contents?

I have a (onesided) document with fancyhdr and pagestyle fancy so it displays the section-title on the right header and the subsection-title on the left header. If section and subsection titles are ...
6
votes
1answer
144 views

Fallback text in header if overlapping occurs

I'm currently working on several projects, where the authors are read from a textfile. I'm also displaying the authors in the header using fancyhdr. This works great if there are just 2 or 3 ...
6
votes
1answer
142 views

Chapter page formatting

I'm using MiKTeX and when I use \chapter command, it starts a new page. I was wondering how to not start a new page. My next concern is how can I align the text \chapter{*} where * is the text. ...
6
votes
2answers
544 views

How to apply a custom pagestyle (with titlesec package) to a part of a document

I have defined a personal page style using the package titlesec. The style defined is: \newpagestyle{myStylePage}[\large\sffamily]{\headrule \sethead{\thechapter . \chaptertitle}{}{\thesection . ...
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
1answer
301 views

How can I automatically add the number of the document last page to the header?

I need add the numbers of the first and last page to the header of the first page. To make it look like this: Document title, date, pp. 1 - 30 The number of the first page is \thepage, because are ...
6
votes
1answer
722 views

How to move dark rectangle in headline of PaloAlto theme after changing the sidebar width?

I'm currently using the beamer PaloAlto theme with a headline and sidebar on each slide. I used the command \setbeamersize{sidebar width left=1.7cm} to fit the table of contents in the sidebar. The ...
6
votes
1answer
651 views

fancyhdr overwrites my page numbering settings

\documentclass{mwrep} %page number on the end of chapter \makeatletter \let\ps@closing\ps@plain \makeatother %margins \usepackage{anysize} \marginsize{3cm}{3cm}{2cm}{2cm} \usepackage{lipsum} %mark ...
6
votes
1answer
347 views

apa6 package: heading line exceeds textwidth

I'm using the apa6 package with the document mode "doc". Now I ran into some problems with the heading line. On even pages the heading line exceeds the textwidth on the left hand side and on odd pages ...
6
votes
1answer
455 views

Include hspace in header/footer in fancyhdr? [duplicate]

Possible Duplicate: How can I force a \hspace at the beginning of a line? I am trying to put a postal address in the footer. I want the first line to be "Address: Address line1", then the ...
6
votes
2answers
84 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
123 views

Pushing text below an absolutely positioned box

I'm trying to create a document header, part of which is an absolutely positioned TikZ picture, and part of which is some text in a TikZ node. The northwest or northeast anchor of the node should be ...
6
votes
1answer
253 views

Add an progress bar image based on page number

I would like to add a "progress bar" to each page of my report. I have 25 images named pbar1.png to pbar25.png, as shown below, to be put on slides: pbar1.png: pbar12.png: pbar25.png: Because ...
6
votes
1answer
1k views

Inconsistent margins using fancyhdr and geometry

For my homework assignments I usually use the fancyhdr package to create a header that contains the group (A, B, C etc), homework title, my name + student number and the date. Besides that I ...
6
votes
1answer
354 views

graphics in style file

I aim to create a reporting template for other TeX users to use at our work. My objective is creating an .sty file. The specifications are fairly simple but one is causing grief: that is including our ...
6
votes
1answer
392 views

Remove fancyhdr footer when float page too large

I'm working on a book with fancyhdr with some overfull float pages, and want to remove the footer on only those pages, but keep the header. Can I either automatically remove footer if the caption ...
6
votes
1answer
888 views

Switch Between Bibliography and Appendix in fancyhdr

What I am trying to accomplish is a fancyhdr that places Appendix or Bibliography in the header with one single definition. So if I am in the bibliography it should display Bibliography, but should ...
6
votes
1answer
270 views

Applying \nouppercaseheads to section headers only in memoir

How would one apply \nouppercaseheads only to section headers when using the memoir document class? \documentclass[a4paper]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
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 ...
6
votes
1answer
7k 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
83 views

Fancyhdr adding multiline header causes footer margin to be inconsistent?

I have been searching to fix this problem for a while now. When I use the fancyhdr package to create headers and footers, and I run my code, as long as the header does not take up multiple lines, the ...
6
votes
1answer
5k views

Changing color and header of beamer with CambridgeUS

How to change the red color for - the titles - the topics How to adjust the position of the header1 and 2? \documentclass{beamer} \usetheme{CambridgeUS} % Set Color ============================== ...