Debian Codegraph @

texmf-dist/doc/lualatex/countwords/countwords-simple-example.tex

raw
1 \documentclass{article}
2
3 \title{Foobar}
4
5 \usepackage{countwords}
6 \newcounter{words}
7
8 \begin{document}
9
10 \maketitle
11
12 % Start counting after title is printed, so it is excluded from total.
13 \countwordsstart{words}
14
15 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
16 eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
17 minim veniam, quis nostrud exercitation ullamco laboris nisi ut
18 aliquip ex ea commodo consequat. Duis aute irure dolor in
19 reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
20 pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
21 culpa qui officia deserunt mollit anim id est laborum.
22
23 % Stop counting before wordcount declaration.
24 \countwordsstop{words}
25
26 There are \arabic{words} words in this document.
27 % Will print:
28 % There are 69 words in this document.
29
30 \end{document}