Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.25 KB

File metadata and controls

43 lines (35 loc) · 1.25 KB

Writing Mathematical Expressions with LaTeX

This editor supports LaTeX for rendering mathematical equations and expressions. Here's how you can use it:

  1. Inline Math:

    • Wrap your expression with single $ symbols.
    • Example: $E = mc^2$ → Renders as: ( $E = mc^2$ )
  2. Block Math:

    • Wrap your expression with double $$ symbols.
    • Example:
      $$
      \int_a^b f(x) \, dx
      $$
      
      Renders as: $$ \int_a^b f(x) , dx $$
  3. Math Functions:

    • Use standard LaTeX functions like \frac, \sqrt, \sum, etc.
    • Examples:
      • $\frac{a}{b}$ → ( $\frac{a}{b}$ )
      • $\sqrt{x}$ → ( $\sqrt{x}$ )
  4. Greek Letters and Symbols:

    • Use commands like \alpha, \beta, etc., for Greek letters.
    • Example: $\alpha + \beta = \gamma$ → ( $\alpha + \beta = \gamma$ )
  5. Subscripts and Superscripts:

    • Use _{} for subscripts and ^{} for superscripts.
    • Examples:
      • $x_i$ → ( $x_i$ )
      • $x^2$ → ( $x^2$ )
  6. Combined Examples:

    • $\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$ Renders as: $\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$

Feel free to write your own mathematical expressions, and they will be rendered beautifully in the preview!