Skip to content

Commit

Permalink
feat: add script letters
Browse files Browse the repository at this point in the history
Getting script letters akin to `$\mathscr(P)$` is actually possible in Typst. It consists of changing the `stylistic-set` of the `text()` function to swap out the normal calligraphic set unicode range.

Which set that is, depends on the font used. In this case it's 1.
Adding this sentence would offset the footer and move it to a third page but I propose just removing the `unavailable` annotation as it is no longer needed after this and puts everything neatly back into two pages.
  • Loading branch information
xkevio authored Feb 18, 2024
1 parent 65542d7 commit 4b50f58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion undergradmath.typ
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ Use as in `$cal(A)$`.

$ 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) $

Getting script letters is @unavailable.
#show math.equation: set text(stylistic-set: 1)
Get script letters, such as $cal(P)$ from `$cal(P)$`, by changing the `stylistic-set` parameter of `text()` to the corresponding set.

= Greek
#align(center, table(
Expand Down

0 comments on commit 4b50f58

Please sign in to comment.