Difference between revisions of "LaTeX:LaTeX on AoPS"

(LaTeX on the AoPSWiki and the AoPS Community)
(LaTeX on the AoPSWiki and the AoPS Community)
Line 25: Line 25:
 
The solution to <cmath>\sqrt{x} = 5</cmath> is <cmath>x=25.</cmath>
 
The solution to <cmath>\sqrt{x} = 5</cmath> is <cmath>x=25.</cmath>
  
LaTeX can even be used to draw figure and diagrams on the AoPS site using a language called [http://artofproblemsolving.com/wiki/index.php/Asymptote_(Vector_Graphics_Language) Asymptote]. See [http://artofproblemsolving.com/wiki/index.php/Asymptote_(Vector_Graphics_Language) Asymptote] to learn more.
+
LaTeX can also be used to draw figure and diagrams on the AoPS site using a language called [http://artofproblemsolving.com/wiki/index.php/Asymptote_(Vector_Graphics_Language) Asymptote]. See [http://artofproblemsolving.com/wiki/index.php/Asymptote_(Vector_Graphics_Language) Asymptote] to learn more.
  
 
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.
 
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.

Revision as of 19:23, 5 June 2015

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

This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom.



LaTeX on the AoPSWiki and the AoPS Community

LaTeX uses a special math mode to display mathematics. To place something written in LaTeX in math mode, use $ signs to enclose the math you want to display. For example, suppose you type the following in a Community post or in the AoPSWiki:

The solution to $\sqrt{x} = 5$ is $x=25$.

The resulting post will read:

The solution to $\sqrt{x} =  5$ is $x=25$.

As we saw above, when using $math stuff here$ to typeset math, the resulting math expression appears right in the text at the location of the $...$. 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 \[math stuff here\] or $$math stuff here$$ to put the math text in display math mode:

The solution to \[\sqrt{x} = 5\] is \[x=25.\]

The output of this is:

The solution to \[\sqrt{x} = 5\] is \[x=25.\]

LaTeX can also be used to draw figure and diagrams on the AoPS site using a language called Asymptote. See Asymptote to learn more.

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 Symbols and 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.