1 Mar
2020
1 Mar
'20
9:04 p.m.
I do seem to like answering my own questions. 3 days searching for the solution and ... if A = (-1,1): sfx:="ulft"; elseif A = (0,1): sfx:="top"; ... if Foo = "b" thelabel.scantokens(sfx)(txt, pos); ... other stuff ... else: p_label.scantokens(sfx)(thetext,P,R,style); fi; Yes, scantokens can be used inline, as a function-like call that returns an actual suffix token which becomes part of the macro's suffix when the macro is subsequently called. This is such a weird programming language :)