Theorems & environments¶
latex-env: theorem (or lemma, definition, corollary, proposition, example) wraps a note in the matching amsthm environment with its own counter. A wikilink to it reads "Lemma 1.2", not just "Theorem". proof, remark and note stay unnumbered. Any other value becomes a custom environment defined in your template, including per-note metadata via \nope<key> commands.
Source notes
---
title: "Feature: LaTeX Environments"
author: MrIwan
notitlepage: true
toc: false
---
# LaTeX Environments
Source note `Pythagorean-Theorem.md` carries `latex-env: theorem` and `latex-short: Pythagoras`.
![[thm-pythagorean-theorem]]
Reference it with a wikilink. From [[thm-pythagorean-theorem]] the statement follows.
Override the link text: by [[thm-pythagorean-theorem|the Pythagorean theorem]] the statement follows.
---
latex-env: theorem
latex-short: Pythagoras
---
In any right triangle with legs $a$ and $b$ and hypotenuse $c$:
$$a^2 + b^2 = c^2$$
It is one of the oldest known theorems in mathematics.