\centerline{ \title{ \textcolor{BrickRed}{A reference to the LaTeX to HTML commands.}}} \centerline{\textcolor{BrickRed}{The text itself was written using the LaTeX to HTML command described in this document. \newline The original text of this document can be obtained \link{Latex2HtmlManual.txt}{here}. }} \textcolor{MidnightBlue}{ \section{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 \emph{Latex}-like commands and transfers it into \emph{HTML} format. This document lists these commands and gives examples of their usage. \section{Sections and subsections} Commands: \ title\{Page title \}, \ section\{Section title\} \ subsection\{Subsection title\}. \newline Sections and subsections are automatically enumerated. All environments that have counters will have the section number in their index. \section{Math mode} \subsection{Inline formulas} Formulas can be inserted in the text using '\$' symbol the same way as it is done in TeX. \newline \begin{example} \begin{tabular}{0} \textbf{Original text} & &\textbf{Text in HTML} \\ This is a math formula: \$ x \in \mathbb\{R\}\$ & & This is a math formula: $ x \in \mathbb{R}$ \\ \end{tabular} \end{example} \subsection{Equations} Equations can be defined by using \$\$, \ [ \ ] symbols. To have numbered equations please use \begin\{equation\} and \end\{equation\}. \begin{example} \begin{tabular}{0} \textbf{Original text} & &\textbf{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\} & & \begin{equation} Third equation \mathbb{R} \end{equation} \\ \end{tabular} \end{example} \textcolor{BrickRed}{\small{Conversion of a formula itself has not been implemented yet.}} \section{Theorems} The following theorem type environments are availbale: \begin{example} \begin{tabular}{0} \textbf{Original text} & \textbf{Text in HTML} \\ \begin\{theorem\} Theorem text here \end\{theorem\} & \begin{theorem} Theorem text here \end{theorem} \\ \begin\{lemma\} Lemma text here \end\{lemma\} & \begin{lemma} Lemma text here \end{lemma} \\ \begin\{problem\} Problem text here \end\{problem\} & \begin{problem} Problem text here \end{problem} \\ \begin\{definition\} Definition text here \end\{definition\} & \begin{definition} Definition text here \end{definition} \\ \begin\{conjecture\} Conjecture text here \end\{conjecture\} & \begin{conjecture} Conjecture text here \end{conjecture} \\ \begin\{corollary\} Corollary text here \end\{corollary\} & \begin{corollary} Corollary text here \end{corollary} \\ \begin\{example\} Example text here \end\{example\} & \begin{example} Example text here \end{example} \\ \end{tabular} \end{example} \section{Lists} There are two list types availbale: enumerated and itemized. \begin{example} \begin{tabular}{0} \textbf{Original text} & \textbf{Text in HTML} \\ \begin\{itemize\} \newline \ item First item \newline \ item Second item \newline \end\{itemize\} & \begin{itemize}\item First item \item Second item \end{itemize} \\ \begin\{enumerate\} \newline \ item First item \newline \ item Second item \newline \end\{enumerate\} & \begin{enumerate}\item First item \item Second item \end{enumerate} \\ \end{tabular} \end{example} \section{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. \newline To separate cells in the row use '\&' symbol. A row should always end with \ \. \begin{example} \begin{tabular}{0} \textbf{Original text} & \textbf{Text in HTML} \\ \begin\{tabular\}\{1\} \newline Cell 1 \& Cell 2 \& Cell 3 \ \ \newline Cell 1 \& Cell 2 \& Cell 3 \ \ \newline \end\{tabular\} & \begin{tabular}{1} Cell 1 & Cell 2 & Cell 3 \\ Cell 1 & Cell 2 & Cell 3 \\ \end{tabular} \\ \end{tabular} \end{example} \begin{example} \begin{tabular}{0} \textbf{Original text} & \textbf{Text in HTML} \\ \begin\{tabular\}\{0\} \newline Cell 1 \& Cell 2 \& Cell 3 \ \ \newline Cell 1 \& Cell 2 \& Cell 3 \ \ \newline \end\{tabular\} & \begin{tabular}{0} Cell 1 & Cell 2 & Cell 3 \\ Cell 1 & Cell 2 & Cell 3 \\ \end{tabular} \\ \end{tabular} \end{example} \section{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. \begin{example} \begin{tabular}{0} \textbf{Original text} & \textbf{Text in HTML} \\ \begin\{bibliography\} \newline \ bibitem\{Author 1, Author 2\}\{Title of the publication 1,\}\{Journal name, pp.1-1, 2005.\} \newline \ bibitem\{Author 3, Author 4\}\{Title of the publication 2,\}\{Journal name, pp.10-11, 2005.\} \newline \end\{bibliography\} & \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} \\ \end{tabular} \end{example} \section{Operations with text} \subsection{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 ... \}. \newline The following commands, which are latex compatible are supported: \begin{tabular}{0} \textbf{Original text} & \textbf{Text in HTML} \\ \ emph\{ Emphasized Text \}& \emph{ Emphasized Text} \\ \ textbf\{ Bold Text \}& \textbf{Bold Text} \\ \ large\{ Larger Text \}& \large{Larger Text} \\ \ small\{ Smaller Text \}& \small{Smaller Text} \\ \end{tabular} \subsection{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. \newline Color can be defined in two ways. First as a hexadecimal number which starts with '#' and represents color in RGB format. \begin{example} \begin{tabular}{0} \textbf{Original text} & \textbf{Text in HTML} \\ \ textcolor\{#FF0000\}\{This is red color \} & \textcolor{#FF0000}{This is red color} \\ \ textcolor\{#00FF00\}\{This is green color \} & \textcolor{#00FF00}{This is green color} \\ \ textcolor\{#0000FF\}\{This is blue color \} & \textcolor{#0000FF}{This is blue color} \\ \end{tabular} \end{example} 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. \begin{tabular}{0} \textcolor{GreenYellow}{GreenYellow} & \textcolor{Yellow}{Yellow} & \textcolor{Goldenrod}{Goldenrod} & \textcolor{Dandelion}{Dandelion} & \textcolor{Apricot}{Apricot} \\ \textcolor{Peach}{Peach} & \textcolor{Melon}{Melon} & \textcolor{YellowOrange}{YellowOrange} & \textcolor{Orange}{Orange} & \textcolor{BurntOrange}{BurntOrange} \\ \textcolor{Bittersweet}{Bittersweet} & \textcolor{RedOrange}{RedOrange} & \textcolor{Mahogany}{Mahogany} & \textcolor{Maroon}{Maroon} & \textcolor{BrickRed}{BrickRed} \\ \textcolor{Red}{Red} & \textcolor{OrangeRed}{OrangeRed} & \textcolor{RubineRed}{RubineRed} & \textcolor{WildStrawberry}{WildStrawberry} & \textcolor{Salmon}{Salmon} \\ \textcolor{CarnationPink}{CarnationPink} & \textcolor{Magenta}{Magenta} & \textcolor{VioletRed}{VioletRed} & \textcolor{Rhodamine}{Rhodamine} & \textcolor{Mulberry}{Mulberry} \\ \textcolor{RedViolet}{RedViolet} & \textcolor{Fuchsia}{Fuchsia} & \textcolor{Lavender}{Lavender} & \textcolor{Thistle}{Thistle} & \textcolor{Orchid}{Orchid} \\ \textcolor{DarkOrchid}{DarkOrchid} & \textcolor{Purple}{Purple} & \textcolor{Plum}{Plum} & \textcolor{Violet}{Violet} & \textcolor{RoyalPurple}{RoyalPurple} \\ \textcolor{BlueViolet}{BlueViolet} & \textcolor{Periwinkle}{Periwinkle} & \textcolor{CadetBlue}{CadetBlue} & \textcolor{CornflowerBlue}{CornflowerBlue} & \textcolor{MidnightBlue}{MidnightBlue} \\ \textcolor{NavyBlue}{NavyBlue} & \textcolor{RoyalBlue}{RoyalBlue} & \textcolor{Blue}{Blue} & \textcolor{Cerulean}{Cerulean} & \textcolor{Cyan}{Cyan} \\ \textcolor{ProcessBlue}{ProcessBlue} & \textcolor{SkyBlue}{SkyBlue} & \textcolor{Turquoise}{Turquoise} & \textcolor{TealBlue}{TealBlue} & \textcolor{Aquamarine}{Aquamarine} \\ \textcolor{BlueGreen}{BlueGreen} & \textcolor{Emerald}{Emerald} & \textcolor{JungleGreen}{JungleGreen} & \textcolor{SeaGreen}{SeaGreen} & \textcolor{Green}{Green} \\ \textcolor{ForestGreen}{ForestGreen} & \textcolor{PineGreen}{PineGreen} & \textcolor{LimeGreen}{LimeGreen} & \textcolor{YellowGreen}{YellowGreen} & \textcolor{SpringGreen}{SpringGreen} \\ \textcolor{OliveGreen}{OliveGreen} & \textcolor{RawSienna}{RawSienna} & \textcolor{Sepia}{Sepia} & \textcolor{Brown}{Brown} & \textcolor{Tan}{Tan} \\ \textcolor{Gray}{Gray} & \textcolor{Black}{Black} & White & & \\ \end{tabular} \subsection{Other} Command \ newline starts a new line in the text. \newline Command \ centerline aligns the text in the center of the curent page. \newline Command \ hline draws a horisontal line in the current window. \newline 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. \newline Command \ image inserts an image in text. It accepts parameter which is a reference or an URL of the image. \begin{example} \begin{tabular}{0} \textbf{Original text} & \textbf{Text in HTML} \\ Old line text \ newline New lilne text & Old line text \newline New lilne text \\ \ centerline\{Centered text\} & \centerline{Centered text} \\ Text ... \ hline Text ...& Text ... \hline Text ... \\ \ link\{http://www.algebraforum.org\}\{http://www.algebraforum.org\} & \link{http://www.algebraforum.org}{http://www.algebraforum.org} \\ \ image\{http://www.algebraforum.org/images/algebraportal.gif\} & \image{http://www.algebraforum.org/images/algebraportal.gif}\\ \end{tabular} \end{example} 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. }