-
Notifications
You must be signed in to change notification settings - Fork 7
Page margin content
The .pagemargin
function displays content on each page, in a fixed position along its margins.
-
In
paged
documents, a special area of each page is reserved for margins:Credits: Paged.js
-
In
plain
andslides
documents, content set on margins could potentially overlap page content. -
In
plain
documents, where the concept of page does not exist, page margins are displayed once per document.
The function accepts an optional position
and a body argument content
:
Parameter | Description | Accepts |
---|---|---|
position |
Page area to target. |
topleftcorner , topleft , topcenter (default), topright , toprightcorner , righttop , rightmiddle , rightbottom , bottomrightcorner , bottomright , bottomcenter , bottomleft , bottomleftcorner , leftbottom , leftmiddle , lefttop
|
content |
Element to display. | Block content |
.pagemargin {topright}
**This** is a margin content.
(todo: result image)
Most layout themes associate the bottomcenter
margin to the document footer, and style it differently - for instance, different blocks may be displayed in a row.
The .footer
function is a shorthand for .pagemargin {bottomcenter}
.
.footer
.docauthor
**.docname**
[GitHub](https://github.com/iamgio/quarkdown)
(todo: result image)
A page margin can be used as a page counter: see Page counter.
- 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