You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/doc/latex.md

724 B

Escaping

Generally, if you add text inside quotes " " (e.g. in Hint) you need to escape backslashes, but if you provide text inside a doc comment /-- -/ (e.g. in the Statement description) you do not!

Furthermore, inside Hint you need to escape all opening curly brackets as \{ since {h} is syntax for inserting a variable name h.

Example

Inside strings, you need to escape backslashes, but not inside doc-strings, therefore you would write Introduction "some latex here: $\\iff$." , but /-- some latex here: $\iff$. -/ Statement ...

Support

It is important to mention that KateX supports most but not all of latex and its packages. See supported.