[OS X TeX] wordcount

Doris Behrendt via MacOSX-TeX macosx-tex at email.esm.psu.edu
Mon Nov 28 07:23:18 CET 2022


Hi list,

how can I count the words of a pdf-Document that I generated with LaTeX?

I tried opening it in MSWord, which showed a always changing number of words, depending on the status of the scrollbar, at the end it gave up scrolling totally;

I also tried this:

ps2ascii file.pdf | wc -w

which worked ok; but I am not sure how pictures and maths etc. are handled when counting like this ...

I also tried some apps, but was not happy, because my file has over 700 pages and most of the apps needed to copy and paste text ...

since my file contains lots of math and lots of code and lots of pictures, I just wanted to ask if anyone of you had to count words of such a document before and how you did it?


TIA
Doris





----------- Please Consult the Following Before Posting -----------
TeX FAQ: https://www.tug.org/mactex/faq/index.html
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list.