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: update the example and comment about \varnothing #16

Merged
merged 2 commits into from
Apr 12, 2023
Merged
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
15 changes: 10 additions & 5 deletions undergradmath.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
))
Expand All @@ -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(
Expand Down