I am not fluent in the mathematical formula coding language “Tex” or any of its offshoots. They are used in Notion and Obsidian for writing math. I always have to look stuff up. This is a very incomplete syntax cheat sheet.

Basics

  • $$- Math delimiter, place on both sides
  • \ - the main escape character, saying “this is special”
  • ^ - superscript
  • _ - subscript
  • {} - partitioning syntax
  • \frac{a}{b} - fractions
  • \sqrt{a} - square root
  • \sqrt[n]{a} - nth root
  • \text{text here}

$$ a^2 = \frac{x_a}{\sqrt{x_b}} \text{ means nothing} $$

Equivalency

  • \le - less than equal to
  • \ge - greater than equal to
  • \approx - approximate
  • \equiv - equivalent

$$ a \le b \ge c \approx d \equiv e $$

It’s all Greek to me

  • \alpha - all greek letters
  • \infty - infinity

$$ \alpha = \beta + \gamma < \infty $$

Big Operators

  • \sum - sum sign
  • \int - integral sign
  • \leftarrow & \Leftarrow - arrows, capitalized is thicker
  • \rightarrow & \Rightarrow - arrows, capitalized is thicker
  • \leftrightarrow & \Leftrightarrow - arrows, capitalized is thicker

$$ \sum{a, b} \Leftrightarrow \int{3x+3 dx} $$


Source