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}.
61 questions from the last 365 days
0
votes
1
answer
38
views
Switch option 'headinclude' in KOMA-Script by pagestyle
In a KOMA document I toggle the headings
\KOMAoptions{headinclude=on}
\KOMAoptions{DIV=last}
It works.
But I need to create a custom style where this heading is not taken into account.
I can create a ...
1
vote
0
answers
49
views
Change headsepline for KOMAscript
How can I control the output of headsepline in KOMAscript?
I need the line to be broken in the middle
Attempt to control the output via
\renewcommand*{\headsepline}{%
\makebox[\textwidth]{%
\rule{...
3
votes
1
answer
56
views
Index in scrbook gets an (unwanted) index title
The index, generated with scrbook, shows the index-title as page header. In scrartcl it does not.
In a real world (complex) situation, the title appears only, if the index comprises exactly 2 pages. ...
2
votes
2
answers
51
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
56
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
48
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
127
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
241
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
93
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
87
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
117
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
232
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
58
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
129
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
91
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 ...