From 4448dff2c2c899b0459eb7cec5295ce2cd0fea94 Mon Sep 17 00:00:00 2001 From: leo-hstone <62036826+leo-hstone@users.noreply.github.com> Date: Mon, 14 Feb 2022 10:10:53 +0100 Subject: [PATCH] update math.md with comments --- docs/en/core/math.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/core/math.md b/docs/en/core/math.md index 745edcbd..6c07cf4a 100644 --- a/docs/en/core/math.md +++ b/docs/en/core/math.md @@ -1,6 +1,6 @@ # Math -Zettlr supports writing math and formulae using the KaTeX library. In order to use math, enclose your formulae with dollar signs (`$`). You can also use math blocks by using two dollar signs instead of a single dollar sign to enclose your formulae. On export, the double dollar signs are replaced with the LaTeX environment commands `\begin{equation}` and `\end{equation}`. Anything detected as inline or math block will receive proper MathTeX syntax highlighting. +Zettlr supports writing math and formulae using the KaTeX library. In order to use math, enclose your formulae with dollar signs (`$...$`). You can also use so-called displaymath blocks by using two dollar signs (`$$...$$`) instead of a single dollar sign to enclose your formulae. Anything detected as inline math or displaymath block will receive proper MathTeX syntax highlighting. ``` Everybody should know Euler's formula: $e^{ \pm i\theta } = \cos \theta \pm i\sin \theta$ @@ -14,7 +14,7 @@ e^{i \pi} & = -1 $$ ``` -> Please note, that no spaces must be inserted between the inline formula and the dollar signs! +> To prevent confusion with amounts of money, spaces between the formula and the dollar signs are not allowed! If you activate the corresponding option, Zettlr will immediately render formulae in place, making it easy for you to proofread what you typed and fix errors. If a formula contains an error, this will be shown by Zettlr. The above example is rendered like this: