Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!knapp From: knapp@cs.utexas.edu (Edgar Knapp) Newsgroups: comp.text Subject: Re: word count on latex document Summary: use dvi2tty and wc Keywords: word count wc latex Message-ID: <605@roxor.cs.utexas.edu> Date: 1 Feb 91 17:58:55 GMT References: <5317@gara.une.oz.au> Organization: Dept of Computer Sciences, UTexas, Austin Lines: 30 In article <5317@gara.une.oz.au> ascott@gara.une.oz.au (Tony Scott STPG) writes: > > Hi there, > I need to count the number of words in a document that is >built up of latex commands. Is there something available that will >count words without taking into account words beginning with a >backslash of those within a group such as >\begin{picture}...\end{picture} etc. There is a much simpler solution. Get a program called dvi2tty which allows you to preview a dvi file on a line oriented device (terminal, line printer). Pipe its output thorugh wc---voila. So if your file is called foo.tex, say dvi2tty foo | wc dvi2tty is available via anonymous ftp from a number of archives around the country, including sun.soe.clarkson.edu (128.153.12.3) on directory /pub/tex/tex-programs/dvitty; wc is a standard unix utitlity. > >Thanks for your help. >Tony Scott My pleasure. Edgar (knapp@cs.utexas.edu)