Skip to content

Instantly share code, notes, and snippets.

@peaceiris peaceiris/0_github_tips.md
Last active Feb 25, 2019

Embed
What would you like to do?
GitHub Tips.

GitHub Tips

How to use LaTeX Equation on GitHub

Process

  • (1) Access Online LaTeX Equation Editor
    • (1-1) Input LaTex code
    • (1-2) Select png
    • (1-3) Select URL Encoded
    • (1-4) Copy URL
  • (2) Write Markdown ![alt](URL)

latex site usage

Example

LaTex code

\begin{align*}
  \left( \int_0^\infty \frac{\sin x}{\sqrt{x}} dx \right)^2 =
  \sum_{k=0}^\infty \frac{(2k)!}{2^{2k}(k!)^2} \frac{1}{2k+1} =
  \prod_{k=1}^\infty \frac{4k^2}{4k^2 - 1} = \frac{\pi}{2}
\end{align*}

Markdown

![latex](https://latex.codecogs.com/svg.latex?%5Cbegin%7Balign*%7D%20%5Cleft%28%20%5Cint_0%5E%5Cinfty%20%5Cfrac%7B%5Csin%20x%7D%7B%5Csqrt%7Bx%7D%7D%20dx%20%5Cright%29%5E2%20%3D%20%5Csum_%7Bk%3D0%7D%5E%5Cinfty%20%5Cfrac%7B%282k%29%21%7D%7B2%5E%7B2k%7D%28k%21%29%5E2%7D%20%5Cfrac%7B1%7D%7B2k+1%7D%20%3D%20%5Cprod_%7Bk%3D1%7D%5E%5Cinfty%20%5Cfrac%7B4k%5E2%7D%7B4k%5E2%20-%201%7D%20%3D%20%5Cfrac%7B%5Cpi%7D%7B2%7D%20%5Cend%7Balign*%7D)

Output

latex

@peaceiris

This comment has been minimized.

Copy link
Owner Author

commented Sep 26, 2018

Images

latex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.