Currently, the following example translators are provided:
Description
l2x is a general-purpose LaTeX converter. It consists of a
parser written in C, which then calls Tcl functions for each LaTeXfunction. The Tcl functions return the translated value.Installation
The newest version of this package is available via
the web page. It is
a gzip'ed tar file. You must have the Tcl libraries (version 7.5 or
higher) installed, for example obtained from the Sun
Tcl site. Edit the Makefile
for the correct location of the Tcl library and include files and type
make.Usage
To translate the LaTeX file input.tex using the translator l2ms.tcl:
l2x l2ms.tcl paper.tex
The application lf is a filter that removes blank lines and,
with the -b flag specified, initial blank space on lines. It is
intended for nroff conversion. The application pgstrip removes extra
blank lines from the beginning of a page and is due to Jon Postel.
The script fix.sh processes an RFC or Internet Draft, including
the necessary stripping of backspaces and the conversion of FORMFEED
to real formfeeds (control-L).
Limitations
Currently, only a subset of LaTeX commands is supported. Many are easy
to add, but the following might require more work, albeit mostly limited
to writing new Tcl functions: