Skip to content

Latest commit

 

History

History
83 lines (58 loc) · 1.67 KB

README.md

File metadata and controls

83 lines (58 loc) · 1.67 KB

How to Use Math Formulas in GitHub Markdown Documents

\sum_{\forall i}{x_i^{2}}

The Project Structure

 |
 +-- Math
 |    |
 |    +-- Formula.math
 |         ...    
 |
 +-- README.md
      ...
        

The Source

LaTeX source:

\sum_{\forall i}{x_i^{2}}

The Link

  1. CodeCogs's URL:
  2. Write the formula in LaTeX: \sum_{\forall i}{x_i^{2}}.

Option A:

  1. Get the URL from: https://www.codecogs.com/latex/eqneditor.php

Option B:

  1. Convert the formula to percent-encoded string.
  2. Combine the CodeCogs's URL and encoded formula string:

The Markdown

![\sum_{\forall i}{x_i^{2}}](https://latex.codecogs.com/svg.latex?%5Csum_%7B%5Cforall+i%7D%7Bx_i%5E%7B2%7D%7D)

The Math Formula

  • Standard:
\sum_{\forall i}{x_i^{2}}

\sum_{\forall i}{x_i^{2}}

  • Multiline formula:
\newline
2 + 2 = 4 \newline
2 + 3 = 5 \newline
\frac{2}{4} = 0.5

\newline 2 + 2 = 4 \newline 2 + 3 = 5 \newline \frac{2}{4} = 0.5