-
-
Notifications
You must be signed in to change notification settings - Fork 220
Sizes
Giorgio Garofalo edited this page Feb 16, 2025
·
3 revisions
Many functions accept sizes as arguments. This page explains the correct format to define them.
When a Size value is required, strings with a numeric value (either integer or floating point) and a unit suffix are accepted.
Supported units:
-
pxpixels; -
ptpoints; -
cmcentimeters; -
mmmillimeters; -
ininches; -
%percentage (relative to parent).
Examples of accepted values are: 12px, 2cm, 5.3in, 30%.
Units can be omitted. In that case, px is used.
Some other parameters require a group of sizes, also known as Sizes.
This is required, for example, by .pageformat's margin parameter, and allows setting up to four different values for each side of a rectangle.
Its format is the same as CSS, with three different ways to express a size group:
-
Single value: a single
Sizevalue applied to all sides (e.g.8px); -
Vertical/horizontal: two
Sizevalues, separated by a space, applied to top-bottom and left-right, respectively (e.g.2cm 15mm); -
TRBL: four
Sizevalues, separated by a space, respectively assigned to top, right, bottom and left sides (e.g.2.1in 4cm 2px 2cm).
- 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