Intrigued by Ralph's suggestion, I looked around in my linux box, and I found
detex, which can strip off latex code.

This is a way of getting a word coung using both detex and wc in a single call:

detex myfile.tex | wc -w


For detex to work, you might need to change the environment variable TEXINPUTS
(in my case it kept complaining about too long a path so I just did 
export TEXINPUTS=. in a bash shell).

Ramon


On Tue, 09 May 2000, Ralph Boland wrote:
> Shawn Koons wrote:
> > 
> > Hello:
> > 
> > Forgive this possible faq, but is there a way to do a word count in lyx
> > (I have checked the documentation and found nothing) - or - should I
> > convert to ascii and check it that way?
> > 
> > Shawn
> > --
> > Mitakuye Oyasin
> 
> If you run the spell checker it will tell you how many words 
> were checked.  
> 
> Alternatively export the file to a latex file.
> There is supposed to be a program to strip out all the
> latex commands.  Then you can use wc.
> 
> I don't know what the program to strip out latex
> commands is called but perhaps
> you can use that.
> If I find out the name I'll let you know.
> Hope this helps 
> 
> Ralph boland

Reply via email to