Skip to content

Page margin content

Giorgio Garofalo edited this page Jun 18, 2025 · 6 revisions

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:

    Paged margin areas

    Credits: Paged.js

  • In plain and slides 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.
Page margin

Footer

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)
Page footer

Page counter

A page margin can host a page counter: see Page counter.

Clone this wiki locally