Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 6487

Macaulay2-1.3.1-8.fc15.i686.rpm

<?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: &lt;i>a &amp;times;&amp;nbsp;b/c&lt;sup>3&lt;/sup>&lt;/i></pre>
</td></tr>
</table>
<p>Here is the way the TeX above appears if used in documentation: A formula: <i>a &times;&nbsp;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&times;&nbsp;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 &ldquo;formula&rdquo; <b>can be</b> &lsquo;printed&rsquo;. </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>,&hellip;,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&amp;4&amp;x^2+1\\5&amp;6&amp;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> &isin;&#x211D;, <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>&times;</sup>, x<sub>i,j</sub></i></p>
</li>
<li><p><tt>TEX ///\"a \"o \"u \# \&amp; \'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>&auml; &ouml; &uuml; # &amp; &eacute; <i>x&nbsp;&nbsp;&nbsp;y</i> &acirc; &ecirc; &egrave; &#x2115;&#x211A;&#x211D;&#x2124;&#x2119;&Gamma;&Lambda;&Omega;&Psi;&Theta;&aleph;&alpha;</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>\&beta;&beth;&bull;&cap;&hellip;a &#8773;b cosx + a &cup;b, &daleth;&delta;<em>l</em>&Oslash</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>&epsilon;&equiv;&exist;&forall;&gamma;&ge;&gimel;&ge;&infin;&isin;&int;x &lambda;...&larr;a &le;b &le;c</p>
</li>
<li><p><tt>TEX ///$4 &lt; 5 &lt; 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 &lt; 5 &lt; 6 > 3 > 2, &mu;&rarr;&mu;<sup>2</sup>, {x &nbsp;|&nbsp;x &isin;&#x2124;, x &ne;0, x &#8773; 3 mod&nbsp;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 &nu;&omega;&oplus;&otimes;&part;&phi;<br>&pi;x&prime;</p>
</li>
<li><p><tt>TEX ///\prod_{i \in \ZZ} x_i///</tt></p>
<p><em>will display as</em></p>
<p>&prod;<sub>i &isin;&#x2124;</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>&psi;+ &rho;&rarr;A&#92;B, &sigma;, sin1.1, A &sub;B, C &sube;D, E &sup;F, G &supe;H</i></p>
</li>
<li><p><tt>TEX ///\sum_{i=1}^n y_i///</tt></p>
<p><em>will display as</em></p>
<p>&sum;<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>&tau; + &theta; &rarr; x &and; &weierp; + &xi; - {&zeta;}</p>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>