Questions tagged [header-footer]

{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 {scrpage2}.

Filter by
Sorted by
Tagged with
14
votes
3answers
21k views

How can I add text in the top right corner of a page _without_ using fancyhdr

I want to put a block of text into the top right corner of my document (which uses the article class). The specifications of the document's formatting are very detailed, and it has taken me about 2 ...
13
votes
1answer
12k views

Memoir Headings

What is the best way to customize the headings at the top of each page in a memoir document? For example, if I want just the page number at the top of every left page, and just the chapter title (say,...
11
votes
2answers
3k views

How to write like old mathematical papers

Every time I read an old math paper, I'm pretty exited about how perfectly it looks. See this PDF, for example: Everything, though a not-so-perfect-scan, somehow looks "real" to me. It's the little ...
18
votes
2answers
44k 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 ...
16
votes
1answer
9k views

How to get a colored box as the header?

I want to produce this particular template in LaTeX. With no page numbering, and rectangles in colours in a a4paper.
16
votes
1answer
19k views

Include Page Number in Abstract

I'm trying to include a page number on my abstract page. Here is how I have it set up so far (cutting out some extra things): \documentclass[letterpaper,12pt]{report} \usepackage[style=numeric]{...
13
votes
1answer
25k views

fancyhdr color and width of line?

I am using the fancyhdr package and I want to have a thicker line under my header and I want to have it colored, but my problem is, that this 2 commands: \renewcommand{\headrule}{\vbox to 0pt{\hbox ...
10
votes
1answer
5k 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 ...
5
votes
1answer
2k views

Reproduction of Word Report Template in LaTeX

I am trying to reproduce a word report template in LaTeX to speed up my report writing. I have some basic LaTeX skill, but I am having trouble producing the blue page border as shown in the picture. ...
23
votes
2answers
3k views

Hyperref Link Spans a Pagebreak, Looks Ugly

I'm using hyperref for links in pdflatex and I have the following problem: when a bibliography citation spans across a page-break (which usually occurs with long author names), then an additional ...
6
votes
1answer
24k views

Same header and footer for every page

I have a problem with my header and my footer. If I do that: \pagestyle{fancy} \fancyhf{} \fancyhead[R]{\includegraphics[width=8cm]{img/header.png}} \fancyfoot[L]{ Name Firstname - v1.0 \\ Date}} \...
5
votes
1answer
654 views

Header page book in TikZ

How can I draw this is figure? \documentclass[12pt]{book} \usepackage[top=25mm,bottom=25mm,left=25mm,right=25mm]{geometry} \usepackage[all]{background} \usepackage{ptext,xcolor} %\usepackage{...
4
votes
3answers
16k views

Different header and footer on the title page (first page)

I have been racking my brains over how in bloody hell can you have a different header for the title (or first) page of a document. I am not asking here how I can not have a header by clearing the ...
18
votes
2answers
5k views

Attached external pdf file is not showing page number

I am writing my thesis. I have a "main" LaTeX file from where I am calling (attaching) pdf file. But the attached pdf file is not showing any page number. Also, it is not showing other page style I ...
16
votes
3answers
4k 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 '...
15
votes
2answers
403 views

Dictionary marks in biblatex for indicating in the header the first and the last reference for each bibliography page

I want to make dictionary style pagemarks using biblatex. Consider the following example: \documentclass{memoir} \usepackage[sorting=nyt,style=ieee-alphabetic,backend=biber]{biblatex} \begin{...
10
votes
2answers
5k 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 (...
10
votes
2answers
4k 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 and ...
8
votes
2answers
1k 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, ...
7
votes
1answer
5k 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 ...
0
votes
2answers
61 views

automatic \texorpdfstring for \ref in pdf bookmarks (section titles) [duplicate]

\section{Proof of Theorem~\ref{thm:main}} doesn't produce the correct pdf bookmark (using the hyperref package). \section{Proof of \texorpdfstring{Theorem~\ref{thm:main}}{Theorem 3.1.7}} would give ...
18
votes
2answers
2k views

Automatically remove page number if document has only one page (but not if two)

I write a lot of documents (agreements) based on memoir with the article option. Normal pagestyleis plain (page number centered in the footer). Sometimes a document is only one page long, and a page ...
12
votes
1answer
21k views

How to add a copyright notice footer to only the first page of a document?

I have a conference paper that requires me to enter a copyright notice to only the first page of the document. I know that I can use fancyhdr to add this. I added the following to my document: \...
11
votes
4answers
6k views

How to cut a section title in the header

I redefine my headers as in the following MWE: \documentclass[12pt]{article} \usepackage{xstring} \usepackage{fancyhdr} \fancypagestyle{monstyle}{% \fancyhf{} % remove everything \renewcommand{\...
8
votes
1answer
11k 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} \chaptermark{...
7
votes
3answers
14k 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
4
votes
3answers
4k 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 ...
4
votes
2answers
2k views

Different margins in title and chapters

I am struggling here with adapting school template for my document. The problem is that I need different margins on the title and on the chapter pages. Here is the code. On the title page is all easy. ...
3
votes
1answer
258 views

Put current theorem-like item's name/number in header

I'm using the amsthm and fancyhdr packages with the book LaTeX document class. All theorem-like items (theorem, lemma, definition, exercise, etc.) are numbered consecutively within each chapter (via ...
2
votes
2answers
758 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 ...
13
votes
4answers
740 views

Adding page number to the even page right after \part

Friends, I've never used \part{} before, so bear with me. =) Consider the following code: \documentclass[twoside]{book} \usepackage{lipsum} \begin{document} \pagestyle{empty} \begin{titlepage} My ...
11
votes
2answers
2k views

flip book in master thesis

I am right now writing my master thesis in computer science about a visualization topic. Since the core stuff of my thesis is a complex 3D visualization that only quite sends its message through user ...
11
votes
4answers
1k views

Reference undefined in \section with amsbook

I have a section that is devoted to the proof of a theorem, and hence I used \section{Proof of Theorem~\ref{thm}} Of course, because of the headers that are capitalized, it asks for \ref{THM} when ...
8
votes
3answers
31k views

Position of page numbers

I want to move the position of my page numbers to the bottom right of the page. Is there a way to do it without using the fancyhdr package? Right now I just use \pagenumbering{roman} and it does ...
6
votes
1answer
2k views

No numberings, no numbers (section, chapter, subsection etc.) in header?

I am using scrpage2 with scrbook. I would like to have no numbers or numbering of sections, chapters, etc.. in the header. How can I achieve that? I have the following example: \documentclass[12pt, ...
6
votes
1answer
3k 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} \fancyfoot[...
6
votes
2answers
2k views

Remove “Chapter” in header of the backmatter

In my backmatter the header appears as Chapter x: chapter-name, where x is the number (or letter if I have an appendix) of the last chapter before the backmatter. How can I make the header in the ...
5
votes
1answer
2k views

How to apply custom headers/footers on pages with new chapters?

I'm writing my final report in LaTeX for my bachelor's degree. I'm aiming at having a document similar to the .doc template used normally. I want to have my customs headers and footers applied on ...
4
votes
1answer
2k views

Header and Footer on multipage listoffigures

I've using the fancyhdr package to modify the header and footer. If my \listoffigures spans multiple pages then the header and footer on page one of the LoF is not fancy. The TeX example below ...
4
votes
1answer
816 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
3answers
4k views

Change \headheight for a \pagestyle

I have a document class that auto generates header from some user input. The problem is the first page should have a different page header than the others and the headline can be multi line. So \...
3
votes
1answer
393 views

Different font size/position of beamer's navigation symbols template's content depending on regular/plain frames

Let's suppose I'd like to divert the navigation symbols template (e.g. in order replace them by the frame numbers, see this bug report ;) I would be facing troubles regarding the font size/position, ...
3
votes
1answer
2k 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 ...
2
votes
1answer
838 views

titlesec: \assignpagestyle problem with part

According to the titlesec documentation (section 3.5): You can assign a page style to levels of class top and page, as well as the default chapter with the following command: \assignpagestyle{...
2
votes
2answers
4k views

Change header only in one page

I'm starting the report of my capstone project. I'm using the memoir package, taking this template as a reference Right now, I'm working in the formatting required by my college. My problem is that ...
2
votes
1answer
4k views

chapter title long and necessity to cut it

my chapter title is too long and I have the necessity to cut it in two different lines. well which could be the best way to cut it?I tried using \newline but unfortunately this modification affects ...
1
vote
1answer
105 views

memoir: headers for short and detailed tables of contents

The following memoir documentclass source produces two tables of contents -- a short one and a detailed one. (The difference is that only the latter includes subsections.) Question: How do I get the ...
1
vote
1answer
600 views

adjusting the line width of the header with geometry fanchyhdr

the line is longer than the width of the text, how do I adjust, knowing that the package needs fanchyhdr geometry? \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{preambulo} %...
1
vote
2answers
373 views

Number reference headline [duplicate]

I try to number the header of my references. I succeeded to add the number to the table of contents, but I can't get it to work for the header. To add the number to the toc I used: \addcontentsline{...
26
votes
3answers
29k views

Modify footer used by elsarticle.cls

I would like to modify the footer used by Elsevier's elsarticle.cls without editing the class file directly. I would like to eliminate the footer on the first page that states "Preprint submitted to ...

1 2
3
4 5
14