as_typst {emphatic}R Documentation

Render an emphatic object to typst

Description

Render an emphatic object to typst

Usage

as_typst(x, ..., font_size = 10, font = NA, line_spacing = 0.3)

Arguments

x

emphatic object

...

other arguments passed to as.character.emphatic()

font_size

font size in points. default: 10

font

name of font. Default: NA means to just use the default raw font

line_spacing

line spacing in em units. Default: 0.3

Value

Character string containing typst representation

Examples

hl_diff("hello", "there") |>
  as_typst() |>
  cat()

[Package emphatic version 0.1.8 Index]