Word Count in LaTeX/pdf documents

Sometimes you have to write a report or paragraph within a specified word limit. If you use proprietary WYSIWYG editors like Microsoft Word, you always have access to a real time word count, but if you use $\LaTeX$, the output will typically be a ps or pdf file and Adobe Acrobat Reader doesn't come with a word count feature.

Here's one simple way to get the word count, but please not that it is not always accurate as it is based on a conversion from ps to ascii

pdflatex <filename.tex>
ps2ascii <filename.pdf> |wc -w
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License