From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107632 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Fabrice L Newsgroups: gmane.comp.tex.context Subject: start/stop executed conditionally on mode ? Date: Sun, 7 Jun 2020 23:08:12 -0400 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: multipart/mixed; boundary="===============2356055995532952966==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="77606"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 08 05:08:54 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ji89e-000K6U-8u for gctc-ntg-context-518@m.gmane-mx.org; Mon, 08 Jun 2020 05:08:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 87EBF1849B1; Mon, 8 Jun 2020 05:08:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KCLu08081ghe; Mon, 8 Jun 2020 05:08:18 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2827F1849BC; Mon, 8 Jun 2020 05:08:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7E8E31849B1 for ; Mon, 8 Jun 2020 05:08:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FEOa4B57s3tK for ; Mon, 8 Jun 2020 05:08:16 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.43; helo=mail-qv1-f43.google.com; envelope-from=fabrice.alpha@gmail.com; receiver= Original-Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 852C7184961 for ; Mon, 8 Jun 2020 05:08:16 +0200 (CEST) Original-Received: by mail-qv1-f43.google.com with SMTP id g11so1213495qvs.2 for ; Sun, 07 Jun 2020 20:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=A6IjQycqcdTwPYz0ZwcWeAtVYiTTmNQbyYAhSqnapz4=; b=vOkrViUiewVOtJHUHsxRSuDZFUpUQlVgLT7FdS2M50fc4MmcfwtYIJivJZmJtk7FyJ EUyX7rbMVRqFmkG4Ek5+cngN6qN1EdsivmYqlJdgfRIG+5Rd6+zQdfwm7V5f0tLflvvE JAPJxRGa7NBgYOKgLZNS8OIeDGMunorhs3ea4l4wYd5UWnS4MPbdfwiVNVuiG9oEDSVS meCs+3PSHkz6rLGTnfxqZxfPPqpVCpTf91YhNOEs6UIq1xi0/sR4kXWM7Dz/2H9//IG4 yttQCDDgIJva5btPx6kK2nU/wOA+Vb1kzaX5abQlIQyRTyk6OpQvoY1VrMXpILlb676L hulA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=A6IjQycqcdTwPYz0ZwcWeAtVYiTTmNQbyYAhSqnapz4=; b=D54j2QEfXCDq3C+/vPNERiJaQcmgY1dxtqHQvDe7hznmlY9rJ3Zk+LB3dUHDhujMTK 82oA0XX/UsiBuE13kj3SuFLIbawrLoa0jwXQSY3JilZHyJzpG1596QB1kEbqplxSBKbw EE3dkUopUXjNH0W/ONQyoyw8EvdmFIlm7Pf/g7mOoS3UnhgMxU7/yHlzNsNZddmpAIyL PQMKm0LOrvw5P27QGnqJ1EnD0giWVeDSNrAvfRaqGNk55bY24ZL2ZK8XWIZckxhs4cYa KTWVjO/55UQSVNXiSQrY8CxaGr3K/JdwvdC00J7fAcITuLxI18SgcMr2csq6LaeWLzJQ gB4g== X-Gm-Message-State: AOAM5331nGz57fz0fkstHyHx/GlmK0vfclJDH7ixwShHbRkNQakTnQcD CTKvzaK5+/j/RkWe1XpcsWE2YXS3 X-Google-Smtp-Source: ABdhPJylUQWlJau5AzZ4U7kUL8rD4WyX8s84ivy2yaotn4nPfiN7z9rfww0ga1yXiRc9ZqsG4FjzXg== X-Received: by 2002:a0c:f887:: with SMTP id u7mr20894715qvn.217.1591585694253; Sun, 07 Jun 2020 20:08:14 -0700 (PDT) Original-Received: from [192.168.86.243] ([38.74.28.141]) by smtp.gmail.com with ESMTPSA id q38sm6916554qtb.74.2020.06.07.20.08.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jun 2020 20:08:13 -0700 (PDT) X-Mailer: Apple Mail (2.3608.80.23.2.2) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:107632 Archived-At: --===============2356055995532952966== Content-Type: multipart/alternative; boundary="Apple-Mail=_273B8799-C376-4570-B8A4-B6A09A3BBD77" --Apple-Mail=_273B8799-C376-4570-B8A4-B6A09A3BBD77 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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=E2=80=99s not ! The code is executed in the mode as expected, but = the following instructions ("Some other text... =C2=BB in the exemple) = is not typeset.=20 Here is a minimal (not working!) example:=20 % = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94 \unexpanded\def\StartQuestionsList{=20 \startmode[ClassRoom] \page[yes] Here are some questions: = \blank=20 } \unexpanded\def\StopQuestionsList{=20 \page[yes] \stopmode } \definestartstop[Questions][ before=3D\StartQuestionsList, after=3D\StopQuestionsList ] \startQuestions Question A=E2=80=A6. Question B=E2=80=A6.=20 \stopQuestions Some other text... % = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94 So to be clear, I would like the result in the =C2=AB ClassRoom =C2=BB = mode to be: % = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94 Here are some questions:=20 Question A=E2=80=A6. Question B=E2=80=A6.=20 Some other text... % = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94 Otherwise to be: % = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94 Some other text... % = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94 Thanks for any help ! Fabrice.= --Apple-Mail=_273B8799-C376-4570-B8A4-B6A09A3BBD77 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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=E2=80=99s = not ! The code is executed in the mode as expected, but the following = instructions ("Some other text... =C2=BB in the = exemple) is not typeset. 

Here is a minimal (not = working!) example: 

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


\startQuestions
Question = A=E2=80=A6.
Question B=E2=80=A6. 
\stopQuestions

Some other text...
% = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94


So = to be clear, I would like the result in the = =C2=AB ClassRoom =C2=BB mode to be:
% = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94
Here are some = questions: 

Question = A=E2=80=A6.
Question B=E2=80=A6. 

Some other text...
% = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94

Otherwise to = be:
% = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94
Some other = text...
% = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94

Thanks for any help !
Fabrice.
= --Apple-Mail=_273B8799-C376-4570-B8A4-B6A09A3BBD77-- --===============2356055995532952966== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2356055995532952966==--