Help/Adv. Equations: Difference between revisions

From CIRPwiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:
For example, that the equation:
For example, that the equation:
\begin{align}
\begin{align}
& if \quad r\le 1.57\quad {{f}_{w}}=0.3 \\
& \text{if} \quad r\le 1.57\quad {{f}_{w}}=0.3 \\
& if \quad r>1.57\quad {{f}_{w}}=0.00251\ \exp \left( 5.21\ {{r}^{-0.19}} \right) \\
& \text{if} \quad r>1.57\quad {{f}_{w}}=0.00251\ \exp \left( 5.21\ {{r}^{-0.19}} \right) \\
\end{align}
\end{align}


was typed as follows:<br>
was typed as follows:<br>
'''\ begin{align}<br>'''
'''\ begin{align}<br>'''
'''&nbsp;&nbsp;&nbsp;&amp; if \quad r\le 1.57\quad {{f}_{w}}=0.3 \\ <br>'''
'''&nbsp;&nbsp;&nbsp;&amp; \text{if} \quad r\le 1.57\quad {{f}_{w}}=0.3 \\ <br>'''
'''&nbsp;&nbsp;&nbsp;&amp; if \quad r>1.57\quad {{f}_{w}}=0.00251\ \exp \left( 5.21\ {{r}^{-0.19}} \right) \\ <br>'''
'''&nbsp;&nbsp;&nbsp;&amp; \text{if} \quad r>1.57\quad {{f}_{w}}=0.00251\ \exp \left( 5.21\ {{r}^{-0.19}} \right) \\ <br>'''
'''\ end{align}<br>'''
'''\ end{align}<br>'''

Revision as of 22:03, 2 October 2011

Multiple Lines in Equations

Multiple lines in equations are handled between the delimiters \ begin{align} and \ end{align} with each line separated from the next with the use of '\\' at the end. Each line can be aligned at a location designated by '&' on each line.

For example, that the equation: \begin{align} & \text{if} \quad r\le 1.57\quad {{f}_{w}}=0.3 \\ & \text{if} \quad r>1.57\quad {{f}_{w}}=0.00251\ \exp \left( 5.21\ {{r}^{-0.19}} \right) \\ \end{align}

was typed as follows:
\ begin{align}
   & \text{if} \quad r\le 1.57\quad {{f}_{w}}=0.3 \\
   & \text{if} \quad r>1.57\quad {{f}_{w}}=0.00251\ \exp \left( 5.21\ {{r}^{-0.19}} \right) \\
\ end{align}