Basic grammar of latex mathematical formula in Markdown
Formula Layout
There are two types of typesetting:
-Inline formula: use \ or $ wrap formula
-Independent formula: Wrap the formula with \$.
For example:
$ \sum_{i=0}^{n}i^2 $ represents ∑ni=0i2 \sum_{i=0}^{n}i^2
$$ \sum_{i=0}^{n}i^2 $$ said
∑i=0ni2 \sum_{i=0}^{n}i^2
A few characters: # $% & ~ _ ^ \ {} have special meaning, need to represent these characters, need to escape, that is, before each character plus.
\boxed command to add a box to a formula
Einstein ' s e=mc2 E = mc^2
$$ e = mc^2 $$ = e=mc2 E = mc^2
$$ \boxed{e=mc^2} $$ =
E=MC2 \boxed{e=mc^2}
E=MC2 \begin{equation} E = Mc^2 \end{equation}
Greek alphabet
Upper and lower mark and radical
Use ^ to denote superscript, use _ to denote subscript, the root of the root with \sqrt, the upper and lower mark if extra a character or symbol, need to enclose in {}.
\sqrt[the number of root, the default is 2]{formula}, for example
$\sum_{i=1}^n a_i$ =>∑ni=1ai \sum_{i=1}^n a_i "' F (x) =xxx f (x) =x^{x^x}" ' + f (x) =xxx f (x) =x^{x^x}
$$ x_{ij}^2\quad \sqrt{x}\quad \sqrt[3]{x} $$ =
X2ijx√x√3 X_{ij}^2\quad \sqrt{x}\quad \sqrt[3]{x}
where \quad means adding spaces,
score
Score with \frac, font Size tool environment settings, \dfrac command bar Pride is set to the size in a stand-alone formula, \tfrac sets the font size to the sizes in the row formula.
$ \frac{1}{2} \dfrac{1}{2} $ = > 1212 \frac{1}{2} \dfrac{1}{2}
$$ \frac{1}{2} \tfrac{1}{2} $$ =