On 22 janv. 09, at 15:39, Alan Stone wrote: > On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang Schuster > wrote: > On Thu, Jan 22, 2009 at 12:02 PM, Alan Stone > wrote: > > Hi, > > > > Is there a command which returns the number of lines for a given > portion of > > text ? > > \starttext > > \setbox\scratchbox\vbox{\input knuth\par} > > \getnoflines\htdp\scratchbox > > \getnoflines{\htdp\scratchbox} % this works > > > Your text has \noflines\ lines. > > or: Your text has \noflines lines. Try: Your text has {\the\noflines} lines. Best regards: OK