Help/Simple Equations: Difference between revisions
mNo edit summary |
|||
Line 4: | Line 4: | ||
==AutoNumbered Equation== | ==AutoNumbered Equation== | ||
To produce a numbered equation in a wiki document, simply surround the LaTeX for the equations by the following: | To produce a numbered equation in a wiki document, simply surround the LaTeX for the equations by the following: | ||
'''\ begin{equation} \ | '''\ begin{equation} \tag{#}...\ end{equation)''' (Note: no space between the '\' and the 'begin' or 'end). Enter the number desired within the \tag{} field. | ||
For example, this equation: | For example, this equation: | ||
\begin{equation} \ | \begin{equation} \tag{4} | ||
\left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}} | \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}} | ||
\end{equation} | \end{equation} | ||
was typed as follows:<br> | was typed as follows:<br> | ||
'''\ begin{equation} \ | '''\ begin{equation} \tag{4}<br>''' | ||
''' \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}<br>''' | ''' \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}<br>''' | ||
'''\ end{equation}<br>''' | '''\ end{equation}<br>''' | ||
==Equation Not Numbered== | ==Equation Not Numbered== | ||
If for some reason it is desired to have an equation set aside but turn off display of the equation number, just leave off the delimiter '''\ | If for some reason it is desired to have an equation set aside but turn off display of the equation number, just leave off the delimiter '''\tag{}'''. | ||
For example, the above equation again: | For example, the above equation again: | ||
Line 28: | Line 28: | ||
''' \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}<br>''' | ''' \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}<br>''' | ||
'''\ end{equation}<br>''' | '''\ end{equation}<br>''' | ||
Revision as of 22:20, 3 October 2011
Typically numbered equations are centered in documents. Due to the appearance of the wiki, however, all numbered equations shown on this wiki are left justified with a small indent and the equation number is right justified.
AutoNumbered Equation
To produce a numbered equation in a wiki document, simply surround the LaTeX for the equations by the following: \ begin{equation} \tag{#}...\ end{equation) (Note: no space between the '\' and the 'begin' or 'end). Enter the number desired within the \tag{} field.
For example, this equation: \begin{equation} \tag{4} \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}} \end{equation}
was typed as follows:
\ begin{equation} \tag{4}
\left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}
\ end{equation}
Equation Not Numbered
If for some reason it is desired to have an equation set aside but turn off display of the equation number, just leave off the delimiter \tag{}.
For example, the above equation again: \begin{equation} \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}} \end{equation}
was typed as follows:
\ begin{equation}
\left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}
\ end{equation}
Some advanced equations have multiple lines, and it may be desired for each line to be aligned at a certain character on each line. These advanced equations are described on the next page.