Frackable:0.1.0 - Vulgar Fractions

17271728109346603224050432307452

#import "@preview/frackable:0.1.0": *

#frackable(1, 2)
#frackable(1, 3)
#frackable(9, 16)
#frackable(31, 32)
#frackable(0, "000")
7 Likes

Great stuff. I think if I were to use it, I would add this alias (for more compact math equations, if it is intended to be used in math mode as well):

#let f = frackable

Fracking awesome :100:/:100:

(this wouldn’t work, f is always the actual character in maths mode. In my template I called it ifrac for ‘inline fraction’)

#import "@preview/frackable:0.1.0": *
#let f = frackable
$x = #frackable(1, 2), x = #f(1, 2)$

image

The problem is that (1) apparently you can’t use frackable() without # in math mode (which usually not the case) and (2) without # f() will still output the math font f() (instead of calling the f function alias).

Yeah it’s very dependent on the font

Unicode fractions like this aren’t really intended for use in math