[texhax] counting words

tom sgouros tomfool at as220.org
Tue Sep 19 03:22:29 CEST 2006


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.

 -tom

-- 
 ------------------------
 tomfool at as220 dot org
 http://sgouros.com  
 http://whatcheer.net


More information about the texhax mailing list