From f8093be4d4ea93cb2b3e7b4ad004b812f30b043c Mon Sep 17 00:00:00 2001 From: Anghelos Coulon Date: Tue, 4 Jun 2024 11:44:21 -0400 Subject: [PATCH] Update math index.md Remove "spacing matters" warning, as there doesn't seem to be any difference between the two. Add math rendering ($) to escape example. --- src/basics/math/index.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/basics/math/index.md b/src/basics/math/index.md index cc30d75..7ea2ea9 100644 --- a/src/basics/math/index.md +++ b/src/basics/math/index.md @@ -60,13 +60,6 @@ To make it short, Typst uses several simple rules: ```typ $a "equals to" 2$ ``` -
- Spacing matters there! -
- - ```typ - $a "=" 2$, $a"="2$ - ``` - You can turn it into multi-letter variables using `italic`: ```typ $(italic("mass") v^2)/2$ @@ -92,8 +85,10 @@ $ Any symbol that is used may be escaped with `\\`, like in markup mode. For example, you can disable fraction: ```typ +$ a / b \ a \/ b +$ ``` The same way it works with any other syntax. @@ -110,4 +105,4 @@ You may easily increase the distance it by wrapping into box: ```typ #lorem(17) #box($display(1)/display(1+x^n)$, inset: 0.2em) #lorem(20) -``` \ No newline at end of file +```