From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108548 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: new upload Date: Mon, 31 Aug 2020 19:50:52 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8715333024316557159==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20314"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 01 02:51:23 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 1kCuW9-00058W-W7 for gctc-ntg-context-518@m.gmane-mx.org; Tue, 01 Sep 2020 02:51:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1B88A1A88A4; Tue, 1 Sep 2020 02:51:08 +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 WNdPrcW6MAzF; Tue, 1 Sep 2020 02:51:07 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 26FD41A88AE; Tue, 1 Sep 2020 02:51:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0EB8C1A88A4 for ; Tue, 1 Sep 2020 02:51:06 +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 7GAGrHkSy9SS for ; Tue, 1 Sep 2020 02:51:05 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.54; helo=mail-wr1-f54.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 293D11A8783 for ; Tue, 1 Sep 2020 02:51:05 +0200 (CEST) Original-Received: by mail-wr1-f54.google.com with SMTP id c15so7629730wrs.11 for ; Mon, 31 Aug 2020 17:51:05 -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=cbzXLRrnyCECDHd/ExWMEV4aqjgfC2JUbr7T4sHmyF4=; b=LRJuz6pECaMfGBL1dC/EltTzPD2NosCSj6+0cbBASibkTwWjZDv/0CLeLBhWgU8EPK BBSi17NwFKWY0dEH/QxNn7Uv8NMrI2jU1JKHvGGSB3+b32h9rUdEH+f6r3HW7z6ukKi9 TSurcYsk01X1mSOvzOWuB/eHcrLUdDOnFaeF2/wHBVpnuxWmllYOnk76l1Z0VeCOe/nn ee5Q3tF8iych9B3AyiVltiZGjE1D2Lbmp6sJ7tGwgpzNPYtKEgW1mIPxBv/MyoloQNjH ZYJbXOyUHGpEyzofZavvEuDfQw+yaNFzxOkj+THtSinDbBiu2qoxQXnoHO/0UJvlRsjS iZbw== 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=cbzXLRrnyCECDHd/ExWMEV4aqjgfC2JUbr7T4sHmyF4=; b=BWwyfFpU6qSgsENFrxwxw1E01GBnFL9pVrZOKkC1G7E8s0AZDb8WBlhPjDDG2L9yc7 /XqcwBkSSTdObd1G/h2YxNsV2FyN3rm2YvNGhHLnHmTb661NA1wo2RlhaZ5W5iaDmOa4 FQ/AaWsn3XNJFkRka8labKCPmSiHnDWaBJV4dSEdx1ojkRFK92/VvCVUovkcjn/Su8mj HAxBn4/xNozUFjApBV5KYJE4AkrZVrcO/zFF5Y5GotKFQS0iV80JMz+PwMkxvKis9V5s WziOZ7VLTAxwXnzFV8OeW1rzoGxEtar17IoOjBuStnyvrpxj4/A9q0yPSf4L/ijEK11g 9Mag== X-Gm-Message-State: AOAM533nO/uc2sg1K5ODK+ldQ8Y6mrncuh6drnKUEVsbBX9A2gY1Dszx lorYF9GULt/0Ne6AAfFSv0wuNpjkj5Yu0NOf1oGjrRViDnc= X-Google-Smtp-Source: ABdhPJwL/pEHay4eIbhVCzU+BlmgIV+i3U6DVNUZrHEBR8CYEhiD0rU3v6lDwAi8fmpJOQkiTqiWSA6+dhBb6jTLnBk= X-Received: by 2002:a5d:444b:: with SMTP id x11mr3825187wrr.402.1598921464395; Mon, 31 Aug 2020 17:51:04 -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:108548 Archived-At: --===============8715333024316557159== Content-Type: multipart/alternative; boundary="000000000000e8b8c705ae35e9e6" --000000000000e8b8c705ae35e9e6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Hans. :) Is there an analogue for display math? Could discretionaries be applicable to math formulas when "split=3Dyes" is enabled, for instance? Thank you in advance. Jairo :) El lun., 31 de ago. de 2020 a la(s) 15:21, Hans Hagen (j.hagen@xs4all.nl) escribi=C3=B3: > Hi, > > In order to keep the 'context is good for toy math' reputation up to > date, in lmtx we can now have proper discretionaries in math and math in > discretionaries. The kind of things no one asks for but they might be > useful in educational settings. > > Here are some examples (): > > \starttext > > \showframe > > \enabletrackers[math.toysymbol] > > \definemathtoysymbol[Plus] [bin][+] > \definemathtoysymbol[Minus][bin][-] > \definemathtoysymbol[Equal][rel][=3D] > > $\dorecurse{199} { > x_{#1} \ifodd#1\relax\Plus\else\Minus\fi > } x_{200} \Equal n$ > > \blank > > \dorecurse{10} { > test \discretionary > {\darkred hel $\sqrt{y}$ lo} > {\darkgreen good $\sqrt{z}$ bye} > {\darkblue wel $\sqrt{x}$ come} test > } > > \blank > > \dorecurse{10} {test me #1 > $x + 2x \discretionary class 2 > {$+ \, \cdots $} > {$ \cdots \, +$} > {$+ \, \cdots \, +$} nx$ test > } > > \stoptext > > You might be able to guess from this code what is supposed to happen. > I'll play a bit more with this later (assuming that it's somehow > useful). We could predefine a bunch. As usual there might be issues but > I'll sort them out when we run into them (it's a non critical feature > with not much impact). > > Hans > > (who must not forget to document it somewhere) > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --000000000000e8b8c705ae35e9e6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Hans. :)
Is there an analogue for displa= y math? Could discretionaries be applicable to math formulas when "spl= it=3Dyes" is enabled, for instance?

Thank you in advance.=

Jairo :)

El lun., 31 de ago. de 2020 a la(s) 15:21, Hans = Hagen (j.hagen@xs4all.nl) escribi= =C3=B3:
Hi,

In order to keep the 'context is good for toy math' reputation up t= o
date, in lmtx we can now have proper discretionaries in math and math in discretionaries. The kind of things no one asks for but they might be
useful in educational settings.

Here are some examples ():

\starttext

\showframe

\enabletrackers[math.toysymbol]

\definemathtoysymbol[Plus] [bin][+]
\definemathtoysymbol[Minus][bin][-]
\definemathtoysymbol[Equal][rel][=3D]

$\dorecurse{199} {
=C2=A0 =C2=A0 =C2=A0x_{#1} \ifodd#1\relax\Plus\else\Minus\fi
} x_{200} \Equal n$

\blank

\dorecurse{10} {
=C2=A0 =C2=A0 =C2=A0test \discretionary
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{\darkred=C2=A0 =C2=A0hel=C2=A0 $\sqrt{y}= $ lo}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{\darkgreen good $\sqrt{z}$ bye}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{\darkblue=C2=A0 wel=C2=A0 $\sqrt{x}$ com= e} test
}

\blank

\dorecurse{10} {test me #1
=C2=A0 =C2=A0 =C2=A0$x + 2x \discretionary class 2
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{$+ \, \cdots $}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{$=C2=A0 =C2=A0 =C2=A0\cdots \, +$}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{$+ \, \cdots \, +$} nx$ test
}

\stoptext

You might be able to guess from this code what is supposed to happen.
I'll play a bit more with this later (assuming that it's somehow useful). We could predefine a bunch. As usual there might be issues but I'll sort them out when we run into them (it's a non critical featu= re
with not much impact).

Hans

(who must not forget to document it somewhere)


-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
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
___________________________________________________________________________= ________
--000000000000e8b8c705ae35e9e6-- --===============8715333024316557159== 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== --===============8715333024316557159==--