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

7
votes
5answers
2k views

How do I center text in a page heading?

I'm using \markright to create a page heading. I'm having trouble centering some text in this heading, and I'd like to know how to do this. Here's my current setup: \documentclass{article} ...
7
votes
3answers
198 views

Section title in header showing the title belonging to the section that begins the page

In the header latex shows the title of the section which starts on a page. I would like it to show the title of the section which is continued from the previous page. An example: ...
7
votes
3answers
265 views

Inserting a sentence at the top of the page

I want to insert a sentence (Author's personal copy) at the top of the page which is centered. I don't want a header with line. Just want to add a sentence (bold or italic). How can I add that for ...
7
votes
3answers
646 views

How to set the baseline for headers with scrpage2?

I want the left and the right header to have the same baseline, regardless of the height of the content they yield. To demonstrate this, assume \documentclass{scrartcl} \usepackage{scrpage2} ...
7
votes
3answers
2k views

How do I prevent “Contents” from appearing twice in the header when I use \leftmark and \rightmark with fancyhdr?

I would like to use \leftmark and \rightmark, but have "Contents" appear only once (on the left) in the header. Instead, it appears as both the \leftmark and the \rightmark. The following MWE ...
7
votes
5answers
5k views

Place a TikZ picture on every page

I am looking to place a picture (TikZ picture) on every page of my document. How can I do that? In essence I would like to control the placing of the image on even and odd pages. For example the ...
7
votes
4answers
6k views

how to remove page numbers from first page of chapters

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 ...
7
votes
4answers
1k views

Use of shaded box for section numbering only?

I have been wondering "how to get shaded box for section numbers only"? Also, How to get grey square in between left mark and page number in the header? In code below I can get solid black square. I ...
7
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} ...
7
votes
2answers
17k 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 ...
7
votes
1answer
440 views

Different headers/borders for each page

I'd like to apply a different heading/border for each page. The footers will all be the same. I want it to look like this: I can make the first two pages different but I don't know how to get ...
7
votes
4answers
215 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: ...
7
votes
1answer
4k views

Format page numbers

How can I control look of the page numbers? For example, in the MWE below: \documentclass[12pt]{article} \usepackage[backend=biber]{biblatex} \usepackage{fancyhdr} ...
7
votes
3answers
3k views

Using the fancyhdr package, how do I have a footer but no header on the first page only

I would like to have a header and a footer throughout the document, however on the first page I would like no header with the footer remaining as it is throughout the document. So far all I can do is ...
7
votes
1answer
199 views

Suppress headers and footers for complete chapter

For my thesis, I need to include a chapter which can "stand alone", meaning it must be formatted in a way that allows the pages to be exported and be published separately. This means, I need to get ...
7
votes
1answer
4k views

Header problem with book class

It seems I have a problem with the headers using the book class. On every chapter when the text is too long the chapter text and the section text merge. Also I don't know how I could make them lower ...
7
votes
1answer
7k views

\midrule before \endhead in longtable environment with booktabs package

I am trying to use longtable with repeating headers on each page. For example: Column 1 & Column 2 & Column 3 \endhead \midrule results in an ugly multi-page table. The horizontal rule ...
7
votes
2answers
288 views

Suppressing page numbering in the first page of chapter in mainmatter but *not* in frontmatter

I am using the book class. I want to suppress page styles (page number, header, footer) in the first page of every chapter in my mainmatter, but not in \frontmatter - where I want to have roman ...
7
votes
1answer
3k views

Creating a custom Beamer theme. Need to remove the footline for the title page only

First of all, I'm aware of this question and it's really not what I'm asking: the solution given there is to issue \setbeamertemplate{footline}{} in a localized group containing the \titlepage ...
7
votes
1answer
852 views

Change color of institute in the footer of a Latex presentation

I have a presentation that uses the theme Dresden with color theme beaver. Everything works fine, except for the name of the institute in the footer of the slides, which appears white on a very light ...
7
votes
1answer
1k views

Page styles only work for \thispagestyle under afterpage

Using afterpage to set a page style after some page only works for \thispagestyle, but not for \pagestyle. Why is that? How can I make it work? \lipsum[1-20] produces 4 pages of text, Lorem Ipsum ...
7
votes
1answer
3k 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 ...
7
votes
1answer
5k 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 ...
7
votes
3answers
481 views

two different framed box in running head using fancyhdr

I would like to get the two different filled framed box in the odd and even side running head. Expected are: my MWE is: \documentclass{book} \usepackage{fancyhdr} \usepackage{tikz,lipsum} ...
7
votes
2answers
275 views

Eliminate topspace and bottomspace in ConTeXt

