Vector
primitive in one place.
Exports
The package exports the following values.Doc and DocPage are the declarative API. Document and Page are the low level API.
Color is the color utility, Theme and create_theme build themes, and Vector with
vector are the spatial primitive. available_formula_fonts and default_formula_font
describe the math fonts for LaTeX. The remaining names are the element classes used by the
low level API.
Type exports
All of the following are exported as types.Page sizes
page_size accepts a named size or "Custom". The named sizes are measured in points.
| Name | Width (pt) | Height (pt) |
|---|---|---|
| A4 | 595.28 | 841.89 |
| Letter | 612 | 792 |
| Legal | 612 | 1008 |
custom_dimensions for any other size.
Vector
Vector is the spatial primitive for positions and sizes, and vector(x, y) is a
convenience constructor. After build, elements expose get_position(), get_size(), and
get_bbox().
For LLMs
The package ships anllms.txt API map at its root. It is a single file that lists every
exported type and signature, intended for code generation.
Color
Build a color from one input form and convert it to any other.
Introduction
How the declarative and low level APIs relate.