Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* latex2html---the next generation
@ 1996-06-22  2:52 David Mosberger-Tang
  0 siblings, 0 replies; only message in thread
From: David Mosberger-Tang @ 1996-06-22  2:52 UTC (permalink / raw)


Some of you may remember that a while ago I was grumbling about how
easy it is to waste time trying to get latex2html to do what you want.
Well, I finally got tired enough of it that I wrote a replacement
translator in C.  It's just a quick three-day hack so its
user-interface and fanciness are certainly lacking, but I think the
basics are sound (in my own, totally biased opinion... ;-)  Even
so, it has some features that might be interesting:

	- it's fast

	- it's completely standalone as long as you don't want to
	  include ps figures

	- ps figures can be included, but you'll need a reasonably
	  recent version of ghostscript (e.g., 2.6.2) and ppmtogif

	- it's _really_ fast

	- tables generated as HTML tables (i.e., no ugly gif images)

The most glaring omission is the absence of support for math mode.  I
think it would be reasonably easy to implement it using HTML3, but I
just don't do enough math to make this worthwhile for me.

Just to backup my claims on speed a little, here some numbers.
latex2html-95 is the well-known perl translator, sdoc2html the
replacement:

                        make figures:   figures exist:
        latex2html-95:  118.87sec       42.41sec
        sdoc2html:        8.01sec        0.40sec

The "make figures" column gives the time when starting from scratch
(i.e., all figures have to be generated).  The "figures exist" column
gives the time when the figures have been translated to gif already.
The figure->gif translation uses ghostscript and that is the reason
it's so much slower.  But in any case, sdoc2html is comfortably fast.
In fact, LaTeX-2e takes 6 seconds to translate the same file into .dvi
format.

Oh, in case you think this has nothing to do with Linux/Alpha: the
numbers were measured on an AlphaStation 500/6 333 running
Linux/Alpha... ;-)

The program is by no means complete, but if anybody is interested in
making it better, just give a holler.

So, now back to work...

	--david

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-06-22  2:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-22  2:52 latex2html---the next generation David Mosberger-Tang

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