To embed LaTeX on a page, you have three options:
- Enclosing the LaTeX code in <tex></tex> tags will wrap the code with a header and footer so you only need to include the body of the article (Not math mode, so you still need $s).
- Enclosing the LaTeX code in <m></m> tags will wrap the code with a header and place you in math mode. This means that you don't need to use $s before commands and you should probably only use this for one formula at a time. If you want to place text, use \text{some text}
- If you want to place an entire LaTeX document on a page without any headers or extra lines, enclose the document with <texdoc></texdoc>
An example follows:
To download an entire document (in PDF form), just click on the image and it will come up with a download dialogue.
LaTeX Basics
Asymptote Basics