From 7babf016af4334c4b59ef1f98ab65c1c2227b8d3 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> Date: Wed, 12 Apr 2023 20:06:05 +0800 Subject: [PATCH 1/2] feat: update code example for `\varnothing` --- undergradmath.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/undergradmath.typ b/undergradmath.typ index 7f03cad..ff51fb8 100644 --- a/undergradmath.typ +++ b/undergradmath.typ @@ -168,7 +168,7 @@ Getting script letters is @unavailable. cell($subset$, `subset`), cell($bb(Q)$, [`QQ`, `bb(Q)`]), cell($not$, `not`), cell($subset.eq$, `subset.eq`), cell($bb(N)$, [`NN`, `bb(N)`]), cell($or$, `or`), cell($supset$, `supset`), cell($bb(C)$, [`CC`, `bb(C)`]), cell($and$, `and`), - cell($supset.eq$, `supset.eq`), cell($Ø$, [`Ø`@tricky]), cell($tack.r$, `tack.r`), + cell($supset.eq$, `supset.eq`), cell($diameter$, [`diameter`]), cell($tack.r$, `tack.r`), cell($in$, `in`), cell($nothing$, `nothing`), cell($models$, `models`), cell($in.not$, `in.not`), cell($alef$, `alef`), cell($without$, `without`), )) From a8b7ea26ad966304529e93559b59419dcb316612 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> Date: Wed, 12 Apr 2023 20:07:57 +0800 Subject: [PATCH 2/2] feat: update comment to `\varnothing` --- undergradmath.typ | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/undergradmath.typ b/undergradmath.typ index ff51fb8..b32bdc5 100644 --- a/undergradmath.typ +++ b/undergradmath.typ @@ -188,10 +188,15 @@ Get the set complement $A^(sans(c))$ with `A^(sans(c))` (or $A^(complement)$ wit // The Math fonts provide the character \varnothing, an alternative to \emptyset, // through Character Variant cv01. The fontsetup package provides the option // 'varnothing' to easily switch to the alternative character. -// -/ Remark: The character $Ø$ from `\varnothing` in #LaTeX is an alternative character of $nothing$ from `nothing` in Typst (`\emptyset` in #LaTeX). - See the Version 3.93 section of README at #link("https://www.ctan.org/tex-archive/fonts/newcomputermodern"). - You can create the `\varnothing` character with a `let` binding using specific fonts. + +// https://mirrors.sustech.edu.cn/CTAN/fonts/newcomputermodern/doc/newcm-doc.pdf +// The NewComputerModern FontFamily §13.3 +// The Math fonts provide the character \varnothing (⌀, U+2300), as an alternative to \emptyset (a slashed zero), through Character Variant cv01. +// The fontsetup package provides the option ‘varnothing’ to easily switch to the alternative character. + +/ Remark: Using `diameter` for `\varnothing` may cause some confusion. However, #LaTeX also uses $diameter$ (`\u{2300}`) instead of $\u{2205}$ (`\u{2205}`), see #link("https://mirrors.sustech.edu.cn/CTAN/fonts/newcomputermodern/doc/newcm-doc.pdf")[newcm $section$13.3]. + Another solution is to use `text(font: "Fira Sans", nothing)`, but the resultant glyph $text(font: "Fira Sans", nothing)$ is subtly different from the widely used one. + Ultimately, The choice is always *your decision*. = Decorations #align(center, table(