Background Looking to put the page number flush to the bottom of the page using ConTeXt. The key lines in the Minimum Working Example (MWE) below are: \setuplayout[ topspace=\zeropoint, ...
7
votes
2answers
2k views

How to apply a custom pagestyle (with titlesec package) to a part of a document

I have defined a personal page style using the package titlesec. The style defined is: \newpagestyle{myStylePage}[\large\sffamily]{\headrule \sethead{\thechapter . \chaptertitle}{}{\thesection . ...
7
votes
2answers
330 views

pdflatex endless loop and page headings wrong aligned with dateiliste/babel [closed]

In the following code the heading is wrong aligned if babel and dateiliste are loaded together. Furthermore the whole MWE goes into an endless loop if the first line is removed. % remove to let ...
7
votes
2answers
560 views

I'm trying to redefine the plain pagestyle as empty

I tried to use this command, but doesn't work. \makeatletter \let\ps@plain\ps@empty \makeatother I put it in the beginning, in the middle and just before the \begin{document}.
7
votes
2answers
749 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
2k views

header and chapter*

I find it strange that the page header in the chapter “Title2” is not updated in the example below: \documentclass[12pt]{book} \usepackage{lipsum} \begin{document} \tableofcontents \chapter{Title1} ...
7
votes
2answers
234 views

Page header of LaTeX and Friends

In Showcase of beautiful typography done in TeX & friends Marc van Dongen shows his book LaTeX and Friends, http://tex.stackexchange.com/a/46348/15360. He uses a specific page header as can be ...
7
votes
2answers
493 views

Use \singlespacing in scrheading and \onehalfspacing in the main document

I'm writing an article using KOMA-script scrartcl class. The main text uses \onehalfspacing option from setspace package. In my article I have headings with couple lines of text set up using scrpage2 ...
7
votes
1answer
602 views

Can I have bigger margins on pages containing only floats?

Latex sets the margins to give a good reading experience for text. For pages containing only figures this generally does not matter and I would like my figures to fill as much space as possible, in ...
7
votes
1answer
567 views

How to display mdframed title in header?

I have a series of mdframed frames in the document. Some frames are few pages long, and some pages have two frames within. How can I display the frametitle of the corresponding page in the header as ...
7
votes
2answers
817 views

Switching from memoir to report

I've been using memoir for a while now, and have started facing problems with modified output routine, this has forced me to seriously consider switching (back) to report class. What I'm going to ask ...
7
votes
1answer
498 views

How to display unprinted text in headers?

I use fancyhdr to display first and last headword from my dictionary in the header section. The problem is that the headwords in the dictionary may contain special symbols (see example picture)) that ...
7
votes
1answer
565 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
2answers
1k views

Simple school style report headers

I want to use LaTeX to do a school paper. I need the professor name the class name and class time all to be in the upper right corner of every page. The fancyhdr package, at least in it's default ...
7
votes
1answer
486 views

Show current section or chapter in header in ConTeXt

I've found this command: \setupheadertexts[][{\getmarking[sectionnumber]\ \getmarking[section]}] to show the current section in the header. But how can I show either the current chapter or the ...
7
votes
2answers
2k views

How can I have multiple lines in a header or footer using scrpage2?

For an assignment at university I have to copy a lay-out template that is provided in Word but I want to use LaTeX. For this, I need to have two lines in the footer. How can I achieve this using ...
7
votes
1answer
17k 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 ============================== ...
7
votes
1answer
419 views

lost formating on one page

Formating on one page is broken, namely in header part there is missing one parameter (word) and the columns looks differently as shows the picture bellow. How can I correct the formating? The script ...
7
votes
2answers
331 views

How I manage two counters for a page

I need to number the pages of an article from 1 to n inside the article (named here artpage), but also the pages included in a volume. \newcounter{artpage} \setcounter{artpage}{1} ...
7
votes
2answers
4k views

Headlines in Beamer

In Beamer presentation on one page I would like to get rid of headline. I would prefer to leave the background but get rid of the names of sections and subsections. How is it possible to do this? ...
7
votes
1answer
16k views

Page numbering in header/footer (fancyhdr) [duplicate]

Possible Duplicate: How to remove the top horizontal bar in fancyhdr? How would I get rid of the line in the header, and the line and page numbering in the footer? My code is below. ...
7
votes
1answer
3k 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 ...
7
votes
1answer
7k views

How do you increase headrule length in fancyhdr?

It's pretty well-known how to increase the headrule width, but how do I increase its length (i.e. let it run into the margin).
7
votes
1answer
11k views

Formatting resume in LyX

I am writing a resume in LyX (compiled using MiKTeX). How can I place my name at the top and centered? Also when I output it in PDF, there is always a huge margin space at the top. How can I set the ...
7
votes
1answer
204 views

DALEIF1 margin top

I am new guy on texstackexchange... I am using the daleif1 theme for my heading : \documentclass{memoir} \usepackage{color,calc,graphicx,soul,fourier} ...
7
votes
1answer
9k 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 ...