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

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
273 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

fancyhdr: How get part on even and chapter on odd pages

I am trying to use fancyhdr to set the part no. and name on my left pages and chapter no and name on the right pages. My document is ...
8
votes
1answer
2k 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
1answer
236 views

XeTeX seems to break headers in Tufte-handout

I get the following messed-up running headers on pages 2 and following when using Tufte-Handout class with fontspec (and therefore XeTeX). The headers repeat the Title and then add a black box. A ...
6
votes
2answers
267 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
6k 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
705 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 ...
5
votes
3answers
303 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
767 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
3k 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
369 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
5k 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
5k 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).
5
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 ...
4
votes
1answer
71 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
258 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
12k 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
599 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 ...
3
votes
2answers
158 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
208 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
126 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
893 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
599 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
313 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
93 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
507 views

Beamer template with different style options for frames

I am working on a beamer template which tries to mimick an existing .ppt-template from my institute. My problem now is, that the beamer template should be able to have frames with different styles for ...
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
857 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
543 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
385 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 ...
2
votes
1answer
2k views

fancy header/footer on pages with chapter beginning

I'd like to produce report class document with one style of page numbering. I've declared: \usepackage{fancyhdr} \fancyfoot[R]{\thepage} \pagestyle{fancy} but on pages with new chapter the page ...
1
vote
2answers
220 views

Change link target of \insertshorttitle

I want to change the following small thing in my custom beamer template. In my footline the title of my presentation is printed using \insertshorttitle, like in many standard templates. Normally the ...
1
vote
1answer
415 views

How do I put a short title in the header but a long title in the toc (clashing of titlesec package with sectionmark)?

The format of my thesis is as follows: \documentclass[oneside,11pt,english]{book} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{titlesec} \setlength{\headheight}{26pt} ...
1
vote
1answer
455 views

How to align header/footer

I want to get left border of the header, please see below, to the tip of the section title and the right border to the end of the text. I use fancyhdr package and the code is: ...
0
votes
2answers
101 views

TOC and header versions of section titles (titlesec interferes with fancyhdr)

I am working on a long document with many chapters, using report class. I would like to have three different versions of certain section titles (long for document, medium for TOC, and short for ...
0
votes
1answer
148 views

Problem, header location and different page in one page

My code is this \documentclass[a4paper,12pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{showframe} \usepackage{multicol} ...
0
votes
1answer
440 views

Page numbers and headers

By default TeX prints the page number at the bottom of the page. I added a custom header so that the page number appears in the top right hand corner. So I have the page number in two places, at the ...
11
votes
2answers
856 views

Prepend 'Appendix' before 'A' using scrbook

I am writing my thesis and need to put 'Appendix' before the numbering (A, B, C, ...) in the table of contents (TOC), the chapter title and in the header. I'd also like for \autoref{} to output ...
9
votes
2answers
409 views

Stop memoir from making mathmode section names uppercase in header

I'm typesetting my thesis with memoir and in general I'm happy with the result. However, some of my section headers have math mode text like \section{The $\phi_{ij}$ matrix} which memoir comically ...