Difference between revisions of "LaTeX:Math"

(start)
 
m (whoops)
Line 5: Line 5:
 
For example, look at the following segment of code:
 
For example, look at the following segment of code:
  
<pre>
+
<pre><nowiki>
 
\documentclass{article}
 
\documentclass{article}
 
\begin{document}
 
\begin{document}
If we take the square root of <math>\sqrt{4}</math>, the answer is <math>x=2</math>.
+
If we take the square root of $\sqrt{4}$, the answer is $x=2$.
 
\end{document}  
 
\end{document}  
</pre>
+
</nowiki></pre>
  
 
This results in:
 
This results in:

Revision as of 18:54, 23 March 2007

LaTeX
About - Getting Started - Diagrams - Symbols - Downloads - Basics - Math - Examples - Pictures - Layout - Commands - Packages - Help

To place something written in TeX in math mode, use $s to open and close the segment in math mode.

For example, look at the following segment of code:

\documentclass{article}
\begin{document}
If we take the square root of $\sqrt{4}$, the answer is $x=2$.
\end{document} 

This results in:

If we take the square root of $\sqrt{4}$, the answer is $\displaystyle x=2$.

Style

Eqnarray

Additional packages

See also