Question

Is it possible to force latex to use the slash notation for a fraction (i.e., separating the numerator and denominator with a slash instead of stacking them on top of one another)? Just using a slash (/) instead of \frac looks bad because the slash does not size itself properly.

Was it helpful?

Solution

Here is a command that might work for you:

\newcommand{\slfrac}[2]{\left.#1\middle/#2\right.}

It sizes the slash based on the size of the numerator and denominator.

OTHER TIPS

Try the nicefrac package

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top