[NTG-context] counting the words in a TeX document

Hans Hagen pragma at wxs.nl
Sun Aug 6 17:00:01 CEST 2006


Mojca Miklavec wrote:
> t complementary) methods that might be sensible:
>
> a) ctxtools --wordcount filename[tex|pdf]
> to do the wordcount for the whole document using pdftotext + ruby regexp
>   
counting words in tex docs is not that hard:

it needs in addition:

delete all the words starting with \
delete everything (nested) between [ ]

Hans

 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list