Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use thin for the space between values and units #43

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ The following limitations are also annotated in the [document][latest-release].
- [x] ~LaTeX arrays (i.e., matrices without fences) are unavailable, but it's easy to get them with the `grid` function.
For math mode, it would be nice to add a new option `""` for `delim` of the `mat` function.~
It's actually available with `$mat(delim: #none, ..)$`.
- [ ] ~No idea with spacing between values and units. It would be really great to have something like [siunitx].~
There are in fact some amazing Typst ports of siunitx, such as [metro] and [unify].
- [x] ~No idea with spacing between values and units. It would be really great to have something like [siunitx].~
The space between values and units can be `thin` (`\u{2009}`), as mentioned in [#17].
There are also some amazing Typst ports of siunitx, such as [metro] and [unify].

## License

Expand All @@ -51,6 +52,7 @@ If you create a pull request, make sure to observe the following rules:
[#2]: https://github.com/johanvx/typst-undergradmath/issues/2
[#10]: https://github.com/johanvx/typst-undergradmath/issues/10
[#16]: https://github.com/johanvx/typst-undergradmath/pull/16
[#17]: https://github.com/johanvx/typst-undergradmath/issues/17
[`stylistic-set` of the `text()` function]: https://typst.app/docs/reference/text/text/#parameters-stylistic-set
[Conventional Commits]: https://www.conventionalcommits.org/en/v1.0.0/
[Like undergradmath]: https://gitlab.com/jim.hefferon/undergradmath/-/blob/5b19eff74454f7c71664f85e8042d7b30fcf9cfb/LICENSE
Expand Down
4 changes: 2 additions & 2 deletions undergradmath.typ
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,8 @@ The last three here are display style.
f: RR -> RR
```
],
[$ 9.8 "m/s"^2 $],
[`9.8 "m/s"^2` @tricky],
[$ 9.8 thin "m/s"^2 $],
[`9.8 thin "m/s"^2` @tricky],
[$ lim_(h->0) (f(x+h)-f(x))/h $],
[
```
Expand Down
Loading