{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
228 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
1answer
314 views

How to disable the header at any page in ConTeXt?

I haven't written an article since I paid my attention to ConTeXt. Now it is a chance to do it. I have tried to set the header, but failed. The structure of this article is like this: ... title ...
7
votes
2answers
1k 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
287 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
473 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
383 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
9k views

Chapter title on even header and section title in odd header

I wanted to put the title of the chapter on even header and the title of the section of the chapter to the odd pages. My headers are now are using this code: \begin{document} \frontmatter % Use ...
7
votes
1answer
512 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
700 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
441 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
532 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
967 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
14k 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
399 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
276 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
2k 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 ...
7
votes
1answer
527 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
2k 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
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
160 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
134 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
917 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
797 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
180 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
777 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
190 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
202 views

Newsletter Formatting

First post here but I'm trying to create a newsletter. However, I'm having some difficulties. I want it to look similar to this example: http://www.calvin.edu/admin/hr/newsletter/MAY%202012%20(e).pdf ...
7
votes
1answer
316 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
826 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
439 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
713 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
303 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
225 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
318 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
358 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
557 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
1answer
12k views

Increase height of fancyhdr header

How would one increase the height of the \fancyhead{} so that the text in the main body, doesn't collide with the title? I have the following MWE: \documentclass[a4paper,10pt,oneside]{article} ...
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} ...