## Latex wordcounting

I wanted a quick way to get the word count for my latex document – so I now have 2 lovely hacky scripts.
My latex file is called document.tex, so ‘document’ should be changed to the name of your file.

In your Latex file you need to include ‘\input{hack}’ at the top of your document and ‘\input{wordcount}’ wherever you want to include your wordcount.

The following script removes the bibliography and citations and then counts the words outputting to a file:
makeme:

makemepropper:
``` echo > wordcount ./makeme echo "" > hack bibtex document pdflatex document bibtex document pdflatex document bibtex document pdflatex document ```