From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101722 Path: news.gmane.org!.POSTED!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Question on enabling/disabling modes Date: Mon, 27 Aug 2018 14:14:47 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1987050470651724306==" X-Trace: blaine.gmane.org 1535372051 10691 195.159.176.226 (27 Aug 2018 12:14:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2018 12:14:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 27 14:14:07 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuGPF-0002e6-Tg for gctc-ntg-context-518@m.gmane.org; Mon, 27 Aug 2018 14:14:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ED40C58929; Mon, 27 Aug 2018 14:15:27 +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 oMYMADd_l8gN; Mon, 27 Aug 2018 14:15:27 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 395185892B; Mon, 27 Aug 2018 14:15:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF3B058929 for ; Mon, 27 Aug 2018 14:15:25 +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 CA9p-2IkYa3N for ; Mon, 27 Aug 2018 14:15:25 +0200 (CEST) Original-Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 512ED58921 for ; Mon, 27 Aug 2018 14:15:15 +0200 (CEST) Original-Received: by mail-qt0-f169.google.com with SMTP id x7-v6so17668586qtk.5 for ; Mon, 27 Aug 2018 05:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ZnLgyenvKuZox+m04UU7vzqm374IaBopyZ28lFplZYU=; b=aE97CvNIEZhqIhpr0lVA+3uVRB934OKcXDVzhJgzVwGh470+2s9NN4dey0QDDfXTGm rcUIGQ/dGH/mQdmSkm02kZCn+yCwm4BHkTKp4vvX+doaQ1PiciZ9y2yPq1icxKT7YDwL wvlO7NkI3LFaHynyx1zKQJpOq3BnpvH6ld5grfQoFE/ZO8fTuK/iFrKa1g78rLV0Zvos AiB4syuYZit+urBnr3LnHDRBCBLT3gLlXZKInqtLh+gOag62ncJLA98YfsTdMdUY+eS3 1lpcMsKbTgNZX9y5N41pGU7HW/8kTLS1BoDwKOfGUjWXIjiDvaffF6RgB2VMHhBn9men yBlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZnLgyenvKuZox+m04UU7vzqm374IaBopyZ28lFplZYU=; b=ms+LrDt+YT3o9lLLoty1p0G6j6Td13AZnBjjskmjqBDWMMcct3Wbq2E2DipJi6TUdH qMmiZBNwhxnRgbt0S1qIjcGQ2CfZB0dYwichloyXc/Db/vT1UahbxJs5gnd2A7mgtJXr ylmSBPiPSfoey3rkD74d6aEnj2T5OMzAfn7IGmDyGxoUqRcGcpab9P/q+ajcuiH2i4kA ygX+a/BCIRWFlVsIFTxZ93/rrqcN2J+Bf56bqcKKWV3HztQcRZu4tMR+QPjksg5f4TuP 08BXSfDyyS3pramgCFVp3ZCXvYZV7dk9X1iB9L7B2BVEK+QhJVauedFUQeGkkZVX9+ET FypA== X-Gm-Message-State: APzg51AbgGDIDE5tg11uoNxDEckKmv9FPm+81ONiPsCJ8nr+D7z4hlol Lb2PuSkQDxPrFLOjYtbF9SZj3ZozV3eqfcelG/dO6nZ0 X-Google-Smtp-Source: ANB0VdZS+V91hL0naZklW0ShE2ivljuZ/UwEu276EUhGJVZN1xESCXo/ZViCH+6jflafcc09fqab2cvoRmUZIVoaGSY= X-Received: by 2002:a0c:876a:: with SMTP id 39-v6mr13174769qvi.223.1535372113846; Mon, 27 Aug 2018 05:15:13 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:101722 Archived-At: --===============1987050470651724306== Content-Type: multipart/alternative; boundary="00000000000071a6f9057469ade2" --00000000000071a6f9057469ade2 Content-Type: text/plain; charset="UTF-8" Hi! I am writing notes for my teaching and would like to do the following with modes: * If the file is compiled with context file.tex then everything (i.e. the content in all modes) is typeset. * If the file is compiled with context --mode=test1 file.tex then only mode test1 is typeset. I do not see how to do this easily. The example I am working on looks like this: %%% file.tex \definemode[test1][keep] \definemode[test2][keep] \starttext \startmode[test1] We are in mode test1. \stopmode \startmode[test2] We are in mode test2. \stopmode \stoptext %%% This, however, naturally gives not output, since the modes test1 and test2 are not activated. If I compile with context --mode=test1 file.tex I get the content in mode test1, as I want. I have tried to change "keep" to "yes" in the setup of the modes, but then the material in both modes are typeset no matter what command flag I use. Do I miss something? /Mikael PS In reality I have about 25 lectures, so using this method there will be about 25 modes in total. --00000000000071a6f9057469ade2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi!

I am writing notes for my teaching = and would like to do the following with modes:

* I= f the file is compiled with context file.tex then everything (i.e. the cont= ent in all modes) is typeset.
* If the file is compiled with cont= ext --mode=3Dtest1 file.tex then only mode test1 is typeset.

=
I do not see how to do this easily. The example I am working on = looks like this:

%%% file.tex
\defi= nemode[test1][keep]
\definemode[test2][keep]
\starttext=
\startmode[test1]
We are in mode test1.
= \stopmode
\startmode[test2]
We are in mode test2.
=
\stopmode
\stoptext
%%%

=
This, however, naturally gives not output, since the modes test1 and t= est2 are not activated. If I compile with context --mode=3Dtest1 file.tex I= get the content in mode test1, as I want.

I have = tried to change "keep" to "yes" in the setup of the mod= es, but then the material in both modes are typeset no matter what command = flag I use.

Do I miss something?

/Mikael

PS In reality I have about 25 lect= ures, so using this method there will be about 25 modes in total.


--00000000000071a6f9057469ade2-- --===============1987050470651724306== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1987050470651724306==--