Hi, have you tried putting the \inmargin Inside before= in defineenumeration ? Seems to work fine (assuming you want the marginal note on same line as question.

Joseph

\defineblock[question]
\hideblocks[question]  

\defineenumeration
    [question]
    [text=Question, before=\inmargin{margin}] %%%%%%
    
\setupblock[question][before=\startquestion,after=\stopquestion]

\setupinmargin[stack=continue]

\starttext

\beginquestion
Text
\endquestion


\beginquestion
Text
\endquestion

\useblocks[question]

\stoptext


Sent from Windows Mail

From: Jan Willem Flamma
Sent: ‎Wednesday‎, ‎June‎ ‎22‎, ‎2016 ‎3‎:‎17‎ ‎PM
To: ntg-context@ntg.nl

Thanks for your reply Marco.

Indeed using different margin text I now see they are overlaid. Using your suggestion adds the margin text from Question 2 just underneath the margin text from Question 1.

I would like to position it next to Question 2 because I would like to use this feature to indicate question categories.

Regards,
Jan Willem



> On 22 jun. 2016, at 11:52, Jan Willem Flamma <jwfregister@icloud.com> wrote:
>
> Dear list members
>
> In the following MWE, the margin text appears at question 1 but not at question 2.
>
> How is this possible?
>
> Kind regards,
> Jan Willem
>
>
> MWE:
> \defineblock[question]
> \hideblocks[question] 
>
> \defineenumeration
>    [question]
>    [text=Question]
>
> \setupblock[question][before=\startquestion,after=\stopquestion]
>
>
> \starttext
>
> \inmargin{margin}
> \beginquestion
> Text
> \endquestion
>
> \inmargin{margin}
> \beginquestion
> Text
> \endquestion
>
> \useblocks[question]
>
> \stoptext

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________