[texhax] counting words

Uwe Lück uwe.lueck at web.de
Tue Sep 19 07:01:28 CEST 2006


At 03:22 19.09.06, tom sgouros wrote:

>Oleg Katsitadze <olegkat at gmail.com> wrote:
>
> > On Fri, Sep 15, 2006 at 11:09:39PM -0400, Tom Sgouros wrote:
> > > Can anyone suggest a path to making a
> > > macro that will print the first 100 words of an argument, and not choke
> > > if there are only 75?
> >
> > See the code below.  It's in plain TeX syntax, but I hope
> > you can adapt it to LaTeX.  Please note that it does not
> > always work correctly when there are space(s) at the
> > beginning / end of input.
>
>Thank you very much.  You're a prince among men.

I thought I had seen something like this on CTAN (I thought
together with a spell checker), but I couldn't find it last night.
If something like this is not on CTAN already, please submit
it!

Cheers,

Uwe.




More information about the texhax mailing list