5 Mar
2009
5 Mar
'09
1:44 p.m.
Am 05.03.2009 um 14:25 schrieb Alan Stone:
After giving it some further thought and with reference to "specifies the number of lines in the paragraph so far", I don't need to know the paragraph's number of lines but whether its "number of lines" = 1 or not.
You can test whether the last paragraph had 1 or more lines and make your decision dependent on the result but this can be done only after the paragraph ist finished. \def\paragraphlines {\blank % Finish the last paragraph \ifnum\prevgraf=1 What I want.\else Too many lines.\fi \blank} \starttext \dorecurse{30}{text }\paragraphlines \dorecurse{10}{text }\paragraphlines \dorecurse{50}{text }\paragraphlines \stoptext Wolfgang