A typst plugin for unit-aware calculations
typst

Bump version

authored by vidyasagarv.com and committed by

Vidya Sagar VOBBILISETTI 7f8096fc ee0763f1

+7 -6
+2 -1
README.md
··· 38 39 ## Plans 40 - Add [rink](https://github.com/tiffany352/rink-rs/) as a backend, gives preference to unit over operation unlike fend. 41 - - Use [unify](https://github.com/ChHecker/unify) to format input and output.
··· 38 39 ## Plans 40 - Add [rink](https://github.com/tiffany352/rink-rs/) as a backend, gives preference to unit over operation unlike fend. 41 + - Use [unify](https://github.com/ChHecker/unify) or [zero](https://github.com/Mc-Zen/zero) to format input and output. 42 + - Check out [numr](https://github.com/nasedkinpv/numr)
+4 -4
tests/examples.typ
··· 1 - #import "@local/evaltor:0.1.0": print_eval 2 3 #show heading: it => { 4 it.body 5 v(1pt) 6 } 7 - #set text(size:16pt) 8 9 = Evaltor: Typst plugin for unit-aware calculations 10 11 - The function `print_eval` will print the input along with its result, calculated using `fend` backend, which is unit-aware. 12 13 Some examples: 14 ··· 24 25 #print_eval("0xffff to decimal") 26 27 - #print_eval("100 C to F") 28 29 #print_eval("1 lightyear to parsecs") 30
··· 1 + #import "@local/evaltor:0.2.0": print_eval 2 3 #show heading: it => { 4 it.body 5 v(1pt) 6 } 7 + #set text(size: 16pt) 8 9 = Evaltor: Typst plugin for unit-aware calculations 10 11 + The function `print_eval` will print the input along with its result, calculated using `fend` backend, which is unit-aware. 12 13 Some examples: 14 ··· 24 25 #print_eval("0xffff to decimal") 26 27 + #print_eval("100 °C to °F") 28 29 #print_eval("1 lightyear to parsecs") 30
+1 -1
typst.toml
··· 1 [package] 2 name = "evaltor" 3 - version = "0.1.0" 4 entrypoint = "src/lib.typ"
··· 1 [package] 2 name = "evaltor" 3 + version = "0.2.0" 4 entrypoint = "src/lib.typ"