untex – Strip (La)TeX commands from source file
The program will remove “some LaTeX commands” from a file (it will optionally try to strip out all mathematics, too). It also has an option to honour \input and \include commands in the file.
The program is distributed as C source in a .tar.gz file.
GNU General Public License
derive plain text from a TeX document
Maybe you are interested in the following packages as well.
- asc2tex: Retrieve text from screenshots
- txt: Output documents via terminals, line printers, etc
- dvitty: A plain-text output DVI driver
- vutex: View TeX output on an ASCII-only terminal