ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* start/stop executed conditionally on mode ?
@ 2020-06-08  3:08 Fabrice L
  2020-06-08  3:19 ` Aditya Mahajan
  0 siblings, 1 reply; 10+ messages in thread
From: Fabrice L @ 2020-06-08  3:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear List,

I would like to insert a page using (ideally) start/stop instructions. The problem is that this page should be inserted only in a certain mode. Consulting the mailing list, I thought the following code was working, but it’s not ! The code is executed in the mode as expected, but the following instructions ("Some other text... » in the exemple) is not typeset. 

Here is a minimal (not working!) example: 

% ————————————————————————————————————
\unexpanded\def\StartQuestionsList{ 
	\startmode[ClassRoom]  \page[yes] Here are some questions: \blank 
}
\unexpanded\def\StopQuestionsList{ 
	\page[yes] \stopmode
}
\definestartstop[Questions][
	before=\StartQuestionsList,
	after=\StopQuestionsList
	]


\startQuestions
	Question A….
	Question B…. 
\stopQuestions

Some other text...
% ————————————————————————————————————


So to be clear, I would like the result in the « ClassRoom » mode to be:
% ————————————————————————————————————
Here are some questions: 

	Question A….
	Question B…. 

Some other text...
% ————————————————————————————————————

Otherwise to be:
% ————————————————————————————————————
Some other text...
% ————————————————————————————————————

Thanks for any help !
Fabrice.

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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-06-15 17:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08  3:08 start/stop executed conditionally on mode ? Fabrice L
2020-06-08  3:19 ` Aditya Mahajan
2020-06-08 14:54   ` Fabrice L
2020-06-08 19:53   ` Fabrice L
2020-06-08 20:22     ` Wolfgang Schuster
2020-06-09  7:37     ` Hans Hagen
2020-06-09 16:35       ` Fabrice L
2020-06-10  6:42       ` Jan Willem Flamma
2020-06-10  7:33         ` Hans Hagen
2020-06-15 17:41           ` Henning Hraban Ramm

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).