On Thu, Oct 17, 2002 at 09:12:48PM +0300, Martin Vermeer wrote: > > It just hit me--why not just list this as a command, but have it do a > > text export piped to wc? > > Yes, I have used this. wc -w in a pipe. Works. But not very > accurate... includes LyX key words etc.
A better solution (it does not count the LyX key words) is to define a format name wordcount, whose viewer is "xterm -geometry 30x2 -e less", and define a text->wordcount converter whose command is "wc -w $$i > $$o". Or if you are lazy, just add the following lines to ~/.lyx/preferences: \format wordcount wc "Wordcount" "" \viewer wordcount "xterm -geometry 30x2 -e less" \converter text wordcount "wc -w $$i > $$o" ""