Skip to content

How to use math formulas in GitHub Markdown documents

Notifications You must be signed in to change notification settings

poporubeus/Math-in-Markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

About

How to use math formulas in GitHub Markdown documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%