Learn to write equations in Markdown and convert it to docx format


Prepare system

Download and install

  1. Any text editor
    1. visualstudiocode Download link recommended
    2. markdownedit Download link alternative to visualstudiocode
    3. Or simply type in any text editor notepad or vim

Equations must be enclosed by $ sign or $$

  1. enclose formulas in single dollar sign $ your equation $ for inline equations.
  2. enclose formulas in double dollar sign $$ your equation $$ for equation environment and start with new line.

gif

Symbols

$\alpha$
$\beta$
$\delta$

$\rho$

$\omega$

$\Omega$

$\Delta$

FractionsOutput

$\frac{numerator}{denominator}$

$\frac{a}{b}$

Powers Output

$a^b$

SubscriptOutput

$a_b$

Brackets

simple () are not because brackets done resize to cover content like below $(\frac{a}{b)$
so use \left( and \right) BracketsOutput $\left($

$\right($

$\left( a \right)$

$\left[$

$\right]$

$\left[ a \right\$

$E=mc^2$

  1. now save this as “anyfilename.md”

  2. run command in the same folder as

    pandoc anyfilename.md -o anyfilename.docx

    check anyfilename.docx in the directory

Test formulas