Reference:
https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference
The absolute value of some expression can be denoted as \lvert x\rvert
or, more generally, as \left\lvert … \right\rvert
. It renders as |x| | x | .
The norm of a vector (or similar) can be denoted as \lVert v\rVert
or, more generally, as \left\lVert … \right\rVert
. It renders as ∥v∥ ‖ v ‖ . (You may also write \left|…\right|
instead.)
In both cases, the rendering is better than what you’d get from |x|
or ||v||
, which render with bars that don’t descend low enough and sub-optimal spacing. |x| | x | or ||v|| | | v | | .
It was typeset as
If an operator is not available as a built-in command, use \operatorname{…}
. So for things like
write \operatorname{arsinh}(x) since \arsinh(x) will give an error and arsinh(x) has wrong font and spacing: arsinh(x).
For operators which need limits above and below the operator, use \operatorname*{…}
, as in
∥x0∥ ‖ x 0 ‖
ex=limn→∞(1+xn)n e x = lim n → ∞ ( 1 + x n ) n
limx→1x2−1x−1 lim x → 1 x 2 − 1 x − 1