Unix: replace every odd | with \left| and every even | with \right|

Posted by HH on Stack Overflow See other posts from Stack Overflow or by HH
Published on 2010-04-21T20:45:18Z Indexed on 2010/04/21 21:03 UTC
Read the original article Hit count: 166

Filed under:
|
|
|
|

An enormous equation. You need to add \left| on the left side of corresponding |. The corresponding | you need to replace with \right|.

Equation

\begin{equation}
| \Delta w_{0} | = \frac{|w_{0}|}{2} \left( |\frac{\Delta g}{g}|+|\frac{\Delta (\Delta r)}{\Delta r}| + |\frac{\Delta r}{r}| +|\frac{\Delta L}{L}| \right)
\end{equation}

© Stack Overflow or respective owner

Related posts about unix

Related posts about regex