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

6
votes
2answers
14k views

How to set the header font size using fancyhdr package?

Basically, I want the header fonts to use a different (smaller) font size than the size I set using \documentclass. What should be the option I'd be using ? \documentclass[12pt]{article} ...
5
votes
2answers
9k views

Force page numbering on every page

I have a LaTeX report with title, abstract and the main part. I want to have numbers on every single page starting from the first. How do I do that? The way it is now is that the first page is not ...
4
votes
1answer
951 views

package right similar to tufte-book

Is there any package right similar to tufte-book? Using \marginpar, the following (Default) could be produced, but I want to have the Target; i.e. to spread the page header over the margin. ...
4
votes
1answer
11k 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} ...
2
votes
1answer
529 views

How to change \headsepline color in KOMA-Scriptclasses

At the moment I am working on a rather big project in which I typeset a lecture note for a professor of mine. I want to use the headsepline the KOMA Script Class offers, but I want it to have the same ...
16
votes
2answers
22k 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
1answer
232 views

Why does color cause a vertical shift?

this TeX-source \documentclass[a4paper,12pt]{book} \usepackage[usenames,dvipsnames,svgnames,table,x11names]{xcolor} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead[LO,RE]{} ...
9
votes
1answer
2k 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 ...
9
votes
2answers
1k views

Can I put a logo in the header of a twoside document?

I would like to include a graphics file with a logo in the header of all pages of a twoside document (left and right side). The logo should be left-justified on the left side and right-justified on ...
8
votes
1answer
2k 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
1answer
10k 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}} ...
8
votes
1answer
1k views

How to tell if the current section is defined in Beamer?

I am customising the footer of my Beamer slides. The footer displays the title of the slides, followed by a ":", and then the current section title. This works fine if the current section is defined. ...
8
votes
1answer
4k views

Replacing fancyhdr with scrpage2

I'm trying to reduce the number of packages I'm loading in my documents and I read on the KOMA documentation (and elsewhere) that it can define page styles better than fancyhdr. But each time I try to ...
7
votes
1answer
530 views

Section in page header and TOC without number and no indention

I'm looking for advise about handling sections a a special way. What I want: Sections should not be numbered, they should be listed in the TOC and be available in the page header, and they should ...
7
votes
4answers
6k views

How to change the formatting/font of page numbers?

So, I'm using the article class, and I'd like to make the page number smaller, and set it in a different font. I don't need to create a new pagestyle, necessarily, and I'm hesitant to do so without ...
6
votes
3answers
466 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
1answer
18k views

sectionname + number in header with fancyhdr

I want to have section name + number on the left side in the header, and a predefined text on the right side. Also want to have subsection / subsubsection name + number, if the subsection is long ...
5
votes
1answer
387 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
610 views

Put section and page numbers in the margin with KOMA Script

Using the scrartcl document class, I would like to put the section number into the page margin, as is seen for example in the famous l2tabu document. That should be easily possible with KOMA Script, ...
5
votes
2answers
12k 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
3k views

How to make (force) line-break in Chapter Title (in ToC, Chapter, Header) - if possible?

I've found how to make different text for Title appearing in ToC, Chapter and headers Chapter title in header too long : \chapter[medium-length title for TOC, if wanted]{full title name} ...
4
votes
1answer
310 views

Let title distinct in mainmatter and TOC and header

