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}, {scrlayer-scrpage}, and {titleps}.
4,349 questions
2
votes
2
answers
48
views
longtable breaks page headers (marks) when using titleps – headers stop updating after subsections
I am experiencing a persistent issue with page headers when using longtable.
Section and subsection titles normally appear correctly in the header, but as soon as a longtable is introduced, the header ...
1
vote
0
answers
50
views
Alignment of twoside book headers with images and passing dynamic content to variables
I am tasked with a very specific book design and have done this until now with Scribus but want to switch to LaTeX and try to get it done to learn it.
The design of the booklet is very specific, as it ...
1
vote
1
answer
46
views
Section specific \thepage and \numpages for an exam class document
I'm compiling past-year-questions of an examination into a question booklet and I've chosen to structure different years' question papers as different section contents of the exam class document.
In ...
2
votes
1
answer
112
views
How to precisely recreate a textbook page layout (Pattern Recognition and Machine Learning)
\documentclass{book}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{graphicx}
\setlength{\oddsidemargin}{\evensidemargin}
\reversemarginpar
\setcounter{chapter}{3}
\setcounter{section}{1}
\...
5
votes
2
answers
233
views
Correct section numbering in header using LaTeX
I have mostly been a Plain TeX user, but for collaboration purposes find myself having to use LaTeX.
In the LaTeXed book I am working on, I would like to have headers as described in the fourth ...
0
votes
1
answer
89
views
How to use the newspaper class in LaTeX for Bengali magazine formatting?
I am trying to create a Bengali magazine layout using the newspaper document class in LaTeX. However, I am facing a few problems.
Here are the issues I am struggling with:
(1). I cannot set the ...
2
votes
1
answer
83
views
How to place a headrule in ConTeXt?
I am attempting to create a headrule spanning the width of the text.
The ConTeXt document with which I am working is formed by two files:
(i) A main one, containing the code below:
\mainlanguage[en]
\...
2
votes
1
answer
95
views
voffset and bottom margin
I'm using the article class to prepare an exam. I want students to put their name and ID at the top of each page. Because the exams will be stapled, and then have the corner with the staple cut off so ...
3
votes
3
answers
228
views
How can I prevent resetting of page numbers in \mainmatter using scrbook?
When creating a book using scrbook I want to show no page numbers until the start of the main part of the book. I also want to use the conventions and use \frontmatter, \mainmatter and \backmatter.
...
2
votes
1
answer
56
views
Page number locations with fancyhdr while using titlesec
Messing around with titlesec was taking a look at this design. I wondered how it might look in a book I was writing, but I noticed that when I made it twoside with alternating page numbers in the ...
1
vote
2
answers
127
views
Issue with 2025 TeX Live version not displaying page header title for amsart [closed]
As title states, I'm having this issue where, using the amsart class, if I write a title like \title[Small Title]{Big, Long Title}, the Small Title, which should be appearing every two pages (with the ...
1
vote
2
answers
89
views
How to add a textbox in margin as an header in memoir class
I am using memoir class for my document for a project.
It requires to add some predefined text in even and odd pages, in the margins (except the first page) as shown in image bellow.
Is there any way ...
3
votes
1
answer
52
views
KOMA-Script (scrreprt): Show chapter title in header only from the second page onward (using scrlayer-scrpage)
I'm using the KOMA-Script class scrreprt together with scrlayer-scrpage for page headers and footers.
I’d like the following behavior:
On the first page of a chapter (or unnumbered chapters like the ...
1
vote
0
answers
37
views
Why does in the appendix the pageheader count wrongly? [duplicate]
I have reduced my book of 300+ pages to 6 pages. On page 3 the label on the pageheader ist correct: A.1 Werke für Tagfalter. On page 4 we find the new chapter titel: B Die Falter auf der Roten Liste. ...
0
votes
2
answers
103
views
Two lines in fancy header
I have seen some questions on similar subjects but can't find any solution to my simple problem. I need a header that spans two lines on its right side. I have more or less managed to do so by just ...