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

Distinguish even/odd pages in header with oneside option

See the MWE below. How can I achieve (in the standard book class) that despite the oneside option odd and even pages are distinguished in the header? I would like to have that, also with oneside ...
7
votes
2answers
457 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
365 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
504 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
685 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
435 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
531 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
961 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
13k 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
4k views

Inconsistent margins using fancyhdr and geometry

For my homework assignments I usually use the fancyhdr package to create a header that contains the group (A, B, C etc), homework title, my name + student number and the date. Besides that I ...
7
votes
1answer
395 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
267 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
1answer
517 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
10k 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
152 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
2answers
131 views

Controlling the exact positioning and size of individual glyphs

I'm typesetting a book using the memoir document class. The overall layout comes with a background image. This image incorporates space for the page numbers in the footer which looks like a slot ...
7
votes
1answer
898 views

Beautiful letterhead

How can I create a beautiful letterhead from the article class using say header or footer . I do not want to use letter class due to limitations. The letterhead should look outstanding.
7
votes
1answer
1k views

Remove the header of List of Listings

I'm using classichtesis and I would like to remove the header of List of Listings. Before posting here, I tried the following strategies: The command \renewcommand\lstlistlistingname{}, suggested ...
7
votes
1answer
787 views

fancyhdr overwrites my page numbering settings

\documentclass{mwrep} %page number on the end of chapter \makeatletter \let\ps@closing\ps@plain \makeatother %margins \usepackage{anysize} \marginsize{3cm}{3cm}{2cm}{2cm} \usepackage{lipsum} %mark ...
7
votes
1answer
177 views

The Title of Document Runs off the page, as part of header on page 3

Here's my preamble: \documentclass[11pt]{amsart} \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots. \geometry{letterpaper} % ... or ...
7
votes
1answer
9k views

How to 'center' 'page number' in beamer slides

When inserting page numbers into beamer slides, I usually use: \setbeamertemplate{footline}[page number] Then the page numbers will appear at bottom right. Is it possible to put the page numbers ...
7
votes
1answer
771 views

How can I horizontally align rows in fancyhdr?

How can I left-align the [multiple-row] text in the right portion of my header using fancyhdr? I have something like this \rhead{row 1\\row 2\\row 3} where the rows aren't the same length, and I ...
7
votes
1answer
176 views

include document title in memoir class header

Using memoir class on a (lengthy) document, I want to customise headers, however (having spent several hours of trial and error) I'm presently stumped when it comes to the nuances required. Can anyone ...
7
votes
1answer
303 views

Pushing text below an absolutely positioned box

I'm trying to create a document header, part of which is an absolutely positioned TikZ picture, and part of which is some text in a TikZ node. The northwest or northeast anchor of the node should be ...
7
votes
1answer
2k 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 ...
7
votes
1answer
3k views

\section and \subsection alternating in the header

Right now, I'm trying to finalize the layout of my diploma thesis - unfortunately I cannot figure out how to achieve the heading I want. I'm using the amsart document class and try to achieve the ...
7
votes
1answer
797 views

\thispagestyle{empty} with longtable

I have a longtable and landscape table that spans 3 pages. I don't want a page number to be displayed on any of these 3 pages. However, setting \thispagestyle{empty} just preceding the commencement of ...
7
votes
1answer
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
416 views

Use different chapter title in TOC, in the first chapter page, and in header

Say I have two titles t1 and t2 for a chapter. I want to show t1 in TOC, and t2 in the first chapter page as well as the in the header. I use \chapter[t1]{t2} which works for TOC and the first ...
7
votes
1answer
2k views

About moderncv footer

Is there any way I can turn off the footer from appearing in all but the last page of the CV? (and once again in the cover letter). Is a nice idea that even with just the first page they could call ...
7
votes
1answer
654 views

Cross reference in section title broken in header [duplicate]

I've tried searching and can't find this anywhere, but sorry if it's been asked before. I'm using the memoir class to write a thesis using LaTeX (which I'm fairly new to) and I've got a section in my ...
7
votes
1answer
274 views

Komascript style for empty page after page with `\part` title, or how to get page numbers there cleanly

My question is very similar to this question, and solutions there might work, but I'm using KOMA-script. I'd like page numbers on every page, including empty ones. To this end, I passed ...
7
votes
1answer
3k views

Change leftmark in fancyhdr

Can anyone tell me how, in the minimal example pasted below, I can achieve that the dot after Appendix in the header disappears? I understand that it is there because I simply made the number of the ...
7
votes
1answer
224 views

Patching a song environment

I'm having some fun with another songbook project, and this one has a particular feature: in the header, the range of song numbers is displayed, in order to ease the searching (similar to a ...
7
votes
1answer
317 views

Different content if command returns empty text (ConTeXt)

I have the following code in my ConTeXt environment: \startsetups[sectioninfo] \ss \rlap{\userpagenumber} \hfill § \getmarking[sectionnumber][current] \emspace \bf ...
6
votes
2answers
1k views

Section like heading with Tikz

I'm trying to make a new section-like heading with TikZ. I basically want it to look like this (nevermind the funky background): But I can only get something like this: In my LaTeX document I ...
6
votes
4answers
348 views

How to draw one thin and one thick line next to each other

How can we draw line depicted below in LaTeX? That is, a thin line and thick line with gap of height of thin line in between? Can you please suggest recommended class for same?
6
votes
2answers
537 views

page number in a diamond box

I have the following code I need to put the page number at the top of the page resulted in a diamond box. I would be grateful for any help or if you can indicate to me the code to generate it. ...
6
votes
2answers
2k views

Text before maketitle

My goal is to put text before \maketitle as well as on left side, and on the right. They should be on the same level. I've tried \begingroup -- doesn't work: \documentclass[a4paper,10pt, twoside, ...
6
votes
5answers
4k 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 ...
6
votes
3answers
3k views

Right align inside header

I have a header, prepared using fancyhdr. I would like the first row of the left header to be right-aligned with the second row of the left header. In the following MWE I would like "My City" to be ...
6
votes
2answers
15k 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} ...
6
votes
2answers
317 views

How to a put a repeated text in the left margin of a page, like a header or footer, but on the side

I'm trying to copy a stationery format which puts the return address in a small block in the middle of the left margin of the page, like a header, but on the side I've tried using the everypage ...
6
votes
3answers
133 views

A \cite{} as name for a chapter header

I'm writing a document where each chapter is a reading record of a paper. So I want the name of the chapter to be the title of the paper, and the header of the chapter to be the short citation of the ...
6
votes
4answers
4k 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 ...
6
votes
3answers
482 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
2answers
444 views

Suppress headers when page contains a section title using titlesec

I'm writing a book with titlesec and try to suppress headers containing the section name, when the section starts at the top of the respective page. Given that all my sections start on a new page I ...
6
votes
2answers
230 views

Package hyperref destroy \leftmark and \rightmark with KOMA

I noticed, when I use \usepackage{hyperref} the left and right marks are destroyed. One can verify this by uncommenting hyperref in MWE below. Without hyperref With hyperref ...
6
votes
1answer
16k views

Change the contents of footline in a beamer presentation

For my presentation, I am using Madrid theme; however, I'd like to change the contents of the footline. Currently, the footline shows, "short author" in the left, "short title" in the middle, and ...