These files allow one to print HTML files using LaTex.  They were
designed for use with the Viola WWW browser, but should be adaptable
for other purposes.

print-www - script to print WWW files

print-www.l man page for it

html-to-latex  - script which converts HTML file to LaTex.

html2latex.sed - sed script used by it it uses.  This is an
improvement over the version created by the WWW folks at CERN, which
was, I think, specialized for creating the WWW book.

To use with Viola WWW, you must modify www.v, which defines the layout
and function of the windows.  Search for 
 case "print":
(which should be part of the definition for {www.doc.view.html}.
Replace the existing code with:

	case "print":
		/* Print by converting to LaTex.  See warnings in the scipts.
                 *  Note that it's silly to fetch the html file again when we already 
		 *  have it, but such is life 
                */
                www.mesg.tf("flash", "Trying LaTex WWW printer");
                if (system(concatenate("print-www " , get("HTMLAddress"))) == 0) {
                    www.mesg.tf("flash", "It worked.");
                } else {
                    www.mesg.tf("flash", "print failed, using old method");
   		    lprCmd = environVar("WWW_LPR");
		    if (isBlank(lprCmd)) lprCmd = "lpr ";
		    tmp = concatenate(makeTempFile(), ".html");
		    www.mesg.tf("flash", 
			concatenate("Printing command: ", lprCmd));
		    system(concatenate("www -n ", get("HTMLAddress"), " > ", tmp));
		    system(concatenate(lprCmd, " ", tmp));
		    system(concatenate("rm -f ", tmp));
                }
		return;

