Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Latest commit

 

History

History

quick-maths

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

quick-maths

A package for creating custom shorthands for math equations.

Warning

This repository has been archived. The package has been moved to the EpicEricEE/typst-quick-maths repository.

Usage

The package comes with a single template function shorthands that takes one or more tuples of the form (shorthand, replacement), where shorthand can be a string or content.

#import "@preview/quick-maths:0.1.0": shorthands

#show: shorthands.with(
  ($+-$, $plus.minus$),
  ($|-$, math.tack),
  ($<=$, math.arrow.l.double) // Replaces '≤'
)

$ x^2 = 9 quad <==> quad x = +-3 $
$ A or B |- A $
$ x <= y $

Result of example code.