On Fri, 3 May 2002, Tuukka Toivonen wrote:

>On Fri, 3 May 2002, R.G.N. Meegama wrote:
>
>>How can I count the total number of words (including the words in
>>figure captions) in a lyx document ?
>
>The spellchecker tells the word count after it's finished. But I don't know
>if it includes captions etc., try it.
>

If you are using a *nix, you can strip all the lyx and latex lines from 
the file and pipe the text only to wc. The idea is not mine and appeared 
on this list about half a year ago. I have the command in a script that is 
sometimes useful.

grep -v "[\]" $1|grep -v "$L yx 1.1" |grep -v "^$"

If you understand this, you should be able to figure out what to do with
it. Make sure to do the right thing with the "$1" (replace with file name
or put it back into a script so the $1 makes sense).

If your are using windows, you have my pity.

-- 
Mark Hansel
PO Box 41
Minnesota State University Moorhead
Moorhead, MN 56563
ph: 218-236-2039 fax: 218-236-2593
[EMAIL PROTECTED]
http://wwwcj.mnstate.edu


Reply via email to