Title in mainmatter (long title): Sec.1 The introduction of TEX --- A powerful typsetting system blabla... Sec.2 installation blabla... Title in TOC (short title, line break before em ...
4
votes
1answer
6k views

No page numbering for the table of contents

How do I skip numbering until the beginning of chapter 1 with scrbook? I'm using something alone the lines of \begin{document} \pagestyle{empty} \pagenumbering{none} \maketitle \tableofcontents ...
4
votes
2answers
2k views

How do I add a Page X of Y in a KOMA-script class?

I saw the answers to a similar question, but the accepted answer won't take effect in a KOMA-script class. \usepackage{lastpage} ... \cfoot{\thepage\ of \pageref{LastPage}} I am using scrartcl ...
3
votes
0answers
81 views

3 (adjustable) column headline in Warsaw

How can I adjust the following code to have a three column headline in the Warsaw theme. What I am trying to have is to get section, subsection and subsubsection show in each of the columns. ...
2
votes
1answer
50 views

Iteratively define Header/Footer

I wrote a LaTeX document (approx. 50 pages) with 2 classmates together. Now i want to show who wrote which part in at the top right of each page. For example at page 2-15 will be my name at the top ...
2
votes
1answer
469 views

How to write custom footer for some pages

I am using fancyhdr to hide header and footer in some pages but I also want to write custom footers for certain pages. Is there an easy way to do it? Or is there any way to put define text in the ...
2
votes
1answer
244 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 ...
1
vote
1answer
6k views

Page numbering at bottom of page

I am writing my thesis and I am using document class thesis. I want the page numbering appearing at bottom of the pages and centered. \documentclass[12pt,a4paper, oneside, bold]{thesis} ...
11
votes
3answers
185 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 ...
6
votes
4answers
123 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
1answer
430 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 ...
5
votes
1answer
374 views

Two sections on one page make fancyhdr takes the second one as page header

I have two sections on one page. Unfortunately fancyhdr takes the second one as the page header, which will result in something like seen in the image below. I want to have the first section as the ...
4
votes
1answer
5k views

fancyhdr: Section number, Section, colon and subsection in header

I am a bit confused with the fancyhdr options. I currently have this style for my headers: MWE: \documentclass[12pt,oneside]{book}%use oneside to ensure no blanks\ \usepackage[text={5.45in,8.5in}, ...
4
votes
1answer
2k views

Problem with multiple fancyheader page styles

I want to use multiple fancyheader styles in my document. I've run into a problem that seems to be a bug to me. The code below doesn't compile with latex; it seems stuck in an infinite loop. ...
4
votes
1answer
654 views

Separate table of appendices - pdf bookmarks & avoid previous chapter's format

I'm trying to format my thesis which requires a seperate list of appendices. Thanks to a really useful post - Creating a separate list of appendices with tocloft - I have the list up and running. I'm ...
4
votes
2answers
1k views

How to change the position of the page number in the first page of every chapter of a book?

I am using the book.cls and I want that the page number of the first page (only the first page) of every chapter be at the bottom and on the right. And page numbering of the other pages remain intact. ...
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 ...
3
votes
1answer
246 views

Keeping header “on top” in landscape mode

When using pdflscape and fancyhdr, the headers also get rotated. Whilst it's a normal behaviour in most cases (especially when the document has to be printed), I am dealing with a report which will ...
3
votes
1answer
324 views

How do you use Psvectorian?

Can someone provide a short explanation or example of using psvectorian? http://melusine.eu.org/syracuse/pstricks/vectorian/psvectorian.pdf Specifically, I am looking for an explanation of how to ...
3
votes
1answer
462 views

Nomenclature header problems

I'm writing a document in book class, using the fancyhdr package. I have both an index, and a symbol list, for which I use the imakeidx and nomencl packages. I had problems with getting the right ...
3
votes
1answer
3k views

How to remove 'Chapter 1.' from 'Chapter 1. Introduction' while using \leftmark?

MWE is below: \documentclass{report} \usepackage{fancyhdr} %\newcommand{\currentchapter}{} %\let\oldchapter\chapter %\renewcommand{\oldchapter}[1]{\oldchapter{#1}\renewcommand{\currentchapter}{#1}} ...
3
votes
1answer
251 views

Page number in outer margin affects vertical ruler

I adapted the idea from here to place the page numbers in the outer margin. However, by doing so, the vertical ruler disappears. I first thought that adjusting the horizontal spacing parameters for ...
3
votes
2answers
2k views

Fancyhdr footer not working on pages where a chapter does not begin

I'm using fancyhdr to put a text and page number on every page: \usepackage{fancyheadings} \fancypagestyle{plain}{ \fancyhf{} \lhead{section \bfseries \thesection} \chead{CS04-708 Main Project, ...
3
votes
1answer
1k views

Date on the bottom of the page without drafting option in ClassicThesis

I'm using classicthesis to write my document. I don't use the option drafting but I can see on the bottom of the page the date (there is a part of the date that is not readable, but when I copy and ...
2
votes
1answer
43 views

remove headers on pages where there is a sidewaysfigure

I have a Latex document with headers on each page. On the pages where I have a 'sidewaysfigure', I want to remove the headers, because sometimes, the white borders of the large sideways figures ...
2
votes
1answer
82 views

\pagestyle{headings} causing \hbox warning due to long chapter name

I am being prompted with the following error while using \pagestyle{headings} on a book class LaTeX document: Overfull \hbox (240.44835pt too wide) has occurred while \output is active ...
2
votes
1answer
295 views

wrong header in bibliography (classicthesis)

I'm using classicthesis and have a problem with the header of my bibliography: instead of small caps I receive normalfont letters. I don't know how to make a reproducible MWE, because when I load a ...
2
votes
2answers
207 views

How to remove link from title in foot

When using \insertshorttitle in the footline (or elsewhere) it is automatically inserted as a click-able link. Therefore it is for example typesetted in a different colour. (marked with a red circle ...
2
votes
1answer
74 views

Problems with footer and header and pagenumbering

My problem is, that all my footers and headers are gone now :( and the pagenumber. Here the code: \documentclass{article} \pagestyle{empty}% for cropping \usepackage{microtype} \begin{document} ...