Skip to content

Commit 15343ab

Browse files
committed
feat: use scr for script letters in math mode
`scr` is first added in typst v0.14.0. See https://typst.app/docs/reference/math/variants/#functions-scr for more information.
1 parent 7e990d1 commit 15343ab

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ The following limitations are also annotated in the [document][latest-release].
1313
- [x] ~Script letters, such as $\mathscr{P}$ form `\mathscr{P}`, are unavailable.~
1414
It's possible to get script letters like $\mathscr{P}$ from `cal(P)` by changing the [`stylistic-set` of the `text()` function].
1515
The stylistic set to apply is font-specific, so it's necessary to consult the font to know which set is desired.
16+
As from `typst v0.14.0`, $\mathscr{P}$ can be easily obtained with `scr(P)`.
17+
See `scr` for more information.
1618
- [x] ~Greek letter $\varsigma$ `\u{03C2}` from `\varsigma` is not defined as a symbol and should probably be defined as `sigma.alt`.~
1719
`sigma.alt` is available as from `typst v0.5.0`.
1820
- [x] $\emptyset$ from `\emptyset` is available in Typst as `nothing`, while $\varnothing$ from `\varnothing` is not.

undergradmath.typ

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ Use as in `$cal(A)$`.
154154

155155
$ cal(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) $
156156

157-
#show math.equation: set text(stylistic-set: 1)
158-
Get script letters, such as $cal(P)$ from `$cal(P)$`, by changing the `stylistic-set` parameter of `text()` to the corresponding set.
157+
// #show math.equation: set text(stylistic-set: 1)
158+
// Get script letters, such as $cal(P)$ from `$cal(P)$`, by changing the `stylistic-set` parameter of `text()` to the corresponding set.
159+
Get script letters by using `scr`, such as $scr(P)$ from `$scr(P)$`.
160+
See #link("https://typst.app/docs/reference/math/variants/#functions-scr")[`scr`] for more information.
159161

160162
= Greek
161163
#align(

0 commit comments

Comments
 (0)