<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>html(TEX) -- conversion of TeX to html</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___Hypertext.html">next</a> | <a href="___H__T__M__L.html">previous</a> | <a href="___Hypertext.html">forward</a> | <a href="___H__T__M__L.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>html(TEX) -- conversion of TeX to html</h1> <div class="single"><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>html t</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="../../Macaulay2Doc/html/_html.html" title="convert hypertext to html format">html</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>t</tt>, <span>an object of class <a href="___T__E__X.html" title="hypertext TEX item">TEX</a></span></span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="../../Macaulay2Doc/html/___String.html">string</a></span>, a string containing the result of converting <tt>t</tt> to html</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>This method handles conversion to html, but only for a limited subset of TeX. Nevertheless, it can be useful in documentation nodes. It is useful to use strings delimited by <tt>///</tt> (missing documentation<!-- tag: /// -->), because in strings delimited by <tt>"</tt> (missing documentation<!-- tag: " -->), the backslashes often used in TeX must be doubled.<table class="examples"><tr><td><pre>i1 : TEX ///A formula: $a \times \ {b\over c^3}$/// o1 = A formula: $a \times \ {b\over c^3}$ o1 : TEX</pre> </td></tr> <tr><td><pre>i2 : html oo o2 = A formula: <i>a &times;&nbsp;b/c<sup>3</sup></i></pre> </td></tr> </table> <p>Here is the way the TeX above appears if used in documentation: A formula: <i>a × b/c<sup>3</sup></i>.</p> <p>Here are some examples designed to illustrate each feature of TeX we've implemented. (This documentation page should be viewed in its html form.)</p> <ul><li><p><tt>TEX ///A formula: $a\times \ {b\over c^3}$///</tt></p> <p><em>will display as</em></p> <p>A formula: <i>a× b/c<sup>3</sup></i></p> </li> <li><p><tt>TEX ///A ``formula'' {\bf can be} `printed'. ///</tt></p> <p><em>will display as</em></p> <p>A “formula” <b>can be</b> ‘printed’. </p> </li> <li><p><tt>TEX ///A formula, $$\{x_1^2,\dots,x_n^2\},$$ can be displayed.///</tt></p> <p><em>will display as</em></p> <p>A formula, <p align=center><i>{x<sub>1</sub><sup>2</sup>,…,x<sub>n</sub><sup>2</sup>},</i></p> can be displayed.</p> </li> <li><p><tt>TEX ///Matrices can be displayed if there is only one of them in the string: $$\begin{pmatrix}3&4&x^2+1\\5&6&7\end{pmatrix}.$$///</tt></p> <p><em>will display as</em></p> <p>Matrices can be displayed if there is only one of them in the string: <p align=center><i> <table class="matrix" border=1><tr><td><table><tr><td>3</td><td>4</td><td>x<sup>2</sup>+1</td></tr><tr><td>5</td><td>6</td><td>7</td></tr></table></td></tr></table> .</i></p></p> </li> <li><p><tt>TEX ///${\mathbf a+b+c} \in {\mathbb R}, {\mathcal 1234}, 1234$///</tt></p> <p><em>will display as</em></p> <p><i><b>a+b+c</b> ∈ℝ, <i>1234</i>, 1234</i></p> </li> <li><p><tt>TEX ///{\tt res(Module)} is the {\cal method} for {\em making} {\it resolutions}.///</tt></p> <p><em>will display as</em></p> <p><tt>res(Module)</tt> is the <i>method</i> for <em>making</em> <i>resolutions</i>.</p> </li> <li><p><tt>TEX ///\url{http://www.math.uiuc.edu/Macaulay2/}///</tt></p> <p><em>will display as</em></p> <p><a href="http://www.math.uiuc.edu/Macaulay2/" target=blank>http://www.math.uiuc.edu/Macaulay2/</a></p> </li> <li><p><tt>TEX ///$\frac x4 + \frac{x^2+1}{y+3} + {3\over 4}$///</tt></p> <p><em>will display as</em></p> <p><i>x/4 + (x<sup>2</sup>+1)/(y+3) + 3/4</i></p> </li> <li><p><tt>TEX ///$R^\times, x_{i,j}$///</tt></p> <p><em>will display as</em></p> <p><i>R<sup>×</sup>, x<sub>i,j</sub></i></p> </li> <li><p><tt>TEX ///\"a \"o \"u \# \& \'e $x\,\,\,y$ \^a \^e \`e \NN \QQ \RR \ZZ \PP \Gamma \Lambda \Omega \Psi \Theta \aleph \alpha///</tt></p> <p><em>will display as</em></p> <p>ä ö ü # & é <i>x y</i> â ê è ℕℚℝℤℙΓΛΩΨΘℵα</p> </li> <li><p><tt>TEX ///\backslash \beta \beth \bullet \cap \cdots a \cong b \cos x + a \cup b, \daleth \delta \ell \emptyset///</tt></p> <p><em>will display as</em></p> <p>\βℶ•∩…a ≅b cosx + a ∪b, ℸδ<em>l</em>Ø</p> </li> <li><p><tt>TEX ///\epsilon \equiv \exists \forall \gamma \ge \gimel \ge \infty \in \int x \lambda \ldots \leftarrow a \le b \leq c///</tt></p> <p><em>will display as</em></p> <p>ε≡∃∀γ≥ℷ≥∞∈∫x λ...←a ≤b ≤c</p> </li> <li><p><tt>TEX ///$4 < 5 < 6 > 3 > 2, \mu \mapsto \mu^2, \{x \mid x \in \ZZ, x \ne 0, x \cong{} 3 \mod\ 11\}$///</tt></p> <p><em>will display as</em></p> <p><i>4 < 5 < 6 > 3 > 2, μ→μ<sup>2</sup>, {x | x ∈ℤ, x ≠0, x ≅ 3 mod 11}</i></p> </li> <li><p><tt>TEX ///\par 1 2\break 3 4 5\break 6 7 \nu \omega \oplus \otimes \partial \phi \break \pi x\prime///</tt></p> <p><em>will display as</em></p> <p><p>1 2<br>3 4 5<br>6 7 νω⊕⊗∂φ<br>πx′</p> </li> <li><p><tt>TEX ///\prod_{i \in \ZZ} x_i///</tt></p> <p><em>will display as</em></p> <p>∏<sub>i ∈ℤ</sub> x<sub>i</sub></p> </li> <li><p><tt>TEX ///$\psi + \rho \rightarrow A\setminus B, \sigma, \sin 1.1, A \subset B, C \subseteq D, E \supset F, G \supseteq H$///</tt></p> <p><em>will display as</em></p> <p><i>ψ+ ρ→A\B, σ, sin1.1, A ⊂B, C ⊆D, E ⊃F, G ⊇H</i></p> </li> <li><p><tt>TEX ///\sum_{i=1}^n y_i///</tt></p> <p><em>will display as</em></p> <p>∑<sub>i=1</sub><sup>n</sup> y<sub>i</sub></p> </li> <li><p><tt>TEX ///\tau{} + \theta{} \to{} x \wedge{} \wp{} + \xi{} - \lbrace\zeta\rbrace///</tt></p> <p><em>will display as</em></p> <p>τ + θ → x ∧ ℘ + ξ - {ζ}</p> </li> </ul> </div> </div> </div> </body> </html>