On 30-Jul-11 10:35:44, Ralph Corderoy wrote: > Hi Ted, > >> Heinz-Jürgen Oertel wrote: >> > As a work around in such cases, we define the number register in the >> > first row. > > This works, but I could imagine a case where the width of the text > matters and the preprocessor(s) are causing the register to increment > more than once per occurrence, e.g. 1 through 12 would result from > Ted's > six rows. The width of the "12" would then upset things compared to > the > width of the "6" that will appear in the final text after the reset of > lmno to 0. > > In these cases I've used a simple, often one-off, preprocessor, e.g. > awk or perl, that will replace, e.g. "##", with an incrementing number. > Then tbl or what have you sees a "6". > >> Thank you, Derio and Heinz. You are both correct. In fact I had made a >> mistake last night (it was getting late, and my caffeinaemia levels >> were low), and I did not capture all of the output of 'pic' in that >> test example, but only the first part (see below). (I had left off >> thre ".TE" in copying the code into 'pic'. >> >> In fact, 'pic' goes through the table twice, generating output in two >> parts. > > Do you mean tbl in all the places you say pic, including the original > email? :-) > > Cheers, Ralph.
You're absolutely right, Ralph! I did mean 'tbl' throughout, of course. I think I need to move to intravenous caffeine -- oral dosage is not sufficient, apparently! Just as a clarification, the point of doing it the way I did, i.e. using \Z'\v'-1.5m'\h'-\w'\\n+[lmno]\0\0\0\0\0'u'\\n[lmno]' was precisely to allow for the current width of \n[lmn] (which, in the present case might go up to 100+, or might not). Best wishes to all, Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <ted.hard...@wlandres.net> Fax-to-email: +44 (0)870 094 0861 Date: 30-Jul-11 Time: 12:54:31 ------------------------------ XFMail ------------------------------