Loading Page Content...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
For scientific papers, machine learning documentation, engineering notes, and financial algorithms, plain text lacks the symbols needed to express equations, integrals, matrices, and greek letters. Modern Markdown platforms (including GitHub, Obsidian, and KaTeX) support LaTeX Mathematical Notation.
Click to Zoom$ ... $)To write a mathematical equation within a sentence, wrap the LaTeX expression in single dollar signs ($):
Einstein's mass-energy equivalence is expressed as $E = mc^2$.
$50, write \$50 or wrap the price in backticks (` $50 `) so the parser does not accidentally interpret it as the start of a LaTeX equation!$$ ... $$)For complex formulas, fractions, summations, and integrals, use double dollar signs ($$) on separate lines to render the equation centered in a dedicated display block:
| Mathematical Concept | LaTeX Syntax in Markdown | Rendered Preview |
|---|---|---|
| Fractions | \frac{a}{b} | $\frac{a}{b}$ |
| Greek Letters | \alpha, \beta, \gamma, \pi, \theta | $\alpha, \beta, \gamma, \pi, \theta$ |
| Superscripts & Subscripts | x_i^2 + y_i^2 | $x_i^2 + y_i^2$ |
| Summation & Product | \sum_{i=1}^n x_i, \prod_{j=1}^m y_j | $\sum_{i=1}^n x_i$ |
| Square Root | \sqrt{x^2 + y^2} | $\sqrt{x^2 + y^2}$ |
| Comparison & Symbols | \le, \ge, \neq, \approx, \infty | $\le, \ge, \neq, \approx, \infty$ |
Since 2022, GitHub natively supports KaTeX math rendering directly in all READMEs, issues, and discussions using the standard $inline$ and $$block$$ syntax.
Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
| Previous Lesson | Next Lesson |
|---|---|
| Fenced Code Blocks & Syntax Highlighting | Tables & Column Alignment Syntax |
Test your understanding of this lesson with 5 questions. Each question has one correct answer.