theme_typst: Typst-specific styles and options

View source: R/theme_typst.R

theme_typstR Documentation

Typst-specific styles and options

Description

Typst-specific styles and options

Usage

theme_typst(
  x,
  multipage = get_option("tinytable_typst_multipage", default = FALSE),
  figure = get_option("tinytable_typst_figure", default = TRUE),
  portable = get_option("tinytable_typst_portable", default = NULL),
  align_figure = get_option("tinytable_typst_align_figure", NULL),
  resize_width = get_option("tinytable_typst_resize_width", 1),
  resize_height = get_option("tinytable_typst_resize_height", default = NULL),
  resize_direction = get_option("tinytable_typst_resize_direction", default = NULL),
  ...
)

Arguments

x

A tinytable object.

multipage

Logical. When TRUE, emits a Typst show rule that allows figures to break across pages. When FALSE (default), tables are kept on a single page. When NULL, no show rule is emitted.

figure

Logical, whether to wrap the table in a Typst figure environment and block.

portable

Logical. Sets whether to create portable Typst output with base64-encoded local images embedded directly in the Typst code. Remote image URLs are not downloaded.

align_figure

Character string indicating horizontal alignment: "l", "c", or "r". Defaults to get_option("tinytable_typst_align_figure", NULL). When NULL, no figure-level alignment is emitted.

resize_width

Numeric value between 0.01 and 1.0 specifying the target width as a fraction of the available Typst layout width when resize_direction is specified.

resize_height

Numeric value between 0.01 and 1.0 specifying the target height as a fraction of the available Typst layout height. When specified, height controls the scaling and width scales proportionally.

resize_direction

Character string specifying how to resize tables. Options are: "down" to shrink oversized tables, "up" to expand undersized tables, and "both" to always scale to the target size.

...

Additional arguments.


tinytable documentation built on June 27, 2026, 1:06 a.m.