A reference to the LaTeX to HTML commands.

The text itself was written using the LaTeX to HTML command described in this document.
The original text of this document can be obtained here.

1 Introduction

We would like to make it easier for mathematicians to write web pages containing scientific texts. In order to do that, we implemented a simple parsing procedure which takes a limited set of Latex-like commands and transfers it into HTML format. This document lists these commands and gives examples of their usage.

2 Sections and subsections

Commands: \ title{Page title }, \ section{Section title} \ subsection{Subsection title}.
Sections and subsections are automatically enumerated. All environments that have counters will have the section number in their index.

3 Math mode

3.1 Inline formulas

Formulas can be inserted in the text using '$' symbol the same way as it is done in TeX.

Example 3.1
Original text Text in HTML
This is a math formula: $ x \in \mathbb{R}$ This is a math formula: x \in \mathbb{R}

3.2 Equations

Equations can be defined by using $$, \ [ \ ] symbols. To have numbered equations please use \begin{equation} and \end{equation}.

Example 3.2
Original text Text in HTML
$$ First equation \mathbb{R}$$

First equation \mathbb{R}

\ [ Second equation \mathbb{R} \ ]

First equation \mathbb{R}

\begin{equation} Third equation \mathbb{R} \end{equation}

Third equation \mathbb{R}
(3.1) 

Conversion of a formula itself has not been implemented yet.

4 Theorems

The following theorem type environments are availbale:

Example 4.1
Original text Text in HTML
\begin{theorem} Theorem text here \end{theorem}

Theorem 4.1 Theorem text here

\begin{lemma} Lemma text here \end{lemma}

Lemma 4.1 Lemma text here

\begin{problem} Problem text here \end{problem}

Problem 4.1 Problem text here

\begin{definition} Definition text here \end{definition}

Definition 4.1 Definition text here

\begin{conjecture} Conjecture text here \end{conjecture}

Conjecture 4.1 Conjecture text here

\begin{corollary} Corollary text here \end{corollary}

Corollary 4.1 Corollary text here

\begin{example} Example text here \end{example}

Example 4.2 Example text here

5 Lists

There are two list types availbale: enumerated and itemized.

Example 5.1
Original text Text in HTML
\begin{itemize}
\ item First item
\ item Second item
\end{itemize}
  • First item
  • Second item
\begin{enumerate}
\ item First item
\ item Second item
\end{enumerate}
  1. First item
  2. Second item

6 Tables

There is a simplefied version of the tabular environment available. The command accepts a parameter. If the parameter is equal to 1, a table with borders is drawn. If it is zero no borders are given.
To separate cells in the row use '&' symbol. A row should always end with \ \.

Example 6.1
Original text Text in HTML
\begin{tabular}{1}
Cell 1 & Cell 2 & Cell 3 \ \
Cell 1 & Cell 2 & Cell 3 \ \
\end{tabular}
Cell 1 Cell 2 Cell 3
Cell 1 Cell 2 Cell 3

Example 6.2
Original text Text in HTML
\begin{tabular}{0}
Cell 1 & Cell 2 & Cell 3 \ \
Cell 1 & Cell 2 & Cell 3 \ \
\end{tabular}
Cell 1 Cell 2 Cell 3
Cell 1 Cell 2 Cell 3

7 Bibliography

Bibliography environment allows for a more standard way of presenting publication referenes. Each reference is assigned using \ bibtex command. This command accepts 3 parameters. First is the list of authors, second is the title of a publication and the rest is included as the third parameter.

Example 7.1
Original text Text in HTML
\begin{bibliography}
\ bibitem{Author 1, Author 2}{Title of the publication 1,}{Journal name, pp.1-1, 2005.}
\ bibitem{Author 3, Author 4}{Title of the publication 2,}{Journal name, pp.10-11, 2005.}
\end{bibliography}
  1. Author 1, Author 2 Title of the publication 1, Journal name, pp.1-1, 2005.
  2. Author 3, Author 4 Title of the publication 2, Journal name, pp.10-11, 2005.

8 Operations with text

8.3 Fonts

We do not support (and probably won't support) latex commands that change appearence of the text which occurs between curly brackets, i.e. { Text ... \em Text ... }.
The following commands, which are latex compatible are supported:
Original text Text in HTML
\ emph{ Emphasized Text } Emphasized Text
\ textbf{ Bold Text } Bold Text
\ large{ Larger Text } Larger Text
\ small{ Smaller Text } Smaller Text

8.4 Colors

To change the color of a text use command \ textcolor{color}{text}. It will draw the text between curly brackets with the color given as a parameter.
Color can be defined in two ways. First as a hexadecimal number which starts with '#' and represents color in RGB format.

Example 8.1
Original text Text in HTML
\ textcolor{#FF0000}{This is red color } This is red color
\ textcolor{#00FF00}{This is green color } This is green color
\ textcolor{#0000FF}{This is blue color } This is blue color

There is a relatively big set of predefined colors available (see table below). To use colors just type the color name as the first parameter.
GreenYellow Yellow Goldenrod Dandelion Apricot
Peach Melon YellowOrange Orange BurntOrange
Bittersweet RedOrange Mahogany Maroon BrickRed
Red OrangeRed RubineRed WildStrawberry Salmon
CarnationPink CarnationPink VioletRed Rhodamine Mulberry
RedViolet Fuchsia Lavender Thistle Orchid
DarkOrchid Purple Plum Violet RoyalPurple
BlueViolet Periwinkle CadetBlue CornflowerBlue MidnightBlue
NavyBlue RoyalBlue Blue Cerulean Cyan
ProcessBlue SkyBlue Turquoise TealBlue Aquamarine
BlueGreen Emerald JungleGreen SeaGreen Green
ForestGreen PineGreen LimeGreen YellowGreen SpringGreen
OliveGreen RawSienna Sepia Brown Tan
Gray Gray White

8.5 Other

Command \ newline starts a new line in the text.
Command \ centerline aligns the text in the center of the curent page.
Command \ hline draws a horisontal line in the current window.
Command \ link implements a hyperlink to another web resource. It accepts two parameters: first is the URL, second is the text which appears as a link.
Command \ image inserts an image in text. It accepts parameter which is a reference or an URL of the image.

Example 8.2
Original text Text in HTML
Old line text \ newline New lilne text Old line text
New lilne text
\ centerline{Centered text}
Centered text
Text ... \ hline Text ... Text ...
Text ...
\ link{http://www.algebraforum.org}{http://www.algebraforum.org} http://www.algebraforum.org
\ image{http://www.algebraforum.org/images/algebraportal.gif}

Since some symbols are used in control sequenceies, a special care needs to be done when using them in the regular text. Symbols '{', '}', '$' and '&' must be preceeded by '\' symbol.