-
Notifications
You must be signed in to change notification settings - Fork 7
Page counter
Giorgio Garofalo edited this page Oct 4, 2024
·
1 revision
The .currentpage
and .totalpages
functions display, respectively, the current index (beginning from 1) of the page/slide the function call lies in and the total amount of pages/slides. They don't accept any argument.
They are unsupported in plain
documents, where the -
placeholder is shown instead.
Note
These functions return visual elements (nodes), not numbers. Hence, it is not allowed to do, for example, .sum {.currentpage} {3}
.
A page counter can be displayed on each page thanks to page margin content:
.pagemargin {bottomcenter}
.currentpage / .totalpages
- Syntax of a function call
- Declaring functions
- Dynamic typing
- Localization
- Including other Quarkdown files
- Importing external libraries
- Document metadata
- Theme
- Page format
- Page margin content
- Page counter
- Automatic page break
- Numbering
- Table of contents
- Stacks (row, column, grid)
- Align
- Container
- Box
- Collapsible
- Whitespace
- String
- Number
- Markdown content
- Boolean
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic