Hacker News new | ask | show | jobs
by m4lvin 1188 days ago
> i.e. phi instead of \phi or floor instead of \floor. You will inevitably run into situations where, for instance, you want to write the letters phi, and have to resort to some ugly hack to write the natural language.

I thought exactly the same: What if I want to write the product of f,l,o,o,r? Well, the "ugly hack" is explained in the readme: You just write "floor" with quotes instead of floor. Seems alright to me ;-)

2 comments

The product of f, l, o, o, and r is denoted as $f l o o r$ (Same as $floor$ in latex). "floor" is exactly $\operatorname{floor}$
this isn't even a hack -- in Typst you write `$a b$` for implicit products, `$ab$` is always parsed as an identifier and you'll get a compile error if its not defined.
Ah, thanks for the correction, this is even better :-)