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

4
votes
1answer
3k views

How to make (force) line-break in Chapter Title (in ToC, Chapter, Header) - if possible?

I've found how to make different text for Title appearing in ToC, Chapter and headers Chapter title in header too long : \chapter[medium-length title for TOC, if wanted]{full title name} ...
4
votes
1answer
307 views

Let title distinct in mainmatter and TOC and header

Title in mainmatter (long title): Sec.1 The introduction of TEX --- A powerful typsetting system blabla... Sec.2 installation blabla... Title in TOC (short title, line break before em ...
4
votes
2answers
1k views

How do I add a Page X of Y in a KOMA-script class?

I saw the answers to a similar question, but the accepted answer won't take effect in a KOMA-script class. \usepackage{lastpage} ... \cfoot{\thepage\ of \pageref{LastPage}} I am using scrartcl ...
3
votes
1answer
6k 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} ...
2
votes
1answer
46 views

Iteratively define Header/Footer

I wrote a LaTeX document (approx. 50 pages) with 2 classmates together. Now i want to show who wrote which part in at the top right of each page. For example at page 2-15 will be my name at the top ...
2
votes
1answer
213 views

titlesec: toptitlemarks and bottitlemarks broken when \section not called explicitly

This question is linked to my previous chapter-and-verse-in-header question I am trying to produce a Bible text where the Chapter and Verse references appear in the header of each page. As can be ...
1
vote
1answer
409 views

How to write custom footer for some pages

I am using fancyhdr to hide header and footer in some pages but I also want to write custom footers for certain pages. Is there an easy way to do it? Or is there any way to put define text in the ...
11
votes
3answers
177 views

Can I hook into the end of the document but *after* the `\clearpage`?

The code for \enddocument begins: \def\enddocument{% \let\AtEndDocument\@firstofone \@enddocumenthook \@checkend{document}% \clearpage \begingroup I'd like to put something after ...
7
votes
1answer
1k views

How to tell if the current section is defined in Beamer?

I am customising the footer of my Beamer slides. The footer displays the title of the slides, followed by a ":", and then the current section title. This works fine if the current section is defined. ...
7
votes
4answers
5k views

How to change the formatting/font of page numbers?

So, I'm using the article class, and I'd like to make the page number smaller, and set it in a different font. I don't need to create a new pagestyle, necessarily, and I'm hesitant to do so without ...
6
votes
4answers
89 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: ...
6
votes
1answer
395 views

Hyperlinked sectionnames in fancyheader

I am trying to create a header that consist of chaptername and sectionname (chaptername:sectionname) both of them a hyperlink to chapter and section respectively. I am using Hungarian language so ...
4
votes
1answer
5k views

fancyhdr: Section number, Section, colon and subsection in header

I am a bit confused with the fancyhdr options. I currently have this style for my headers: MWE: \documentclass[12pt,oneside]{book}%use oneside to ensure no blanks\ \usepackage[text={5.45in,8.5in}, ...
4
votes
1answer
2k views

Problem with multiple fancyheader page styles

I want to use multiple fancyheader styles in my document. I've run into a problem that seems to be a bug to me. The code below doesn't compile with latex; it seems stuck in an infinite loop. ...
4
votes
1answer
619 views

Separate table of appendices - pdf bookmarks & avoid previous chapter's format

I'm trying to format my thesis which requires a seperate list of appendices. Thanks to a really useful post - Creating a separate list of appendices with tocloft - I have the list up and running. I'm ...
4
votes
2answers
972 views

How to change the position of the page number in the first page of every chapter of a book?

I am using the book.cls and I want that the page number of the first page (only the first page) of every chapter be at the bottom and on the right. And page numbering of the other pages remain intact. ...
4
votes
2answers
2k views

titlesec versus titling; mangling \thetitle

I want to have the chapter name and title of the document appear in the header; I know how to do that with fancyhdr and titling, one of the miscellaneous functions of the latter is to preserve the ...
3
votes
1answer
312 views

Nomenclature header problems

I'm writing a document in book class, using the fancyhdr package. I have both an index, and a symbol list, for which I use the imakeidx and nomencl packages. I had problems with getting the right ...
3
votes
3answers
7k 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 ...
3
votes
2answers
2k views

Fancyhdr footer not working on pages where a chapter does not begin

I'm using fancyhdr to put a text and page number on every page: \usepackage{fancyheadings} \fancypagestyle{plain}{ \fancyhf{} \lhead{section \bfseries \thesection} \chead{CS04-708 Main Project, ...
3
votes
2answers
3k 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"?
3
votes
1answer
884 views

Date on the bottom of the page without drafting option in ClassicThesis

I'm using classicthesis to write my document. I don't use the option drafting but I can see on the bottom of the page the date (there is a part of the date that is not readable, but when I copy and ...
2
votes
1answer
56 views

\pagestyle{headings} causing \hbox warning due to long chapter name

I am being prompted with the following error while using \pagestyle{headings} on a book class LaTeX document: Overfull \hbox (240.44835pt too wide) has occurred while \output is active ...
2
votes
1answer
116 views

wrong header in bibliography (classicthesis)

I'm using classicthesis and have a problem with the header of my bibliography: instead of small caps I receive normalfont letters. I don't know how to make a reproducible MWE, because when I load a ...
2
votes
2answers
139 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 ...
2
votes
1answer
61 views

Problems with footer and header and pagenumbering

My problem is, that all my footers and headers are gone now :( and the pagenumber. Here the code: \documentclass{article} \pagestyle{empty}% for cropping \usepackage{microtype} \begin{document} ...
2
votes
1answer
116 views

Numerous titles and headers

I want more than one title for each topic in one document, I don't want to just combine two or three pdfs. And I want to show different headers starting from each title page. There's one problem I ...
2
votes
1answer
4k 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 ...
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 ...
2
votes
1answer
460 views

Why \hyperlink{\rightmark}{} does not work in fancyhead (and inside some other macros)?

\fancyhead[LO,RE]{\hyperlink{\rightmark}{\bfseries\rightmark}} (\leftmark is all the same) cause error: TeX capacity exceeded, sorry [input stack size... Why? (here, \rightmark has double ...
2
votes
1answer
1k views

How to get header and footer over ToC, LoF and Nomeclature?

I would like to know how we include header and footer over Table of Contents, List of Figures and Nomenclature? Do we need to renew any command? or any package is used to do that? Sample script would ...
2
votes
2answers
832 views

fancyhdr with image and flowing text

I want to add a flipbook to my document. Everything seems to work (adding the write pictures. The only thing I'm looking for is making the text flow on every page around the image inserted with ...
2
votes
1answer
5k views

No page numbering for the table of contents

How do I skip numbering until the beginning of chapter 1 with scrbook? I'm using something alone the lines of \begin{document} \pagestyle{empty} \pagenumbering{none} \maketitle \tableofcontents ...
1
vote
2answers
159 views

Problems with header and footer in documentclass book

I tried to use a header and footer layout I found here on this website. But I have some problems with changing the code to what I want. I want the pagenumbering to be like page x of y in the footer. ...
1
vote
0answers
173 views

Overflow in LaTeX scrbook Header [duplicate]

Possible Duplicate: How can I display a short chapter name in the header and a long chapter name in the TOC? I do the typesetting for a book. There are large chapter and section headers, so ...
1
vote
1answer
1k views

How to remove vertical space between header and body of text?

I'm writing a Statement of Purpose, in which I've opted to leave out the title altogether, and instead put the details of myself (name, program etc) in the header. While this works fine, I have ...
0
votes
1answer
72 views

Landscape and header formatting [duplicate]

Hello I am really new at this. I am trying to represent a .pdf with the following specifications: -a4 papper -orientation: landscape -Special header with three divisions -after header divide in 4 ...
0
votes
1answer
2k views

How to insert footer in first pages of chapter?

I am using fancyhdr to make header and footer for pages. In the minimal example the footer is not appearing in the first page of chapter. I want footer to be appear in the first pages of the chapter ...
11
votes
2answers
2k views

Alternatives to the horizontal line in fancyhdr

I'm looking for a more fancy alternative to the default (read boring) horizontal line produced under the fancyhdr package. How creative can we get?
18
votes
2answers
17k 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
6k views

Customizing moderncv numbering pages style

So, I was doing something like this: \cfoot{\color{color2}\itshape John~~Doe} to get my name centered on bottom of each page. Now I'd like to have it in one line with page number. Now it looks like ...
6
votes
1answer
497 views

Code improvement and suggestions in template

Consider the following MWE: \documentclass[12pt,twoside,letterpaper]{report} \usepackage[text={4.95in,7.5in},centering,bottom=1.5in,showframe]{geometry} \usepackage[dvipsnames]{xcolor} ...
4
votes
1answer
357 views

Reproduction of Word Report Template in LaTeX

I am trying to reproduce a word report template in LaTeX to speed up my report writing. I have some basic LaTeX skill, but I am having trouble producing the blue page border as shown in the picture. ...
16
votes
1answer
790 views

Displaying the range of sections on the page in the header

I would like to have on each page the range of sections covered by it displayed, opposite of the page number and accompanied by the name of the first new section (if there is a new one) starting on ...
11
votes
3answers
1k views

Customize headers without fancyhdr

I have strange, old book chapter to rewrite in LaTeX. The most iritating thing is the header. On odd pages the header should consist of the section name etc. But the problem is that if the page starts ...
8
votes
2answers
370 views

A pagestyle with note taking area on the verso page

Is there a way to create a pagestyle wich forces all of the content of a document to the recto pages and show a "note taking area" on the verso pages?
7
votes
1answer
378 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 ...
6
votes
2answers
425 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. ...
5
votes
1answer
4k views

Modify Beamer's outer theme smoothbars [duplicate]

I am making a beamer presentation with XeTeX, in which I am using Ilmenau theme. This theme has by default smoothbars as an outer theme. My problem that in a section's subsection, there are a lot of ...
4
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} ...