On Thu, 16 Mar 2006 10:02:46 +0100, Taco Hoekwater
The output is pretty as I wish, but unfortunately the line numbers are *not* the numbers of the listing lines, but the numbers of the lines once wrapped in the frame. [...]
I've tried this with a "method" trick, but that does not work too well with 'location=intext'. Anyway, here is what I did:
\setuptyping[prog] [bodyfont=small, before={\begingroup\setuplinenumbering[style=small,% step=2,start=3,location=inmargin,method=type] \startframelisting \obeylines
\startlinenumbering}, after={\stoplinenumbering\stopframelisting\endgroup}]
Ah, yes, the method=type option helps much. The behaviour is quite strange with intext. Is it an official option?
The other side effect of the method used is that it changes the linenumbering behaviour outside the typing environment. I tried the "reset" option, but it doesn't change the intext location. Is there a possibility to come back to default settings?
The setup obeys normal grouping rules (hence the \begingroup ... \endgroup in the code above)
Yes, right. Thanks much for your help. Regards, BG