{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
2answers
18k views

Reproducing an official letterhead

My university, just like many other institutions, isn't really aware of something called LaTeX. Therefore, the letterhead comes only in MS Word. The following (low quality) image is the best guide I ...
16
votes
1answer
793 views

How could one setup a layout for a dictionary? (if possible)

A friend asked me if I knew any free software for creating dictionaries - which is good at saving space (reduce total number of pages). Example: I suppose this might be possible in LaTeX. ...
13
votes
1answer
3k 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.
11
votes
2answers
685 views

How can I achieve dictionary headers for two page spreads in LaTeX

I would like to produce a document where I can display the first and last items of each two page spread in the headers of both the left and right pages. I know I can use \markboth{}{} to collect the ...
5
votes
1answer
5k views

Questions about my cv header and cover letter

I am working on my cv and my cover letter and I have different questions. My current code: \documentclass[11pt,a4paper]{moderncv} \moderncvtheme[green]{classic} ...
17
votes
2answers
4k 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 ...
17
votes
3answers
1k views

How to add “cont.” section title to the top of pages?

I have a document that contains few small sections. What I would like is if the section name was repeated at the top of page body (not in the header), if new section doesn't start on that page. And ...
12
votes
3answers
7k 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 ...
8
votes
2answers
18k views

Define different heights for head and foot

is it possible to define different \headerheight for head and foot respectively? For example, there is a logo image in the header which needs a large \headerheight and only text is in foot which needs ...
4
votes
1answer
829 views

Add Table in Header with image

I'm trying to create question paper using Latex. Sample copy of expected header for first page is mentioned below. Note: Image above "First Page Header". Can you please suggest, how can I add table in ...
16
votes
2answers
843 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 ...
11
votes
2answers
11k views

Beamer - How to customise the header of a frankfurt slide?

I use the following options: \usetheme{Frankfurt} \setbeamercolor{section in head/foot}{fg=black, bg=white} and this yields a slide which looks like this: Is it possible to bring 'Section 1' ...
10
votes
2answers
7k 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? ...
9
votes
2answers
1k views

Header not displaying correctly on chapter page due to subsection

(Complete source code below.) (Note: Not sure if I am using LaTeX or just TeX. I am editing with TeXworks, as TeXStudio was not rendering what I typed without +20 seconds of lag.) I apologize if ...
6
votes
3answers
1k views

longtabu and scrpage2: line breaks in page header cause compilation errors

Please consider the following MWE: \documentclass{scrartcl} \usepackage{longtable,tabu} \usepackage{lipsum} \usepackage{scrpage2} \chead[Headline 1\\ Headline 2]{Headline 1\\ Headline 2} ...
4
votes
1answer
283 views

Dedicated pages for figures featuring automatic fit-to-page scaling and automatic portrait/landscape selection

There are some books where you have a couple of pages that contain only a picture with no footer, header or anything like that. I wanted to have something similar although I'd like to keep a uniform ...
13
votes
4answers
365 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
868 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
725 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 ...
9
votes
1answer
704 views

Headers of \chapters* take the headers of their previous \chapter

When using book.cls and using \chapter* after a \chapter, the header used in \chapter* is wrong. An example is pasted below. Is there any known workaround for that? I have tried quite some tricks ...
9
votes
4answers
4k 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 ...
5
votes
2answers
438 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. ...
5
votes
1answer
164 views

How can I put the page numbers where I need them?

I need to put the number for each page that is numbered at the top right hand corner of the document. Currently that condition is satisfied except for the first page of each chapter. That is, for the ...
4
votes
1answer
712 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
3answers
9k 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 ...
4
votes
1answer
1k 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, ...
4
votes
2answers
4k views

Headers in book format

I am writting my thesis. I don't want the headers in each chapter to appear just in capital letters. Can I override the class file to get the header as " My First Chapter"?
4
votes
3answers
3k 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
4k views

Removing Headers, Keeping Page Numbers in the same time

I wrote my diploma in LaTeX using Lyx, but now I have big problem to fit the output to universities' standards. I need to remove Part/Section... title from header, I found that using: ...
2
votes
1answer
67 views

Spacing between lhead and rhead content while wrapping

I am having troubles with wrapped text in the header. At the moment it looks like this: And this is how I would like it to look like: This is my code: \documentclass[12pt,a4paper]{article} ...
2
votes
2answers
2k 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 ...
10
votes
2answers
5k views

Adding sections such as Linkedin and Github to a Moderncv footer

How do I add extra links to the footer of a moderncv document that are not covered by the default commands?
22
votes
2answers
19k views

How to remove footline on the title page of beamer slides

I am using the default theme, and use the following to customize the footline, \useoutertheme{infolines} \setbeamertemplate{footline}{\hspace*{.5cm}\scriptsize{\insertshorttitle \hspace*{50pt} ...
8
votes
1answer
341 views

How to have headers, section headings, and figures expand into the margin?

I am interested in the following page layout. How to have headers in margins (up to margin) Is it possible to start section headings from margin How to set figures occupy the margins. I can ...
15
votes
4answers
714 views

Show page number as a “percent complete”

I want to show in the page foot the current progress of the document. For example, if the document contains 200 pages, then I want the foot to show 11.5% in the page 23. Edit: I'm also interested the ...
13
votes
5answers
2k views

“Foldable” “Booklet” like Toodledo's one (pocketmod)

How to achieve in pdfLaTeX foldable booklets similar to those provided by Toodledo ? (to make question usable to others LuaTex, ConTeX and other systems answers are highly welcome) Note: look, how ...
7
votes
1answer
12k views

Changing color and header of beamer with CambridgeUS

How to change the red color for - the titles - the topics How to adjust the position of the header1 and 2? \documentclass{beamer} \usetheme{CambridgeUS} % Set Color ============================== ...
13
votes
2answers
12k views

Put an image header in \documentclass{letter}

Is there is any possibility to put an image header in a letter class document? I can put a footer image and an image for my signature, but I want to put an image on the top of the letter.
11
votes
2answers
5k views

Different headers for different chapters

I cannot find in any latex forums a solution for my problem with chapter-specific headers. I am compiling a one-sided report with various chapters. For all the chapters, I have the header showing the ...
8
votes
1answer
5k 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 ...
6
votes
2answers
8k views

How to add horizontal line after header and before footer?

How can I add horizontal line after header and before footer? header --------- --------- footer
17
votes
2answers
1k 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 ...
13
votes
2answers
27k 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 ...
11
votes
2answers
13k views

Page numbering - removing page number from first page

How do you turn off page numbering from the first page in a LaTeX document?
11
votes
1answer
2k views

How can I get multiple lines of frame dots in beamer navigation?

I'm writing a presentation using the Darmstadt theme which uses the smoothbars outer theme which is itself just a mild variation of miniframes. In a couple of my sections, I have so many frames that ...
10
votes
2answers
2k views

Want \section* to change the page header

In a book, I have several numbered sections followed by an unnumbered section. I have placed an \addcontentsline following the \section* that introduces the unnumbered section, so that it will appear ...
8
votes
2answers
16k views

Chapter name in the header with \chapter*

I need to display the chapter name with the \chapter* command to the left side of the header. This is one example of what I tried: \documentclass[12pt,a4paper,oneside]{book} ...
8
votes
1answer
4k views

fancyhdr headings , how to remove the number of the section

I'm French so it's not easy to explain my problem but I'll try. I use fancyhdr to make my own headings (book class). I want the section's title at the right of the heading in small caps, and only in ...
6
votes
1answer
280 views

fancyhdr page decorations and page numbering

Hello there are several examples of decorative pages. Most examples work with a single page,when numbering is not necessary. When i try to make for every page. It does not work, or i have problems ...
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 ...