Correct word-count of a LaTeX document

前端 未结 9 1293
野的像风
野的像风 2021-01-30 01:37

I\'m currently searching for an application or a script that does a correct word count for a LaTeX document.

Up till now, I have only encountered script

9条回答
  •  甜味超标
    2021-01-30 01:57

    To add to @aioobe,

    If you use pdflatex, just do

    pdftops file.pdf
    ps2ascii file.ps|wc -w
    

    I compared this count to the count in Microsoft Word in a 1599 word document (according to Word). pdftotext produced a text with 1700+ words. texcount did not include the references and produced 1088 words. ps2ascii returned 1603 words. 4 more than in Word.

    I say that's a pretty good count. I am not sure where's the 4 word difference, though. :)

提交回复
热议问题