# How to get a little frac

I am wondering how to make a fraction in LaTeX small enough to fit on a line, or at least just a little larger. I could have sworn I had seen this before but I just cannot find it.

In particular, I would like to use it in an equation environment, and have it maintain this size.

I am sure there is a simple solution, but I cannot find it.

If you want the numerator on top of the denumerator, and have it appear smaller, the way it typically does in inline math mode as opposed to displayed math style, then use \tfrac{x}{y} (requires amsmath or similar package). If you want a diagonal-style fraction, then check out the xfrac package (with sfrac command).

\documentclass{article}
\usepackage{amsmath}
\usepackage{xfrac}

\begin{document}
Equation:

frac: $\frac{x}{y}$

tfrac: $\tfrac{x}{y}$

sfrac: $\sfrac{x}{y}$

Inline math:

frac: $\frac{x}{y}$

tfrac: $\tfrac{x}{y}$

sfrac: $\sfrac{x}{y}$
\end{document}

• thank you, this was the solution I have used in the past, I just couldn't seem to find it in my old source code. Thank you so much for saving me the time of searching. Commented Oct 7, 2010 at 22:27
• Note that tfrac seems to be similar to classical frac in "inline" math mode. Commented May 15, 2023 at 10:16
• Note that sfrac is quite "easy" to customize: \sfrac[⟨instance⟩]{⟨num⟩}[⟨sep⟩]{⟨denom⟩} (see documentation on CTAN). Commented May 15, 2023 at 10:22
• @zetyty, it does not seem to be, it is meant to be by design, in the sense that it corresponds to \frac in \textstyle. Commented Aug 8 at 8:21