Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
From: Ian Hutchinson <hutch@PSFC.MIT.EDU>
Subject: Plain TeX to HTML translator, tth, available.
Date: 1997/03/24	[thread overview]
Message-ID: <pgpmoose.199703242009.9370@liw.clinet.fi> (raw)


-----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 <title> 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-----



                 reply	other threads:[~1997-03-24  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox