- Creating a document in ShareLaTeX
- Uploading a project
- Copying a project
- Creating a project from a template
- Including images in ShareLaTeX
- Exporting your work from ShareLaTeX
- Using bibliographies in ShareLaTeX
- Sharing your work with others
- Debugging Compilation timeout errors

- Creating your first LaTeX document
- Choosing a LaTeX Compiler
- Paragraphs and new lines
- Bold, italics and underlining
- Lists

- Mathematical expressions
- Subscripts and superscripts
- Brackets and Parentheses
- Fractions and Binomials
- Aligning Equations
- Operators
- Spacing in math mode
- Integrals, sums and limits
- Display style in math mode
- List of Greek letters and math symbols
- Mathematical fonts

- Inserting Images
- Tables
- Positioning Images and Tables
- Lists of Tables and Figures
- Drawing Diagrams Directly in LaTeX
- TikZ package

- Bibliography management in LaTeX
- Bibliography management with biblatex
- Biblatex bibliography styles
- Biblatex citation styles
- Bibliography management with natbib
- Natbib bibliography styles
- Natbib citation styles
- Bibliography management with bibtex
- Bibtex bibliography styles

- International language support
- Quotations and quotation marks
- Arabic
- Chinese
- French
- German
- Greek
- Italian
- Japanese
- Korean
- Portuguese
- Russian
- Spanish

- Sections and chapters
- Table of contents
- Cross referencing sections and equations
- Indices
- Glossaries
- Management in a large project
- Multi-file LaTeX projects
- Hyperlinks

- Lengths in L a T e X
- Headers and footers
- Page numbering
- Paragraph formatting
- Line breaks and blank spaces
- Text alignment
- Page size and margins
- Single sided and double sided documents
- Multiple columns
- Counters
- Code listing
- Code Highlighting with minted
- Using colours in LaTeX
- Footnotes
- Margin notes

- Theorems and proofs
- Chemistry formulae
- Feynman diagrams
- Molecular orbital diagrams
- Chess notation
- Knitting patterns
- CircuiTikz package
- Pgfplots package
- Typing exams in LaTeX
- Knitr
- Attribute Value Matrices

Fractions and binomial coefficients are common mathematical elements with similar characteristics, one number goes on top of other. This article explains how to typeset them in L a T e X

## Contents |

Using fractions and binomial coefficients in an expression is straightforward.

The binomial coefficient is defined by the next expression: \[ \binom{n}{k} = \frac{n!}{k!(n-k)!} \]

For these commands to work you must import the package
**
amsmath
**
by adding the next line to the preamble of your file

\usepackage{amsmath}

The appearance of the fraction may change depending on the context

As you may have guessed, the command
```
\frac{1}{2}
```

is the one that displays the fraction. The text inside the first pair of braces is the numerator and the text inside the second pair is the denominator.

Also, the text size of the fraction changes according to the text around it. You can set this manually if you want.

The command
```
\displaystyle
```

will format the fraction as if it were in mathematical display mode. On the other side,
```
\textstyle
```

will change the style of the fraction as if it were part of the text.

The usage of fractions is quite flexible, they can be nested to obtain more complex expressions.

The second fraction displayed in the previous example uses the command
```
\cfrac{}{}
```

provided by the package
**
amsmath
**
(see the
introduction
), this command displays nested fractions without changing the size of the font. Specially useful for continued fractions.

Binomial coefficients are common elements in mathematical expressions, the command to display them in L a T e X is very similar to the one used for fractions.

As you see, the command
```
\binom{}{}
```

will print the binomial coeficient using the parameters passed inside the braces.

**
A slightly different and more complex example of continued fractions
**

For more information see