s

slashion

@preview

Fractions with slash.

v0.1.1
MIT

Package Information

Last Updated
Authors
sjfhsjfh
Categories
layout

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/slashion:0.1.1

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/slashion:0.1.1": *

Version History

0.1.1
b709cdb51485...
0.1.0
80f657842d0b...

Slashion

You might not like the inline fraction displayed in a vertical layout. Just use Slashion to convert it to a slash fraction.

#import "@preview/slashion:0.1.1": slash-frac
#show math.equation.where(block: false): slash-frac

You may also use it solely

#import "@preview/slashion:0.1.1": slash-frac as sfrac
$sfrac(1/2)$, $sfrac(3, 4)$ or even $sfrac((5 + 6) / 7 + 8)$ are acceptable.

Notice

  1. This function converts only the outermoest fraction.
  2. This function has an option to turn off the auto parenthesizing feature: slash-frac.with(parens: false)