Difference between revisions of "LaTeX:LaTeX on AoPS"
(→The Very Basics) |
(→The Very Basics) |
||
Line 16: | Line 16: | ||
Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that <code>$\sum_{k=1}^n k^2$</code> gives us <math>\textstyle\sum_{k=1}^n k^2,</math> whereas <code>$$\sum_{k=1}^n k^2$$</code> gives us <cmath>\sum_{k=1}^n k^2.</cmath> | Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that <code>$\sum_{k=1}^n k^2$</code> gives us <math>\textstyle\sum_{k=1}^n k^2,</math> whereas <code>$$\sum_{k=1}^n k^2$$</code> gives us <cmath>\sum_{k=1}^n k^2.</cmath> | ||
+ | |||
+ | <nowiki>\displaystyle</nowiki> | ||
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. | 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 13:08, 1 October 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. See Packages to know which packages are prebuilt into the AoPS site.
Getting Started with LaTeX
The Very Basics
LaTeX uses a special "math mode" to display mathematics. There are two types of this "math mode":
- In-line math mode. In in-line math mode, we use
$
signs to enclose the math we want to display, and it displays in-line with our text. For example, typing$\sqrt{x} = 5$
gives us
- Display math mode. In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example,
$$\sqrt{x} = 5$$
gives us
Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that $\sum_{k=1}^n k^2$
gives us whereas
$$\sum_{k=1}^n k^2$$
gives us
\displaystyle
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.