<id>https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=70075</id>
<title>LaTeX:LaTeX on AoPS</title>
<link rel="alternate" type="text/html" href="https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=70075"/>
<updated>2015-04-30T18:02:04Z</updated>
<summary type="html"><p>Mouksit: /* LaTeX in the AoPS Classroom */</p>
<hr />
<div>{{Latex}}<br />
<br />
This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom.<br />
<br />
<br />
----<br />
== LaTeX on the AoPSWiki and the AoPS Community ==<br />
<br />
LaTeX uses a special math mode to display mathematics. To place something written in LaTeX in '''math mode''', use <nowiki>$</nowiki> signs to enclose the math you want to display. For example, suppose you type the following in a Community post or in the AoPSWiki:<br />
<br />
<pre><nowiki><br />
The solution to $\sqrt{x} = 5$ is $x=25$.<br />
</nowiki></pre><br />
<br />
The resulting post will read: <br />
<br />
The solution to <math>\sqrt{x} = 5</math> is <math>x=25</math>.<br />
<br />
As we saw above, when using <nowiki>$</nowiki>math stuff here<nowiki>$</nowiki> to typeset math, the resulting math expression appears right in the text at the location of the <nowiki>$</nowiki>...<nowiki>$</nowiki>. Sometimes we want to break some of the math out of the text and give it its own special line. To do so, we use <nowiki>\[</nowiki>math stuff here<nowiki>\]</nowiki> or <nowiki>$$math stuff here$$</nowiki> to put the math text in display math mode:<br />
<pre><nowiki><br />
The solution to \[\sqrt{x} = 5\] is \[x=25.\]<br />
</nowiki></pre><br />
The output of this is:<br />
<br />
The solution to <cmath>\sqrt{x} = 5</cmath> is <cmath>x=25.</cmath><br />
<br />
That's all there is to invoking LaTeX on the AoPS site. Of course, you'll want to do more than square roots! You can read through the [[LaTeX:Symbols|Symbols]] and [[LaTeX:Commands|Commands]] pages to learn how to render other symbols with LaTeX. You can also click on formulas created by others to see the code they've used.<br />
<br />
a+b</div></summary>