ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* disappearing margin text
@ 2016-06-22  9:52 Jan Willem Flamma
  2016-06-22 10:20 ` Marco Patzer
  2016-06-22 13:17 ` Jan Willem Flamma
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Willem Flamma @ 2016-06-22  9:52 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: disappearing margin text
  2016-06-22  9:52 disappearing margin text Jan Willem Flamma
@ 2016-06-22 10:20 ` Marco Patzer
  2016-06-22 13:17 ` Jan Willem Flamma
  1 sibling, 0 replies; 4+ messages in thread
From: Marco Patzer @ 2016-06-22 10:20 UTC (permalink / raw)
  To: ntg-context

On Wed, 22 Jun 2016 11:52:04 +0200
Jan Willem Flamma <jwfregister@icloud.com> wrote:

> In the following MWE, the margin text appears at question 1 but not
> at question 2.

They both appear, but are overlaid (try with different texts).

> MWE:
> \defineblock[question]
> \hideblocks[question]	
> 
> \defineenumeration
>     [question]
>     [text=Question]
>      
> \setupblock[question][before=\startquestion,after=\stopquestion]

\setupinmargin
  [stack=yes] %% yes or continue

Marco
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: disappearing margin text
  2016-06-22  9:52 disappearing margin text Jan Willem Flamma
  2016-06-22 10:20 ` Marco Patzer
@ 2016-06-22 13:17 ` Jan Willem Flamma
  2016-06-23 19:42   ` josephcanedo
  1 sibling, 1 reply; 4+ messages in thread
From: Jan Willem Flamma @ 2016-06-22 13:17 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: disappearing margin text
  2016-06-22 13:17 ` Jan Willem Flamma
@ 2016-06-23 19:42   ` josephcanedo
  0 siblings, 0 replies; 4+ messages in thread
From: josephcanedo @ 2016-06-23 19:42 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2272 bytes --]

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
___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 4752 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-23 19:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-22  9:52 disappearing margin text Jan Willem Flamma
2016-06-22 10:20 ` Marco Patzer
2016-06-22 13:17 ` Jan Willem Flamma
2016-06-23 19:42   ` josephcanedo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).