[comp.text] Help with removing latex commands

sanjiv@fergvax.unl.edu (Sanjiv K. Bhatia) (11/14/90)

I am looking for a program that will remove all the LaTeX specific commands
from a document while preserving the structure of the document.  I have delatex
but that removes the structure of the document.  I do not mind if things like
equations, tables, and pictures are removed.  All I am interested in is plain
ASCII text.

I have looked into dvitty but that messes up the words.

Thanks for any pointers.

Sanjiv

Sanjiv K. Bhatia				Department of Computer Science
sanjiv@fergvax.unl.edu				Ferguson Hall 115
voice: (402)-472-3485				University of Nebraska - Lincoln
fax  : (402)-472-7767				Lincoln, NE 68588-0115

piet@cs.ruu.nl (Piet van Oostrum) (11/14/90)

>>>>> In message <1990Nov13.223952.22567@hoss.unl.edu>, sanjiv@fergvax.unl.edu (Sanjiv K. Bhatia) (SKB) writes:

SKB> I am looking for a program that will remove all the LaTeX specific
SKB> commands from a document while preserving the structure of the
SKB> document.  I have delatex but that removes the structure of the
SKB> document.  I do not mind if things like equations, tables, and
SKB> pictures are removed.  All I am interested in is plain ASCII text.

If your LaTeX source is reasonably well behaved you can use emacs with
latexinfo to get a structured ASCII text out of your latex document. But
notice that there is no general completely automatic solution to this
problem (not that I know of at least). Whatever tool you use, you will
almost always have to hand-twiddle the output.
-- 
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31 30 531806   Uucp:   uunet!mcsun!ruuinf!piet
Telefax:   +31 30 513791   Internet:  piet@cs.ruu.nl   (*`Pete')