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.12. Import in your Typst file
Add this to your .typ file:
#import "@preview/slashion:0.1.1": *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
- This function converts only the outermoest fraction.
- This function has an option to turn off the auto parenthesizing feature:
slash-frac.with(parens: false)