From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,c879188e744c33eb,start X-Google-Attributes: gid10d4db,public From: Ian Hutchinson Subject: Plain TeX to HTML translator, tth, available. Date: 1997/03/24 Message-ID: #1/1 X-Deja-AN: 228012854 X-Server-Date: 24 Mar 1997 18:10:05 GMT Followup-To: comp.os.linux.misc Old-Date: Sun, 23 Mar 1997 18:35:36 -0500 Organization: MIT X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce Newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- The translator tth is available from http://venus.pfc.mit.edu/tth/tth.html where can be found source and executables for Linux and DOS. (It has also been compiled and run under Open VMS). tth converts TeX that uses the plain macro package (not LaTeX) into a near equivalent HTML. It can't do a perfect job, of course, because HTML is not capable of many of TeX's more subtle tricks. Nevertheless, on TeX files that are predominantly text and use standard constructs and macros, the results are rather satisfactory. LaTeX has its own translator, latex2html, which is recommended for LaTeX code. tth is extremely fast in default mode on any reasonable hardware. Conversion of even large TeX files should be a matter of a second or two. It is freely distributed. Ian Hutchinson. (hutch@pfc.mit.edu) Capabilities ____________ tth handles TeX things like: {} \begingroup\endgroup grouping. \it \bf \sl etc styles. \beginsection. \centerline{}. \item{...} \itemitem{...} {\obeylines ...}. Almost all accented latin characters written like \"o. \hang \hangindent \narrower for entire paragraphs (\hangafter ignored). \headline is made into a title. % Comments. Simply removed. \halign tables, checks template for the presence of \vrule, to decide if the table is to be border style. \input: But not from the implicit texinputs path. \newcount, \number, \advance and counter setting. \def, \edef, \xdef but no delimited arguments. All definitions are global. Equations are, by default, translated internally into HTML3.2 as much as it allows, which is not all that much, since HTML3.2 has virtually no support for symbols, greek, and so on. Roughly speaking, superscripts, subscripts, and latin characters are supported. Untranslatable TeX math tokens are inserted verbatim. Alternatively, translation can call the math2html program (available from CERN) to output equation code conforming to the HTML3.0 draft standard, which is not currently (Mar 97) supported by any common web browser. This last fact makes the alternate translation generally less useful. Moreover, you have to get the program math2html yourself and install it. Look at http://wwwcn.cern.ch/asdoc/WWW/math2html/paper/math2html_1.html. math2html tends to crash unpleasantly if it can't find its files. A few non-standard TeX commands are supported. \title{ } Makes an HTML as well as putting in a centered header. \epsfbox{file.eps} Puts in an anchor called "Figure" linked to file.eps. \special{html:"tags"} inserts "tags" into the HTML e.g. for images etc. \href{reference}{anchor} highlights "anchor" with href="reference". When tth encounters TeX constructs that it cannot handle either because there is no HTML equivalent, or because it is not smart enough, it tries to remove the mess they would otherwise cause in the HTML code, generally giving a warning of the action if it is not sure what it is doing. The following are examples of constructs not translated. \fonts: Tries to remove the whole construct. (Currently the whole line). \magnification \magstep etc : Removes the whole construct. \parindent \h/vskip \h/vsize etc: Removes the whole construct. Any dimension commands: removed. \settabs \+ style tables, lines are separated but not tabbed. All conditionals e.g. if fi, and boxes, etc: removed. - -- This article has been digitally signed by the moderator, using PGP. http://www.iki.fi/liw/lars-public-key.asc has PGP key for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION. This group is archived at http://www.iki.fi/liw/linux/cola.html -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv iQCVAwUBMzbDc4QRll5MupLRAQG4nwQAprPj8pHamIF43xqhcDBfCbe5DFDBbMfF NIdI+qDFqXLzPpeCQwDzx1GPuAsWOVWZHxSKp0762a6IekdlOB195dapL60Jhlci LPkVE/a9vOJ19OkP7VPVkLRfUqWwpZKSvddlDfLQ4DWvZ3m/Ezshx5t+Ee8V+oy+ /VYgnJcyLh8= =m5Pl -----END PGP SIGNATURE-----