[NTG-context] how to with \margindata

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Wed Jul 15 22:10:29 CEST 2020

Hans van der Meer schrieb am 15.07.2020 um 21:48:
> Using the following:
> \margindata{some macro expansions}

You're missing the first mandatory argument, e.g. \margindata[inright]{...}.

> I know that \margindata is typeset at a later moment than its place in 
> the code suggests. The problem is that macro expansions inside the {}'s 
> are expanded twice. This interferes badly with the things I want to happen.

No, the content is stored in a box and placed later.



   {\inleft{\incrementedcounter[test]}Line \recurselevel\par}


> Tracing what happens, I conclude that the result of the first expansion 
> is lost and is not carried into the actual placement of the marginnote.
> The question this is: how to solve this problem?

Provide a working minimal example.


More information about the ntg-context mailing list