On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> 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.
\stoptext
\scratchingmyhair... ;O) ! Missing number, treated as zero. <to be read again> l l.7 Your text has \noflines\ l ines. Alan -- Best, Alan * TeX engine = LuaTeX *ConTeXt minimals ver: 2009.01.18 14:39 MKIV fmt: 2009.1.22 int: english/english * Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home