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

3
votes
0answers
4k 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 ...
11
votes
2answers
19k views

Modify footer of slides

I am editing a presentation with beamer, the theme is Boadilla: \date{date} \title[The title is quite quite quite quite quite quite long]{The title is quite quite quite quite quite quite long} ...
11
votes
2answers
12k views

how can I remove the institute from the author footline on beamer?

I'm using the Madrid theme. I have defined \institute as \institute[]{\pgfuseimage{logo} \\ my-institute} because I want the logo to appear at the title frame. Also, since all viewing the ...
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 ...
11
votes
3answers
4k 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 ...
11
votes
1answer
2k 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 ...
10
votes
2answers
5k views

Problem with the header/ footer width

I have recently started using the geometry package to format the margins of my documents. Although, I've noticed that the width of the header/ footer remains the same. How can I correct this? ...
10
votes
2answers
19k views

How to move page number?

I want to change the position of the page number. I've read around here that some suggest to use the fancyhdr package, but I don't want to use it – I'm a beginner to LaTeX so I don't want to use a ...
9
votes
3answers
1k views

Stop page count before appendix

I'm trying to find a way to stop the page count in my report. So the count stops, then it comes to the appendix. Then have a separate count for the appendix, with the footer also changing so when the ...
8
votes
1answer
1k views

How to change page number location on ALL pages (including chapter pages) WITHOUT fancyhdr?

Question revised: What must I do to change the page number position on EVERY page (especially for chapters) WITHOUT using fancyhdr? Background and details: I've searched now for many, many hours ...
8
votes
2answers
240 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
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
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
1answer
4k views

How do I increase the spacing between header text and the 'headrule' line with fancyhdr?

This is going to be something so obvious that I'm almost embarrassed to ask! I've been using fancyhdr to put some fancy headers and footers in my thesis template – in fact, doing what it says on the ...
7
votes
2answers
431 views

Libertine newtxmath and text (oldstyle) figures in headers

This is closely related to the OP with title "lining figures in tables and math, old style figures in text", and to the answer provided therein. The following (semi)MWE is to be run with pdfLaTeX: ...
7
votes
1answer
1k views

Tables as Header and footer

I've been struggling with my .tex for quite some time now, and decided its time to look for help. This is the situation: all docs here (my office) need to bring, as header, a table (3 columns) which ...
7
votes
1answer
1k 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 ...
7
votes
1answer
5k views

Beamer: Background Color for Footline

I define a custom footline template like that: \setbeamertemplate{footline}{ \hspace*{.5cm} \includegraphics[scale=0.07]{images/image1.png} \hspace{0.3cm} \scriptsize{Seite ...
7
votes
3answers
4k 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
96 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
547 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
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
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
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 ...
5
votes
1answer
4k 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 ...
5
votes
3answers
324 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
1answer
307 views

Set maximum number of table of contents in the header

I'm doing my presentation in beamer and I use warsaw theme. I have around 5-6 sections and they are all mentioned at the top of every page. This makes available frame space smaller. Can I limit this ...
5
votes
2answers
4k 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
2k views

ToC, chapter problem, adding a dot next to the number of chapter

\documentclass[openany, 10pt]{book} \usepackage[utf8]{inputenc} \usepackage[MeX]{polski} \usepackage{titleps} \usepackage[Lenny]{fncychap} %\usepackage{tocloft} \makeatletter ...
5
votes
2answers
9k views

Add Footer Text to All Slides in Beamer

Is there a way to append footer text to the slides in beamer? I wanted to get rid of the default footer, but I want to add a bit of additional text. Right now I have: %gets rid of bottom navigation ...
4
votes
1answer
247 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
10k 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
531 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} ...
3
votes
1answer
70 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
1answer
1k 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 ...
3
votes
0answers
91 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
6k views

Increase height of fancyhdr header

How would one increase the height of the \fancyhead{} so that the text in the main body, doesn't collide with the title? I have the following MWE: \documentclass[a4paper,10pt,oneside]{article} ...
3
votes
1answer
285 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
1answer
573 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
715 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
324 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
1answer
317 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
1answer
99 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
0answers
68 views

Geometry on last page of document

I would like the geometry of my file to be different on the last page of the document. I have tried something like: \AtEndDocument{\newgeometry{left=0.6in,right=0.6in,top=0.6in,bottom=1.8in}} But ...
0
votes
1answer
295 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 ...
10
votes
2answers
462 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 ...
10
votes
3answers
171 views

Can I hook into the end of the document but *after* the `\clearpage`?

The code for \enddocument begins: \def\enddocument{% \let\AtEndDocument\@firstofone \@enddocumenthook \@checkend{document}% \clearpage \begingroup I'd like to put something after ...
10
votes
2answers
16k views

Insert a blank page after current page

I want to insert a blank page in a document so that the text would be added to the content of the current page till it reaches end of the page, the next page would be empty, and the text continue from ...