Friday, April 5, 2013

Absolute value bars for fractions in LaTeX

The simplest way on how to include |absolute value| bars in LaTeX is to use the this notation: \left| and \right|.

Here's an example:

y = \left|\frac{1}{x}\right|

And that would be rendered as:

$y=\left|\frac{1}{x}\right|$