You are a guest. Restricted access! Read more.

You can work with LaTeX documents and convert them to HTML/XML pages. This functionality does not require installed LaTeX. Such conversion has its limitations which are described in Snuggletex web page.

Here is a simple example taken directly from Snuggletex web page.

- example.tex
\section*{Welcome to SnuggleTeX!} \begin{itemize} \item This is an itemized list. \item This is some inline maths: $x^2+ y^2 = 1$ \item Some block maths: \[ \sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6} \] (\textbf{Note}: This currently doesn't display nicely in Firefox 3. Boo\ldots) \item A $2\times 2$ matrix created via a user-defined command: \newcommand{\mat}[4]{\left( \begin{array}{cc} #1 & #2 \\ #3 & #4 \end{array} \right)} \[ A = \mat{\alpha}{\beta}{\gamma}{\delta} \] \end{itemize} Here is an example of a SnuggleTeX error message. You can set it up to display the messages inline (as we have here) or report them in various other ways:

Create a file “test.tex” with these lines, open in RTextDoc and convert to HTML (the menu “Convert→LaTeX to HTML”). You will see a new HTML file in the editor, which is also opened in a Browser.

- Defining Commands & Environments LaTeX file generates text-mode.html
- Basic Text Mode Commands LaTeX file generates text-mode.html
- Supported LaTeX LaTeX file generatessupported-latex.html
- math-mode.tex LaTeX file generates math-mode.tex
- XHTML-related Commands LaTeX file generates xhtml-commands.html

These examples are taken from Snuggletex project.