From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106573 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Exercise file with statements and correction Date: Tue, 17 Mar 2020 23:18:34 +0100 Message-ID: References: <26015f77-fadf-a9d4-40ee-c59312995fb9@gmx.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6228291627437202509==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="19106"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 17 23:22:26 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 1jEKbS-0004rR-HL for gctc-ntg-context-518@m.gmane-mx.org; Tue, 17 Mar 2020 23:22:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 416F0182A44; Tue, 17 Mar 2020 23:21:55 +0100 (CET) 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 T0BRFpje4Leb; Tue, 17 Mar 2020 23:21:53 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9C488182A32; Tue, 17 Mar 2020 23:21:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8029C182A24 for ; Tue, 17 Mar 2020 23:21:52 +0100 (CET) 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 Uz38x8yqbQs4 for ; Tue, 17 Mar 2020 23:21:50 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.41; helo=mail-wm1-f41.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 CE4D5182A1F for ; Tue, 17 Mar 2020 23:21:50 +0100 (CET) Original-Received: by mail-wm1-f41.google.com with SMTP id a141so1091523wme.2 for ; Tue, 17 Mar 2020 15:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=f2an6eGvHKmGv4Gql68UzSJScSE4Mj5u/zfrieoosZM=; b=NWThEC3hVCh0L6PAC32FRbt/L+2oM7cjcv/GiCPbz/w5SIAEpmohPt+TkgfBLlC5nu 5G2DNKztfTb5hTPbE+vLaFqbWn/nDJQtiL46b3aBapdBKOK3PDybpqk1xuu1gLsrbN8q Ymf6CF/Q6FD+KMluLemsvkSFqObPIRqYcRRQyMR4sNJAlCif4K4aOOGBrrzIqUwJZMrt +sfJLYyewQpzTcrWEWgJhAs9BNIo79no8QJOEvY/xPBZ2BTK9rc4Kki7u6tiyaKLZICO w+mQvnIwfgnBsIn+NA7xPmQUPZnyGxukmVJpp1tIRJRKZh4eD9kaEqy18BcWFhOWFTE+ IRRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=f2an6eGvHKmGv4Gql68UzSJScSE4Mj5u/zfrieoosZM=; b=sR3nd3d6I2/vkYnmlKBr4djBXtrx4XWFD799vc1nuHZ40jv8B6zKFcBf9uBijOsbxv 7Ns6udsw+zK216kooRHkNz+YvK4gjEYVkJA98N0ZC2nPQKKDV67whVjbOTLnkzqxXzS/ +A91HvcMHnxIVSHHAjUxUCLkg2V5X8tBkdgJ2FpnTClyLMPkS7U0WCOKPIv6Vk+JgUsV uEqkYDFGJpie3jerUyt6BkKcU8Mjob5tz5gaJA5j5pHLbMkhg/CBQ9XQwT7BdVYb9+gX 1I5lzdIFOuV+xyD9fYmuEqGT/FtwgNv8gxk3Rhr/XgFOVba1QdUjidnPkcrbmeVQefcR 2UfQ== X-Gm-Message-State: ANhLgQ2MqGIiZu6/+GVvq882Mog9ADjtvr+y3mUwg3SdkZsAc2qVRJrf o+YQcJ3L2YLYZsBJoYIiUGcsEl0kKpjO7MPZNQ3iQg0B X-Google-Smtp-Source: ADFU+vvDI8wIYDNz100ZuIRWQRl2ih4v+QXLo+P1BaPUp8RepWqnLejVm4kmsMzRSX4YamNqdIINV69rW4Faak0HNJM= X-Received: by 2002:a05:600c:2f10:: with SMTP id r16mr1184597wmn.92.1584483710133; Tue, 17 Mar 2020 15:21:50 -0700 (PDT) In-Reply-To: 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:106573 Archived-At: --===============6228291627437202509== Content-Type: multipart/alternative; boundary="000000000000b1f1f405a1145c35" --000000000000b1f1f405a1145c35 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Otared, https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html Thanks Fabrice Le mar. 17 mars 2020 =C3=A0 22:56, Fabrice Couvreur a =C3=A9crit : > Hi Wolfgang, > Is it possible to adapt your code with the environment that you proposed > to me ? > Thank you. > Fabrice > > https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html > > \defineframed > [EXFRAME] > [frame=3Doff, > offset=3D0pt, > location=3Dlow, > width=3D\struttotal, > background=3Dcolor, > backgroundcolor=3Dblack, > foregroundcolor=3Dwhite, > forgroundstyle=3Dbold] > > \defineprocessor[ACPROCESSOR][command=3D\EXFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration > [ex] > [text=3D, > width=3Dfit, > numberconversionset=3DACCONVERSION, > alternative=3Dserried, > number=3Dyes] > > Le mar. 17 mars 2020 =C3=A0 22:14, Fabrice Couvreur < > fabrice1.couvreur@gmail.com> a =C3=A9crit : > >> Hi Pablo, >> Thank you very much, it's a great base to start with. >> Fabrice >> >> Le mar. 17 mars 2020 =C3=A0 22:09, Pablo Rodriguez a =C3= =A9crit : >> >>> On 3/17/20 9:14 PM, Fabrice Couvreur wrote: >>> > Hello, >>> > I would like to make files with statements of exercises and correctio= n >>> > where it would be enough to click on "correction" to access the >>> > correction at the end of the file. I'm running out of time, does anyo= ne >>> > have a model to share ? >>> >>> Hi Fabrice, >>> >>> I don=E2=80=99t have a model, but the following sample could give you a= hint: >>> >>> \setupinteraction[state=3Dstart, focus=3Dstandard] >>> \starttext >>> \startbodymatter >>> \chapter[lesson-1]{Lesson 1} >>> \section[exercises-1]{Exercises 1} >>> These are the exercises. >>> >>> Here you have their key (\about[key-1]). >>> \stopbodymatter >>> \startappendices >>> \section[key-1]{Key to Lesson 1} >>> This is the key >>> >>> Back to exercises (\about[exercises-1]) >>> \stopappendices >>> \stoptext >>> >>> I hope it helps, >>> >>> Pablo >>> -- >>> http://www.ousia.tk >>> >>> _______________________________________________________________________= ____________ >>> 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 >>> >>> _______________________________________________________________________= ____________ >>> >> --000000000000b1f1f405a1145c35 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Le=C2=A0mar. 17 mars= 2020 =C3=A0=C2=A022:56, Fabrice Couvreur <fabrice1.couvreur@gmail.com> a =C3=A9crit=C2=A0:
=
Hi Wo= lfgang,
Is it possible to adapt your cod= e with the environment that you proposed to me ?
Thank you.
Fabrice


=C2=A0\defineframed=C2=A0 =C2=A0 [EXFRAME]
=C2=A0 =C2=A0 [frame=3Doff,
=C2=A0 =C2=A0 = =C2=A0offset=3D0pt,
=C2=A0 =C2=A0 =C2=A0location=3Dlow,
=C2=A0 =C2=A0= =C2=A0width=3D\struttotal,
=C2=A0 =C2=A0 =C2=A0background=3Dcolor,
= =C2=A0 =C2=A0 =C2=A0backgroundcolor=3Dblack,
=C2=A0 =C2=A0 =C2=A0foregro= undcolor=3Dwhite,
=C2=A0 =C2=A0 =C2=A0forgroundstyle=3Dbold]

=C2= =A0 \defineprocessor[ACPROCESSOR][command=3D\EXFRAME]
=C2=A0 \defineconv= ersionset[ACCONVERSION][][ACPROCESSOR->n]

=C2=A0 \defineenumerati= on
=C2=A0 =C2=A0[ex]
=C2=A0 =C2=A0[text=3D,
=C2=A0 =C2=A0 width=3D= fit,
=C2=A0 =C2=A0numberconversionset=3DACCONVERSION,
=C2=A0 =C2=A0al= ternative=3Dserried,
=C2=A0 =C2=A0number=3Dyes]

Le=C2=A0mar. 17 mar= s 2020 =C3=A0=C2=A022:14, Fabrice Couvreur <fabrice1.couvreur@gmail.com> a = =C3=A9crit=C2=A0:
Hi Pablo,
Thank you very much, it's a great base to start with.=
Fabrice

Le=C2=A0mar. 17 mars 2020 = =C3=A0=C2=A022:09, Pablo Rodriguez <oinos@gmx.es> a =C3=A9crit=C2=A0:
On 3/17/20 9:14 PM, Fabrice Couvreur= wrote:
> Hello,
> I would like to make files with statements of exercises and correction=
> where it would be enough to click on "correction" to access = the
> correction at the end of the file. I'm running out of time, does a= nyone
> have a model to share ?

Hi Fabrice,

I don=E2=80=99t have a model, but the following sample could give you a hin= t:

=C2=A0 \setupinteraction[state=3Dstart, focus=3Dstandard]
=C2=A0 \starttext
=C2=A0 \startbodymatter
=C2=A0 \chapter[lesson-1]{Lesson 1}
=C2=A0 \section[exercises-1]{Exercises 1}
=C2=A0 These are the exercises.

=C2=A0 Here you have their key (\about[key-1]).
=C2=A0 \stopbodymatter
=C2=A0 \startappendices
=C2=A0 \section[key-1]{Key to Lesson 1}
=C2=A0 This is the key

=C2=A0 Back to exercises (\about[exercises-1])
=C2=A0 \stopappendices
=C2=A0 \stoptext

I hope it helps,

Pablo
--
http:/= /www.ousia.tk
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000b1f1f405a1145c35-- --===============6228291627437202509== 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== --===============6228291627437202509==--