-
-
Notifications
You must be signed in to change notification settings - Fork 212
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 , topright , toprightcorner , righttop , rightmiddle , rightbottom , bottomrightcorner , bottomright , bottomcenter , bottomleft , bottomleftcorner , leftbottom , leftmiddle , lefttop , topoutsidecorner , topoutside , topinsidecorner , topinside , bottomoutsidecorner , bottomoutside , bottominsidecorner , bottominside
|
content |
Element to display. | Block content |
.pagemargin {topright}
**This** is a margin content.

Along with fixed positions, such as topright
or bottomleft
,
there is also support for mirror positions, which adapt based on whether the page is left (even number) or right (odd number).
Mirror positions are marked in italics in the table above,
and refer to outside
and inside
areas:
.pagemargin {topoutside}
**This** is a margin content.

Although they are primarily designed for paged
documents,
mirror positions are also supported in slides
ones.
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. Footers are particularly used in slides
documents.
The .footer
function is a shorthand for .pagemargin {bottomcenter}
.
.theme {beaver} layout:{beamer}
.footer
.docauthor
**.docname**
[GitHub](https://github.com/iamgio/quarkdown)

A page margin can host a page counter: see Page counter.
- Figures
- Image size
- TeX formulae
- Table caption
- Code caption
- Decorative headings
- Alerts (quote types)
- Quotation source
- Cross-references
- Page breaks
- Text symbols (text replacement)
- Emojis
- Document metadata
- Theme
- CSS
- Fonts
- Page format
- Page margin content
- Page counter
- Persistent headings
- Automatic page break
- Numbering
- Paragraph style
- Caption position
- Table of contents
- Bibliography
- Footnotes
- Stacks (row, column, grid)
- Container
- Align
- Float
- Figure
- Clip
- Box
- Collapsible
- Landscape
- Whitespace
- Variables
- Optionality
- Math
- Conditional statements
- Loops
- Let
- Destructuring
- String manipulation
- Table manipulation: sorting, computing, and more
- Table generation
- String
- Number
- Markdown content
- Boolean
- None
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic
- Paper: abstract, definitions, theorems, and more