\tfrac{a}{b}

The \tfrac{a}{b} command in LaTeX is used to create a fraction where 'a' is the numerator and 'b' is the denominator. This command is typically used in inline math mode to create smaller fractions that fit well within the line of text, as opposed to \frac{a}{b} which is used for larger fractions in display math mode.

Examples

Energy equation with a small fraction for kinetic energy term.

E = mc^2 + \tfrac{1}{2}mv^2

Expressing a fraction of a whole in a sentence.

\tfrac{3}{4} of the class passed the exam.

Probability expressed as a fraction in a sentence.

The probability is \tfrac{1}{6} when rolling a fair die.