[texhax] utility to strip LaTeX tags from a text document

John Murdie john at cs.york.ac.uk
Thu Jul 3 18:54:07 CEST 2003

On Thu, 2003-07-03 at 18:42, Christopher W. Ryan wrote:
> Is there a quick and easy way to remove all LaTeX tags from a text document?
> Thanks.

For Unix (includes GNU/Linux) see detex(1) -
http://www.cs.purdue.edu/homes/trinkle/detex/. I hope and believe that a
kpathsea(rch)-enabled version will be available in TeXLive 8
(http://www.tug.org/texlive/). While spelling checkers such as ispell
(http://fmg-www.cs.ucla.edu/geoff/ispell.html) and aspell
(http://aspell.sourceforge.net/) filter out (La)TeX for you, I still
find a stand-alone detex useful for preprocessing for word-counting,
grammar checking etc.

John A. Murdie

More information about the texhax mailing list