Create a function for math mode

Hi

  • Please formulate the title of the topic as a question, so people will find it easier.
  • Please use ``` around your code examples so they will receive syntax highlighting.
  • Please check if the code snippets you post compile and don’t have mismatched parentheses or $.

See How to post in the Questions category


I think the problem is that rect (and box etc…) mess with math mode. (This is a known issue i think). I don’t really know of a workaround. However, you can probably achieve what you want using mannot – Typst Universe

2 Likes