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

varnothing used by LaTeX #10

Closed
Myriad-Dreamin opened this issue Apr 7, 2023 · 3 comments
Closed

varnothing used by LaTeX #10

Myriad-Dreamin opened this issue Apr 7, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Myriad-Dreamin
Copy link
Contributor

The \varnothing used by LaTeX is not essentially a "nothing", which is stolen from the symbol "diameter", e.g. ⌀10cm.

Try it:

#let varnothing = $\u{2300}$

See also unimath and search U+02300 or \diameter

@johanvx
Copy link
Owner

johanvx commented Apr 7, 2023

While it's semantically bad, I'll use the Typst symbol diameter in the document for the \varnothing in LaTeX. Thanks for letting me know the \varnothing thing!

My observations

If copy the characters in Line U+02205 of newcm-unimath-symbols and paste them in Compart/Unicode, it can be easily found that they're all Empty Set U+2205. The characters in Line U+02300 are Diameter Sign U+2300. Both are reasonable.

varnothing

diameter

In Subsection 13.3 of newcm-doc, however, the \varnothing character $\varnothing$ is Diameter Sign U+2300. This is a case of stealing the symbol \diameter.

Subsection 13.3 of newcm-doc

@Myriad-Dreamin
Copy link
Contributor Author

Myriad-Dreamin commented Apr 7, 2023

By your comment, I found that some fonts tried to make the shape of nothing look like diameter. It brings a good news that the builtin font "Fira Sans" can help us define the varnothing with correct semantics, and without using unicode.

#let varnothing = $text(font: "Fira Sans", nothing)$

I compared 3 different approaches to defining varnothing. Though, I still prefer the diameter symbol.

#let big = $text(font: "Fira Sans", nothing)$
#let regular = $diameter$
// diameter is undefined in Fira Sans
#let small = $text(font: "", diameter)$

@johanvx
Copy link
Owner

johanvx commented Apr 10, 2023

Sorry for the late reply. Would you mind creating a PR into main for this issue? The PR may need to:

  • Use diameter in Typst for \varnothing in LaTeX. (I personally don't think this is a @tricky, but it's a you-decide.)
  • Rewrite the / Remark:. (Would it be useful to add a link to this issue?)

Feel free to modify anything as long as necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants