Basic grammar of Latex mathematical formula in Markdown

Source: Internet
Author: User
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} $$ =

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.