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

20
votes
3answers
6k views

Suppress page number for a single page that only contains one large table?

I have a large table that uses up the whole space on a page. Unfortunately, the table also covers the page number, which is shining through. I don't want to split the table across two pages, hence I ...
2
votes
1answer
3k views

Two different layouts using fancyhdr

I would like to set two different layouts (namely headers) for my document. The document is two column dictionary. First part will be introduction with chapters and sections and the second part the ...
5
votes
1answer
1k views

Printing auto increment serial number on multiple pages

The user inputs the start serial number and the number of pages. Then that serial number needs to be printed on top of every page, auto incremental for each page. The final output may be a multipage ...
4
votes
1answer
2k views

Edit page headers

I am trying to edit my page titles with fancyhdr package. I want the top left of the page to present [section number]. [section name] in boldface and small caps. for example: 3.2. PYTHAGORAS THEOREM ...
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 ...
1
vote
1answer
520 views

How to make half-title pages containing captions with conditional headers

I am required to typeset some (long) figure captions in the "half-title page(s)" as they do not fit in one page with the figure, for a similar example see this link (except that on the first page I ...
4
votes
2answers
4k views

Reduce footer space

I am having trouble reducing the footer space. I have a list of contents that is printing below the page number appearing in the footer. How do I solve this issue? I tried setting the footskip length ...
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.
6
votes
2answers
361 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 ...
5
votes
2answers
1k views

Entering the title in the footer

How do I insert the title in the footer? And decide if it is set or not? %preteste.sty \usepackage{fancyhdr} \usepackage{lipsum} \renewcommand{\title}[1]{\gdef\@title{#1}\gdef\mytitle{#1}} ...
12
votes
2answers
776 views

How to change header to list first section on page and not last section

The standard use of header/footer is to display the chapter/section information, which normally begins on a new page. What I would like to do is to have the header show the first question that is on a ...
3
votes
1answer
4k views

How to add image to beamer footline and keep it align with the text?

I want to add an image to my footline and aligned with the text of the same footline. I have the following in my beamertheme. \def\logo{% \resizebox{!}{2.5ex}{\includegraphics{logo-small.png}} } ...
4
votes
1answer
92 views

How can I get a page number on the last page of a chapter with the mwrep class?

\documentclass[12pt,a4paper]{mwrep} \begin{document} \chapter{Chapter 1} Text \pagebreak Text \pagebreak Text \chapter{Chapter 2} Text \end{document} This does not generate page number on last ...
6
votes
2answers
2k views

Different headheight for first page

I'm writing a document using the Koma-Script class scrartcl (3.09a). I want to have a header and a footer on every page, but the header of the first page should be different from the others. So ...
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 ...
14
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 ...
4
votes
1answer
4k views

Align text and logo in footer

I can't seem to be able to align our logo and page number in the footer. I have the code below: \pagestyle{fancy} % enable fancy page style \renewcommand\headrulewidth{0pt} ...
6
votes
1answer
3k views

Header problem with book class

It seems I have a problem with the headers using the book class. On every chapter when the text is too long the chapter text and the section text merge. Also I don't know how I could make them lower ...
4
votes
2answers
481 views

How can I add extra \pagemark that marks the number of the page where current chapter starts and where it ends?

I'm using KOMA-Script scrbook class. And scrpage2 package for headings: \usepackage{scrpage2} \clearscrheadfoot \pagestyle{scrheadings} \cfoot[\pagemark]{\pagemark} \chead[]{\headmark} I want to ...
6
votes
1answer
679 views

\pagestyle{ruled} adds superfluous text in glossary

I'm writing my thesis using the memoir package, using \pagestyle{ruled}, and have created glossaries for a glossary and an acronym list. The resulting pdf, contains the superfluous text "Glossary" and ...
6
votes
1answer
1k 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 ...
4
votes
1answer
592 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 ...
1
vote
1answer
2k views

Using natbib package, in the References section, the header is now written in capitals

I have a thesis written in LaTeX. I've just switched over to natbib as it offered some nice commands but I'm starting to run into some trouble. This one is minor I guess, but I have headers, with the ...
6
votes
2answers
1k views

Section like heading with Tikz

I'm trying to make a new section-like heading with TikZ. I basically want it to look like this (nevermind the funky background): But I can only get something like this: In my LaTeX document I ...
2
votes
2answers
916 views

KOMA-article: Page X of Y not showing in first page footer

(Warning: Question from newbie to LaTeX :-) Using koma-article in Org-mode, I want to show "X of Y" in the footer of all pages. I followed the instructions in this post, and it works fine for pages 2 ...
4
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 ...
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 ...
1
vote
1answer
273 views

How to make footer stick close to the text on the last page?

I want footer to appear immediately after text on the last page, without huge gap. I used showframe package and know that white space comes from the body (is tex adding some sort of \vskip or similar ...
5
votes
2answers
10k views

Writing thesis using fancyhdr - problems with section title

I am writing my thesis using LaTeX with a provided thesis document class, which uses fancyhdr. My problem is that both the chapter and section titles appear automatically in the header, writing over ...
2
votes
2answers
2k views

Turn off bold in title + change header on title page

I am trying to make a title page following a template provided. I need to have a top right header on every page except the first where I should have only the name of the grant council at the top left ...
2
votes
1answer
279 views

titlesec: toptitlemarks and bottitlemarks broken when \section not called explicitly

This question is linked to my previous chapter-and-verse-in-header question I am trying to produce a Bible text where the Chapter and Verse references appear in the header of each page. As can be ...
4
votes
2answers
580 views

Chapters and verses of current page in header

This question is linked to my other titlesec question Does any one know how to add the current segment location at the top of any particular page. What I need is the reference at the top of a ...
1
vote
1answer
248 views

Contents header returns after first chapter

I am using \documentclass{book} and tocloft for the table of contents. The way my document is structured I have the table of contents, then a \chapter*, then part one, chapters, etc. For some ...
20
votes
1answer
675 views

Indexing an interval of words on top of every page

Friends, I'm curious on how to do the following in LaTeX: Dictionaries have two words on the top of each page, meaning the interval of words to be found on that specific page, e.g., In the figure, ...
7
votes
1answer
838 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 ...
0
votes
1answer
749 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
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 ...
6
votes
2answers
547 views

Unequal space between paragraphs and header-footer

As you can judge from the page below, the vertical space between the text and the header line and the text and the footer line is not equal..... This is much more prominent in a PDF reader so I am ...
6
votes
1answer
274 views

Hooking into the header/footer mechanism

I have a switch I'd like to turn off for the headers and footers but keep on for the main body text. What commands actually tell TeX to write the headers and footers after the body text has been set ...
0
votes
1answer
1k views

Need Header Example - For Mirror page (two side print)

Can anyone send example for this code? \fancyhead[LE]{\leftmark} \fancyhead[RO]{\rightmark} \fancyhead[CE,CO]{\thepage} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0pt}
1
vote
1answer
601 views

Change page number position in the middle of a document

I'm creating a large document. My document contains three parts : frontmatter, main, backmatter. For frontmatter I have to place page number centering, for main I have to place page number flushright, ...
6
votes
1answer
3k views

TOC with pagestyle empty in memoir

I'm using the memoir class for a thesis, and want no page numbering of the front matter including the TOC. Have followed the answer to Table of contents with page style empty which does remove the ...
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 ...
4
votes
3answers
771 views

scrpage2: unnumbered headings with \addsec get the wrong automarks

Here's my code: \documentclass{scrbook} \usepackage[english]{babel} \usepackage{blindtext} \usepackage[markuppercase]{scrpage2} \pagestyle{scrheadings} \automark[chapter]{part} \begin{document} % ...
1
vote
1answer
2k views

Koma-Script: How to reduce the size of the footer

I'd like to reduce the size of the footer in the following example, because I want to get rid of the extra whitespace area under the footer. \documentclass[a4page]{scrartcl} \usepackage{scrpage2} ...
1
vote
3answers
2k views

Book layout: bottom external page number

I'm using Lyx 2.0 to format my text with LaTex. I'm using the predefined "book" template. On the first, non-title page I have the page number "1" centered on the bottom, while on the other pages the ...
5
votes
3answers
257 views

Saving the value of a text macro at the start of the page.

I have a macro that stores some text. I'd like to print the text of that macro as it was at the start of the page in the header, and as it is at the end of the page in the footer. I can do this for ...
2
votes
1answer
810 views

Plain TeX: running header with section name

I want to create a TeX document with sections and a running header containing the name of the current section. I know I can use \mark{} to mark the section headings and then use \topmark or \firstmark ...
2
votes
1answer
453 views

Heading exceeds margins

I am writing a document with the book class. Hence, the title of the chapter appears at the head of each even page, and the title of the section appears at the head of each odd page. However, some of ...
0
votes
1answer
1k views

Continuining List of Table headers to other sections?

I'm typesetting a long thesis..then suddenly realised that the header of List of Tables jumps to add to other sections like Acknowledgement, Authors Declaration etc. So, I made sure I clear for the ...