Skip to content

Instantly share code, notes, and snippets.

@luisprox
Last active April 7, 2021 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luisprox/8eadcbe12d9fa2825bee9bd7c00b0dac to your computer and use it in GitHub Desktop.
Save luisprox/8eadcbe12d9fa2825bee9bd7c00b0dac to your computer and use it in GitHub Desktop.
[Add Latex Math Equation to markdown] How to add LaTeX math equations to markdown #markdown #LaTeX #gist

Markdown does not have a way to write math equations.

Recommended solution is to use a web link to a site service which provides math equation view.

Option 1: codecogs website includes an online equation editor which allows generating a link to the equation, like the example bellow.

img

Option 2: sciweavers website generates a high resolution image from the equation editor.

img

The website also generates a pure ASCII text version of the equation, ready to include in source code comments

         _           
        /  b         
        O    x       
       _/  a         
 ------------------- 
        ___________  
       /         n   
  3   /   partial f  
  |  /   ----------  
  | /             n  
  |/     partial x   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment