5
votes
Accepted
Page number after clearpage, definitely known?
No.
Consider:
\documentclass[10pt]{book}
\begin{document}
\frontmatter
\tableofcontents
\clearpage
\typeout{Page \thepage}
\mainmatter
\chapter{one}
\end{document}
The console output reports Page ii....
2
votes
Accepted
How to limit `\lastpageref` to current/local pagination scheme when using multiple schemes (of the same type) with `pageslts`?
You nearly got it with
\rfoot{\theCurrentPageLocal~of~\lastpageref*{pagesLTS.arabic.1}}
\rfoot{\theCurrentPageLocal~of~\lastpageref*{pagesLTS.arabic.2}}
\rfoot{\thepage~of~\lastpageref*{pagesLTS....
2
votes
Page number after clearpage, definitely known?
I think @cfr's answer does handle the question that was actually asked in the OP, but there's still some discussion in the comments regarding the use case at hand.
I suggested that a pair of ...
1
vote
Accepted
Trying to Turn Off TOC Subsection Page Numbers with \titletoc Application
The starred version of \titlecontents is used for setting content entries within a paragraph style and has the following form:
\titlecontents*{<section>}
[<left>]
{<above-code>}
...
1
vote
Create new counter and give it a specific value
The lastpage package does \gdef\lastpage@lastpage{??}, but if you want to use it for computations,
\usepackage{lastpage}
\makeatletter
\gdef\lastpage@lastpage{1}
\makeatother
sets it to one and at \...
1
vote
Page numbering 143/141
The current version of modern lastpage uses \AddToHook{enddocument/afterlastpage}{...}, thus there can be no pages after the label. If an old LaTeX format is used, lastpage falls back to \...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
page-numbering × 1918header-footer × 427
table-of-contents × 290
fancyhdr × 157
beamer × 95
numbering × 71
koma-script × 70
chapters × 65
margins × 58
titles × 58
hyperref × 55
memoir × 50
roman-numerals × 47
sectioning × 45
pdfpages × 42
formatting × 41
appendices × 39
floats × 37
cross-referencing × 37
page × 37
counters × 35
indexing × 33
thesis × 31
front-matter × 30
glossaries × 29