Changes

Jump to navigation Jump to search
405 bytes added ,  23:47, 24 October 2012
add word count
\stoptext
</context>
 
== Wordcount ==
 
The spellchecker can also be used to include the word count in a document.
 
<texcode>
\setupspellchecking[state=start,method=2]
\ctxlua{languages.words.threshold=1}
 
\starttext
\input knuth
\ctxlua{local data = dofile"\jobname.words"; context(data.total)}
\stoptext
</texcode>
 
See [http://archive.contextgarden.net/message/20120420.205210.27d80733.en.html ntg-context from 2012-04-20].
174

edits

Navigation menu