There's detex (http://www.ctan.org/tex-archive/support/detex/) which removes latex commands from source; and there's dvi2tty (I'm pretty sure it's available through dselect) which prints dvi output to the terminal so you can do dvi2tty foo.dvi | wc -w . Note that dvi2tty is somewhat inaccurate since words that are hyphenated end up counted twice (once on each line).
---------------------------------------------------------------------- Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology (Soon: Asst Professor of Sociology, U of North Carolina, Chapel Hill) [EMAIL PROTECTED] - http://www.unc.edu/~aperrin On Sun, 15 Apr 2001, Neil Conway wrote: > Hi all, > > I'm looking for a way to count the number of works in a LaTeX document. > I need the number of words that will be produced in the output, not > the number of words in the source document (i.e. so 'wc -w' is > inaccurate). > > Does such a package exist? Or is there some other way to do this? > > TIA, > > Neil > > -- > Neil Conway <[EMAIL PROTECTED]> > Get my GnuPG key from: http://klamath.dyndns.org/mykey.asc > Encrypted mail welcomed > > I've made up my mind. Don't try to confuse me with the facts. > -- Indiana Senator Earl Landgrebe >