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
16
votes
2answers
37k views

Top right side page numbering

I want the numbers of pages to be placed at the top right side. I try to do it like this \documentclass[12pt]{article} \usepackage{fancyhdr} \begin{document} \lhead{} \chead{} \rhead{\thepage} \...
10
votes
1answer
471 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]{} \fancyhead[LE,RO]{{\...
8
votes
1answer
6k views

header and footer of the first page of every chapter

It maby be weird, I want to make header and footer for every page including the first page of each chapter, how can I do this?
20
votes
3answers
666 views

Strange behaviour with PGF/TikZ and Plain TeX output routine

I noticed a strange behavior when running PGF/tikZ with pdfTeX on my Debian box : a simple session without tikz: pdftex **\relax *Hello World *\bye do output the page number on the page footer. On ...
13
votes
2answers
10k views

How to determine head height automatically

I'm creating three documents with three different headers, containing images or large banners. Is there a way to determine the head height automatically or even better a way to change the head height ...
7
votes
2answers
5k 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"?
7
votes
3answers
2k views

Beamer - place text of footnote in footline

I must place footnotes and footcites at the bottom of the frames, like shown in the picture: The line above the footnotes must always be there, and it must have a minimum distance to the bottom of ...
3
votes
1answer
5k 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 ...
2
votes
2answers
1k views

Theme with a different footline for the titlepage

An easy way to get a different footline for a given frame is to declare the template locally. For example, to have a footline with the text my special footline, one can write: \documentclass{beamer} ...
7
votes
1answer
1k views

fancyhdr plus fontsize 12pt causes varying vertical alignment of sections

Looking at the example provided in Different headers for different chapters, I noticed something strange: The vertical alignment of sections is varying. I was able to strip the effect down to the ...
5
votes
3answers
9k views

footnote in footer

I have a problem with placing a footnote. In the text I use \footnote{blabla} and it works well and displays the "blabla" at the bottom of the page. But I use a header and footer in the document and I ...
4
votes
3answers
1k 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 ...
21
votes
4answers
15k views

How do I insert text into the footline of a specific slide in Beamer?

I'm trying to insert references into a beamer footline. These references are different for each slide, so I cannot include them in the footline template - unless there is then some way to later define ...
25
votes
3answers
15k views

When do I need invoke \clearpage manually?

I am not sure whether invoking \clearpage is necessary or redundant at many places in my input .tex files. Here I will ask you, in what condition is invoking \clearpage necessary? I hope I get a ...
16
votes
2answers
41k 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 ...
10
votes
1answer
5k views

TikZ header and footer across top and bottom of bulletin/newsletter page

I would like to have a simple TikZ coloured header and footer for a bulletin/newsletter template. I have in mind something such as this: Note the green bands spanning the width of the first page at ...
25
votes
4answers
38k views

Page number position

I am working on a long document in LaTeX with documentclass book. I need the page number to always be in the upper right corner of each page, even if that page is the first page of a chapter (right ...
22
votes
1answer
2k views

Indexing an interval of words on top of every page

Friends, I'm curious on how to do the following in LaTeX: Dictionaries have two words on the top of each page, meaning the interval of words to be found on that specific page, e.g., In the figure, ...
13
votes
2answers
2k views

How to change header to list first section on page and not last section

The standard use of header/footer is to display the chapter/section information, which normally begins on a new page. What I would like to do is to have the header show the first question that is on a ...
9
votes
2answers
26k views

Custom header/footer rules (fancyhdr?)

I want to be able to customize my header/footer so far that I can change the rules that separate it from the document. Look for example at http://ww1.microchip.com/downloads/en/appnotes/00734b.pdf (...
24
votes
3answers
49k 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 ...
10
votes
2answers
2k views

Trouble with Bible Style page header lines

I'm attempting to typeset a Bible for my mom and I'm running into a few problems and I was hoping someone here could help. First I'll start with the easy question. I'm currently using two columns ...
19
votes
3answers
58k views

how to display current section title in header

how to display current section title in header insted of chapter title? I'm using book and fancychap MWE \documentclass [11pt,oneside,final]{book} \usepackage[nohints]{minitoc} \usepackage[round]{...
18
votes
3answers
3k 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 ...
11
votes
2answers
1k 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 ...
8
votes
1answer
2k 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 ...
23
votes
3answers
18k views

Table of contents with page style empty

How can I make produce a table of contents by \tableofcontents with page style empty? It doesn't work with \thispagestyle{empty} or \pagestyle{empty}.
15
votes
4answers
15k views

how to remove page numbers from first page of chapters [duplicate]

My report requires page numbers to start from 1st chapter 1st page. So I use \pagenumbering{arabic} just before I do \include{tex_files/chapter1)Introduction} Now I want the page counting to ...
9
votes
3answers
6k views

My footer disappears when I increase headheight

I have created a custom simple layout with the fancyhdr package. Because the header I must use is somewhat big, LaTeX instructed me to increase the headheight to at least a minimum value. The problem ...
5
votes
1answer
462 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 ...
16
votes
2answers
7k 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 ...
13
votes
2answers
20k 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' and '...
9
votes
3answers
9k 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 ...
7
votes
1answer
2k 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 ...
6
votes
1answer
1k views

\pagestyle{ruled} adds superfluous text in glossary

I'm writing my thesis using the memoir package, using \pagestyle{ruled}, and have created glossaries for a glossary and an acronym list. The resulting pdf, contains the superfluous text "Glossary" and ...
6
votes
2answers
13k views

Moderncv casual header - photo right, name and title on the left

I like the moderncv casual theme, but I would like to change the order of the photo and the name / title. I tried the solution described in this question: Modify moderncv header ! Undefined control ...
5
votes
1answer
520 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 &...
5
votes
3answers
23k views

How to edit Beamer theme CambridgeUS

I have been using the beamer document class with the theme- cambridgeUS in lyx. The following code is the preamble. Now, I want to insert a hyperlink to a pdf file in all the pages by adding them in ...
8
votes
1answer
1k views

How can I force a line break in the table of contents?

I'm writing a pretty long document, and at some point this happened with the table of contents: I would like to be able to force a line break between 'complex' and 'space', either directly or by ...
6
votes
2answers
2k views

Header, footer and font customization

How can I create a default header, footer and customize the font of my LaTeX document? I wanted something like this: Default book title Chapter name ...
4
votes
1answer
189 views

How to print a page number to a repeating header of a longtable?

The table header gets generated once and only prints: Page 1 of 2 ... on each and every page. Is there any way update the page number in the longtable header to reflect the actual current page, i....
30
votes
2answers
44k 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 ...
30
votes
1answer
64k 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: \pagestyle{...
19
votes
3answers
23k 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?
27
votes
1answer
46k 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}} \...
35
votes
3answers
67k views

Removing page number from ToC

How to remove the page number from the table of contents page?
16
votes
1answer
17k views

Change header and footer to only a group of pages

I would like to change the header and footer to only a group of pages in my document. I'm using the fancyhdr package with these settings: \usepackage{fancyhdr} \pagestyle{fancy} \makeatletter \...
14
votes
1answer
11k 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 ...
17
votes
1answer
25k views

How to customize the page header and the page number of classicthesis?

I am using the classicthesis package and would like to customize the page headers and the page numbers. Here is a test project that shows the problem. \documentclass[dottedtoc, headinclude, ...
17
votes
1answer
1k 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. Thankful ...

1
2
3 4 5
13