Uses Unicode superscripts and subscripts to format a fracture.

frac_style(fracture, ...)

Arguments

fracture

A fracture or a vector to be passed to fracture().

...

Additional arguments passed to fracture().

Value

fracture with numerators formatted with Unicode superscripts and denominators formatted with Unicode subscripts.

Examples

frac_style(fracture(0.5))
#> [1] "¹/₂"
frac_style(fracture(c(0.5, 1.5), mixed = TRUE))
#> [1] "¹/₂"   "1 ¹/₂"