[tex-live] apparent bug in detex

Victor Ivrii vivrii at gmail.com
Mon Nov 1 02:23:24 CET 2010


2010/10/31 Zdenek Wagner <zdenek.wagner at gmail.com>:
> Hi,
> I think that detex is not a proper tool for calculating the amount of
> the text. Imagine the following plain TeX document:
>
> \def\word{word}
> \newcount\num
> \loop \word \space \ifnum\num<10000 \advance\num1 \repeat
> \bye
>
> This creates 10 full pages of text but detex + wc says 4 3 17
>


Less drastic would be the use of macros like \HMQE{Her Majesty Queen
Elisabeth II}, inputs, includes, etc.

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

Just $0.02 cents

Victor

========================
Victor Ivrii, Professor, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii


More information about the tex-live mailing list