Wednesday, January 4, 2017

Latex: Fractions (分数)

Shorthand (Fraction):

\frac{1}{2}


Output:

\(
\frac{1}{2}
\)


Shorthand (Fraction large):

\displaystyle
\frac{1}{2}


Output:

\(
\displaystyle
\frac{1}{2}
\)


Shorthand (Fraction and parentheses or bracket):

\left(\frac{1}{2}\right)^2


Output:

\(
\left(\frac{1}{2}\right)^2
\)


Shorthand (Continued fraction (連分数)):

\displaystyle
\frac{a + b}{c + \frac{d}{e}}


Output:

\(
\displaystyle
\frac{a + b}{c + \frac{d}{e}}
\)