Summary
###########################################################################
File: htmltex.icn
Subject: Program to convert LaTeX to HTML
Author: Clinton L. Jeffery
Date: February 18, 2015
###########################################################################
Program that reads in documents formatted with the LaTeX typesetting
language, and changes some of the common LaTeX commands into HTML format.
Warning: the code here is a dirty hack, decades old and never engineered.
This program is NOT a full LaTeX parser, and output must typically
be further edited by hand to produce an acceptable result.
However, it is able to process enough LaTeX to produce langref.html,
the Unicon language reference in HTML format, from langref.tex.
Examples of known bugs include:
Style files are not read or used
Citations are not processed by the appropriate bibliographystyle
Procedures:
cmd2tag, debib, debrace, defootnote, deline, demacro, htmltex, include, initialize, main, mysystem
Global variables:
bibliography, date, fin, fout, in_supertabular, root, silent, vers
This file is part of the (main) package.
Source code.
cmd2tag(s)
debib(s)
extra help for .bbl files
debrace(s)
This procedure removes braces which get inserted by common single-line
environments such as font changes
Bug: should look for other ways commands are terminated besides spaces,
e.g. {\tt\em starts a tt command.
defootnote(s)
remove footnotes and similar multiline entities
all footnotes are assumed to end in }. and this is processed after
all single-line entities were already processed
deline(s)
This procedure handles macros that comprise an entire line/start a line
demacro(s)
This routine handles macros that may appear anywhere on a line
htmltex(s)
strip comments. so far we only strip entire-line comments
include(fname)
initialize()
main(args)
mysystem(s)
bibliography
date
fin
fout
in_supertabular
root
silent
vers
This page produced by UniDoc on 2021/04/15 @ 23:59:54.