On the math stack exchange, I've figured out I can do \sin
and \int
and \theta
. I've also figured out that you can use \frac
for fractions, but I'm having trouble using it. Can someone explain how \frac
works?
I'm new with this so make sure a noob can understand!
Best Answer
Fractions in LaTeX can be done by using the standard control sequence
\frac{numerator}{denominator}
. There are different modes for inline and displayed formulas:You can use the displaystyle inline, if you really want to. But it stretches the lines making the output looking ugly.
Package
nicefrac
makes the fractions looking nice which can be good when typing recipes.Of course, you can use fractions inside other fractions as well.
It has to be said tough, that not all those commands may work with Mathjax.