-
-
Notifications
You must be signed in to change notification settings - Fork 112
Caption position
Giorgio Garofalo edited this page May 25, 2025
·
2 revisions
The .captionposition
[docs] function allows globally setting the position of captions, relative to the element they describe.
This applies to:
- Figures
- Figure Markdown extension
.figure
- Mermaid diagrams and derivatives (e.g. XY charts)
- Tables
The function's primary parameter is called default
, which sets the global style for all kinds of captioned elements.
Additional parameters figures
and tables
override the default position for those specific categories.
Each parameter is optional and accepts top
/bottom
values.
By default, documents use .captionposition {bottom}
.
.captionposition {bottom}

| Name | Favorite food | Favorite beverage |
|------|---------------|-------------------|
| John | Chicken | Orange juice |
| Jane | Pasta | Iced tea |
| Joe | Sushi | Beer |
"Survey results."

.captionposition {top}

.captionposition {bottom} tables:{bottom}

Photo credits: Pixabay
- Figures
- Image size
- TeX formulas
- Table caption
- Decorative headings
- Alerts (quote types)
- Quotation source
- Page breaks
- Text symbols (text replacement)
- Syntax of a function call
- Declaring functions
- Dynamic typing
- Including other Quarkdown files
- Importing external libraries
- Localization
- Document metadata
- Theme
- Page format
- Page margin content
- Page counter
- Automatic page break
- Numbering
- Paragraph style
- Caption position
- Table of contents
- Stacks (row, column, grid)
- Container
- Align
- Float
- Figure
- Clip
- Box
- Collapsible
- Whitespace
- Variables
- Optionality
- Math
- Conditional statements
- Loops
- Let
- Destructuring
- String manipulation
- Table manipulation: sorting, computing, and more
- Generators
- String
- Number
- Markdown content
- Boolean
- None
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic
- Paper: abstract, definitions, theorems, and more