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,359 questions
2 votes
0 answers
29 views
Section headers disappear in TeXLive 2026
My code snippets: \renewcommand{\chaptermark}[1]{\markboth{\scshape\chaptername\ \thechapter. #1}{}}% \renewcommand{\sectionmark}[1]{\markright{\scshape\S\thesection. #1}}% worked just fine in ...
2 votes
1 answer
57 views
Include header with logo, and footer with page number, in class meetingmins
Please help me to include a header and footer in the meetingmins class. I want to right-align a logo, and have page x of y at the bottom of the page. In addition, I want the logo on the first page ...
0 votes
1 answer
18 views
add image to footline only in beamer titleframe
Hi I'm working on a beamer presentation and I already have a somewhat modified \titlepage and setting, to this I would ideally need to add an image to the footline; however, after a few experiments ...
4 votes
2 answers
103 views
landscape success, but page numbering and footer still in portrait mode
My wish List: I want. for footer starts from page 2 (landscape) it has : © Arrohmah Bogor 2026 (on the bottom left) aligned to margin. 0580/02/UT/2026 on the bottom centre starts from page 2 to 5, (...
3 votes
1 answer
47 views
lfoot positioning with tikzpicture
I was following a thread on how to add images to header/footer of a document class article. I found a pretty neat solution for the header which spans the entire paperwidth as I need to do. However, I ...
6 votes
2 answers
156 views
luadraw in footer
When trying to put a luadraw environment in a footer I obtain the following error Argument of \luacode@grab@lines has an extra }. Is there any workaround? If needed, I can consider using \...
1 vote
1 answer
35 views
Issue with lslisting "leaking" in header [closed]
I have code snippets in my document, which I present using the listings package. Specifically, I want the code to be in \ttfamily. However, it seems that the lstlisting environments “leak” into the ...
0 votes
1 answer
44 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
56 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
62 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
57 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
60 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
51 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
146 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
263 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 ...