%\documentstyle[12pt,amssymb,latexsym,export]{report} %For L2E, use: \documentclass[12pt]{report} \usepackage{amssymb,latexsym,bitmap,export} \setlength{\topmargin}{0.0in} \setlength{\textheight}{21.5cm} \setlength{\evensidemargin}{0.35in} \setlength{\oddsidemargin}{0.35in} \setlength{\headsep}{0.1cm} \setlength{\textwidth}{15.0cm} \setlength{\parindent}{0.6cm} \setlength{\unitlength}{1mm} \renewcommand{\theequation}{\arabic{section}.\arabic{equation}} \def\neweq{\setcounter{equation}{0}} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{definition}[theorem]{Definition} \newtheorem{conjecture}[theorem]{Conjecture} \newtheorem{remark}[theorem]{Remark} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{fact}[theorem]{Fact} \newtheorem{example}[theorem]{Example} \newtheorem{axiom}[theorem]{Axiom} \newtheorem{property}[theorem]{Property} \def\proof{\smallskip\noindent {\it Proof --- \ }} \def\endproof{\hfill$\square$\medskip} \def\str{\rule[-.2cm]{0cm}{0.7cm}} \def\beq{\begin{equation}} \def\eeq{\end{equation}} \def\pa{\partial} \def\S{\mathfrak{S}} \def\Q{{\cal{Q}}} \def\HQ{{\cal HQ}} \def\P{\mathbb{P}} \def\M{{\cal M}} \def\O{\Omega} \def\bO{\overline{\Omega}} \def\bs{\overline{\sigma}} \def\CH{{\rm CH}} \def\H{{\rm H}} \def\QH{{\rm QH}} \def\D{{\cal D}} \def\l{\ell} \def\E{{\cal E}} \def\B{{\cal B}} \def\point{\textbf{.}} \def\s{\sigma} \def\pfl{} % (\P^1,Fl_n) \def\<{\langle\kern-.08cm\langle} \def\>{\rangle\kern-.08cm\rangle} \def\tE{\widetilde E} \def\X{{\mathcal X}} \def\tX{\widetilde \X} \def\ttX{{\buildrel\approx\over \X}} \def\zplusq{{\mathbb{Z}_+[q]}} \def\ibid{{---------}} \def\wnot{w_\mathrm{o}} \def\Z{\mathbb{Z}} \def\wt{\widetilde} \def\TeXspider{TeXpider} \date{June 10, 1997} \title{ \centerline{\textbf{MicroPress {\TeXspider}}} \footnotetext[0]{ \emph{Subject Classification: } \LaTeX\ to HTML converter which actually works.} \footnotetext[0]{ \emph{Key words and phrases.} \LaTeX\ to HTML, Web building tools, new powerful V\TeX\ add-on, another First from MicroPress.} \footnotetext[0]{ This description has been formatted as a {\tt report}. In most cases, {\tt article} would have been more prudent, but we want to show-off the automatically generated Table of Contents. You can look at its \LaTeX\ source to realize what MicroPress {\TeXspider} did here and can do with your documents. } } \author{% MicroPress Inc.\\[.2in] } \begin{document} \maketitle \begin{abstract} MicroPress {\TeXspider} is yet another \LaTeX-to-HTML converter, but with a twist: it actually works. It will not run out of memory, will not complain about user-defined macros and will not require you to introduce drastic modifications to you source. It will simply do the job. \end{abstract} %\split{tableofcontents} \tableofcontents \chapter{Introduction} \label{sec:intro} \neweq MicroPress {\TeXspider} is a modified \TeX\ compiler which produces HTML output instead of usual {\tt .dvi}'s. Being driven by a \TeX\ engine it naturally supports full \TeX\ syntax: variables, macros, stylesheets. Producing HTML directly makes it easy-to-use: all you need to do is to run a single command-line program---or---run it from the MicroPress V\TeX/Windows shell. \chapter{Simple Formatting} \label{sec:tandm} \neweq The {\TeXspider} can easily handle most common \TeX\ formatting. Here we will show just some commands environments that are supported: \smallskip \begin{center} This is an example of a centered text ({\tt center}). \end{center} \smallskip \begin{flushleft} This is an example of a left-aligned text ({\tt flushleft}). \end{flushleft} \smallskip \begin{flushright} This is an example of a centered text ({\tt flushright}). \end{flushright} \medskip \begin{quote} This is an example of a {\tt quote}. Well, we have really nothing to quote yet, so the text here is just a filler. But it works, right? \end{quote} \medskip \begin{quotation} This is an example of a {\tt quotation}. Well, we still have a difficulty with wording, so the text here is again just a filler. But it works, right? \end{quotation} \medskip \begin{verse} MicroPress {\TeXspider} is real easy.\\ To try it now, is not it teasing?\\ You article, paper, book or report...\\ If you want it on Web then {\TeXspider} will port! \end{verse} \noindent [If you do not appreciate the {\tt verse's} above, you are not alone: but we needed a {\em filller} here.] \chapter{Lists} \label{sec:lists} Here is a simple list (it also shows the usage of \TeX\ font commands). \begin{itemize} \item {\rm Roman Font, \Large Large Roman Font} \item {\bf Bold Font, \Large Large Bold Font} \item {\it Italics font, \Large Large Italics Font} \item {\sf San-Serif font, \Large Large San-Serif Font} \item {\sc Small-caps font. \Large Large Small-caps Font} \end{itemize} \bigskip To show the Small versions of the standard fonts, we shall use {\tt enumerate}: \begin{enumerate} \item {\rm Roman Font, \small Small Roman Font} \item {\bf Bold Font, \small Small Bold Font} \item {\it Italics font, \small Small Italics Font} \item {\sf San-Serif font, \small Small San-Serif Font} \item {\sc Small-caps font. \small Small Small-caps Font} \end{enumerate} \bigskip The other commonly used list is the {\tt description}: \begin{description} \item[Roman] normally mapped into Times-Roman\footnote{trademark} \item[Bold] normally mapped into Times-Roman-Bold\footnote{another trademark} \item[Italics] normally mapped into Times-Italics\footnote{yet another trademark} \item[San-Serif] normally mapped into Arial/Helvetica\footnote{two more trademarks here} \end{description} \bigskip Since we unexpectedly gotten into footnotes here, note that since HTML has no pages and no page bottoms, the footnotes are treated as endnotes. This change to TeX's normal behaviour is done by {\tt export.sty}. \chapter{Tables} {\TeXspider} formats the tables into HTML tables. In most cases it is sufficient and is the best way. If your tables are too complex, it can also format them via \TeX\ and merge into the document as graphics. \newcommand{\AmS}{{\protect\the\textfont2 A\kern-.1667em\lower.5ex\hbox{M}\kern-.125emS}} The examples in this sections are borrowed from the \AmS\LaTeX\ user guide. We included a paragraph of text preceding each example, just to show the flavor. \smallskip \newcommand{\autoindex}{\index} \chardef\bslash=`\\ % p. 424, TeXbook % control sequence \newcommand{\cs}{\protect\pcs} \newcommand{\pcs}[1]{{\ntt\bslash#1}{\let\-\empty \autoindex{#1@{\string\ntt\bslash#1}}}} \newcommand{\opt}{\protect\popt} \newcommand{\popt}[1]{{\ntt#1}{\let\-\empty \autoindex{#1@{\string\ntt{}#1} option}}} \newcommand{\ntt}{\tt} \begin{example} Notice that by default bold fonts come from the Bold Expanded series rather than the Bold series. A comparison of the bold Computer Modern fonts provided in standard distributions of \TeX{} shows why: \end{example} \begin{tabular}{|l|lll|} \hline Bold& \multicolumn{3}{c|}{Bold Expanded}\\[2pt] \hline {\tt cmb10}& {\tt cmbxsl8}& {\tt cmbx5}& {\tt cmbx9}\\ & {\tt cmbxsl10}& {\tt cmbx6}& {\tt cmbx10}\\ & {\tt cmbxti7}& {\tt cmbx7}& {\tt cmbx12}\\ & {\tt cmbxti10}& {\tt cmbx8}&\\ \hline \end{tabular} \begin{example} Just for the sake of a comparison, the same table done as a gif: \end{example} \[\begin{tabular}{|l|lll|} \hline Bold& \multicolumn{3}{c|}{Bold Expanded}\\[2pt] \hline {\tt cmb10}& {\tt cmbxsl8}& {\tt cmbx5}& {\tt cmbx9}\\ & {\tt cmbxsl10}& {\tt cmbx6}& {\tt cmbx10}\\ & {\tt cmbxti7}& {\tt cmbx7}& {\tt cmbx12}\\ & {\tt cmbxti10}& {\tt cmbx8}&\\ \hline \end{tabular}\] \smallskip \begin{example} When scaling up fonts to sizes larger than their original size, the best strategy normally is to follow a {\it magstep\/} progression rather than using exact point sizes: \end{example} \begin{center} \begin{tabular}{|ll|} \hline at 10.95pt& instead of at 11pt\\ at 12pt& no change\\ at 14.4pt& instead of at 14pt\\ at 17.28pt& instead of at 17pt\\ at 20.74pt& instead of at 20pt\\ at 24.88pt& instead of at 25pt\\ \hline \end{tabular} \end{center} \begin{example} The full list of math font commands in the \opt{amstex} option is \cs{mathrm}, \cs{bold}, \cs{cal}, with the addition of \cs{frak} (Fraktur) and \cs{Bbb} (blackboard bold) if AMSFonts are available. Math italic, the default font for letters in math, also has a name, \cs{mit}, but this is never needed in ordinary use. Tables \ref{fonttable} and~\ref{mathfonts} give a comprehensive listing of font change commands for convenient reference. \end{example} \begin{table}[htp] \chardef\{=`\{ \chardef\}=`\} \caption[]{Font commands used in text} \label{fonttable} \begin{center} \begin{tabular}{|lll|} \hline \multicolumn{1}{|l}{Font command}& Equivalent& Font selected\\ \hline \cs{normalshape}& \tt\cs{shape}\{n\}& normal, upright, ``roman''\\ \cs{it}& \tt\cs{shape}\{it\}& italic\\ \cs{em}& \tt\cs{shape}\{it\}$^*$ & emphasis\\ \cs{sl}& \tt\cs{shape}\{sl\}& slanted\\ \cs{sc}& \tt\cs{shape}\{sc\}& small caps\\ \cs{mediumseries}& \tt\cs{series}\{m\}& medium weight\\ \cs{bf}& \tt\cs{series}\{bx\}& bold extended weight\\ \cs{tt}& \tt\cs{family}\{cmtt\}& typewriter style\\ \cs{sf}& \tt\cs{family}\{cmss\}& sans serif\\ \cs{rm}& \tt\cs{family}\{cmr\}& roman\\ \hline \multicolumn{3}{|l|}{\parbox{20pc}{$^*$\strut The command \cs{em} selects shape {\tt it} if the current font is upright, otherwise it selects shape {\tt n} (normal).}}\\[6pt] \hline \end{tabular} \end{center} \end{table} \chapter{Mathematics} Since HTML is not very strong on math, {\TeXspider} has to do most of the work here. \TeX\ mathematics is handled automatically. Here are a few equations in no particular order: \begin{equation} \label{eq:H*q} \QH^*(Fl_n\,,\mathbb{Z})\cong \mathbb{Z}[q_1,\dots,q_{n-1}][x_1,\dots,x_n]/I^q_n\ , \end{equation} \smallskip \hrule \smallskip \begin{equation} \label{eq:G_n} G_n= \left( \begin{array}{ccccc} x_1 & q_1 & 0 & \cdots & 0 \\ -1 & x_2 & q_2 & \cdots & 0 \\ 0 & -1 & x_3 & \cdots & 0 \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & 0 & \cdots & x_n \end{array} \right)\ . \end{equation} \smallskip \hrule \smallskip \begin{equation} \label{eq:1.1} \begin{array}{l} \pa_i\, \pa_j = \pa_j\, \pa_i\textrm{ \ for }|i-j|>1\ ,\\[.1in] \pa_i\,\pa_{i+1}\,\pa_i =\pa_{i+1}\,\pa_i\,\pa_{i+1}\ ,\\[.1in] \pa_i^2 = 0\ . \end{array} \end{equation} \smallskip \hrule \smallskip \begin{equation} \langle w_{+}-w_{-}\circ \s ,i\partial _{x}\zeta _{+}\rangle=0 \ \ \ {\rm on} \ \ \ S^{1}=\bar{\Omega }_{+}\cap \bar{\Omega }_{-}. \end{equation} \smallskip \hrule \smallskip \begin{equation} \bigtriangledown\times F={1\over r^2\sin\varphi}\left\vert \matrix{u_r & ru_\varphi & r\sin\varphi u_\theta \cr \partial\;\over\partial r & \partial\;\over\partial\varphi & \partial\;\over\partial\theta \cr F_r & rF_\varphi & r\sin\varphi F_\theta}\right\vert \end{equation} \smallskip \hrule \smallskip Aligned equations are built using both \TeX\ and HTML: \smallskip \hrule \smallskip \begin{eqnarray*} E_i^k(\X)(g) &=& \bigl(E_i^{k-1}(\X)+\X_kE_{i-1}^{k-1}(\X)+q_{k-1}E_{i-2}^{k-2}(\X)\bigr)(g)\\[.1in] &=& e_i^{k-1}g+\X_k(e_{i-1}^{k-1}g)+q_{k-1}e_{i-2}^{k-2}g \\[.1in] &=& e_i^{k-1}g+x_ke_{i-1}^{k-1}g -q_{k-1}\pa_{k-1}e_{i-1}^{k-1}g +q_{k-1}e_{i-2}^{k-2}g\\[.1in] &=& e_i^{k-1}g+x_k e_{i-1}^{k-1}g\\[.1in] &=& e_i^k\,g\ . \hskip11cm \square \end{eqnarray*} \smallskip \hrule \smallskip \begin{eqnarray} \ \ \ \ \ \ \; \langle \frac{1}{\rho _{+}} \nabla p_{+}-\frac{1}{\rho _{-}}\nabla p_{-} ,\nu \rangle &=& \langle (\ddot{\zeta} _{+}+(0,1))\circ \zeta _{+}^{-1}-(\ddot{\zeta }_{-}+(0,1))\circ \zeta _{-}^{-1},\nu \rangle \\ & & \rm{ on} \;\;\zeta _{+}(S^{1}) \nonumber \end{eqnarray} \smallskip \hrule \smallskip You can refer to equations in text in a normal way. Try going to \ref{eq:1.1}, or \ref{eq:G_n}, or \ref{eq:H*q}. \chapter{Graphics} Full version of the {\TeXspider}, like V\TeX, allows to include graphics in the following formats: \begin{itemize} \item GIF \item JPEG \item TIFF \item BMP \item PCX \item TARGA \item PNG \item EPS \end{itemize} \bigskip \begin{example}Plato described these five ``perfect'' geometric bodies: \end{example} \medskip \begin{tabular}{l|c} Cube & \InsertBitmapX[b]{80.00pt}{1.00}{./cube.gif} \\ Octahedron & \InsertBitmapX[b]{90.00pt}{1.00}{./octa.gif} \\ Icosahedron & \InsertBitmapX[c]{100.00pt}{1.00}{./icosa.gif} \\ Dodecahedron & \InsertBitmapX[t]{110.00pt}{1.00}{./dodeca.gif} \\ Tetrahedron & \InsertBitmapX[t]{120.00pt}{1.00}{./tetra.gif} \end{tabular} %\end{example} \end{document}