[tex-live] apparent bug in detex

Reinhard Kotucha reinhard.kotucha at web.de
Mon Nov 1 09:16:18 CET 2010


On 31 October 2010 Victor Ivrii wrote:

 > Probably the only way would be to produce final pdf, copy and paste
 > it and then count words.

This should work and provide better results than detex, especially
with own macros which detex isn't aware of:

   pdftotext -nopgbrk myfile.pdf - | wc

pdftotext is already part of TeX Live.  With the -layout option you
get more words because then hyphenation is kept intact.

BTW, pdftotext -layout yields amazingly good results.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the tex-live mailing list