From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97025 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: integral symbol Date: Thu, 29 Dec 2016 12:12:20 +0100 Message-ID: References: <81ea8649-79ca-0179-b660-555fc517b938@gmail.com> <8d2add33-85b8-5a22-c7a3-c9ad70abde24@wxs.nl> <20161228101411.2ed2bb9b@zoo.hsd1.co.comcast.net> <8cc55f4b-02dd-c35a-e48a-ae9326226c68@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4825854107391126035==" X-Trace: blaine.gmane.org 1483009984 21579 195.159.176.226 (29 Dec 2016 11:13:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2016 11:13:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 29 12:13:00 2016 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 1cMYdi-0004Bj-H9 for gctc-ntg-context-518@m.gmane.org; Thu, 29 Dec 2016 12:12:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1B660100D50; Thu, 29 Dec 2016 12:12:36 +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 9dMasichXPGB; Thu, 29 Dec 2016 12:12:35 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 4D075100D5E; Thu, 29 Dec 2016 12:12:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C52DC100D5E for ; Thu, 29 Dec 2016 12:12:33 +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 Kj2g8kZY12rv for ; Thu, 29 Dec 2016 12:12:32 +0100 (CET) Original-Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) (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 71F62100D50 for ; Thu, 29 Dec 2016 12:12:22 +0100 (CET) Original-Received: by mail-it0-f48.google.com with SMTP id x2so209526515itf.1 for ; Thu, 29 Dec 2016 03:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=vu6k1i+dh9jHD/QdniBZA4ncpqM8ZlaMDjNsejh1DaA=; b=A2aqMEl3/lcEWNwYrgc5o0SEdNEOd2InGva0DImb55as3iBBUdBOfPRScqRv0mX88w V22M3gR2UQ+Pu428S+hQB10RPZ2fpUMIqpWyQ+/1x4yxAHueDuRKWGdAqm3eR3cyhTqp lAhV8ZNR4gZrquMGCKNypOVCJszVkssk1HuEEmp5Ft7mrrcKxCMyrRqPdTTt5IK7yx7y wAJ3Q7Sb5AiDorJC6dXb0yFfLijgSoJbJVLMqEyW0TivzYe/jvAFyIa0Y20VVoB6nJeN Xdf4XYiWqREKyrTOCW+zylFZ9/1vjgP1qO4SnIkeGtYY7m+z7M+ReiF3ygkmJLtlm0Wb P8Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=vu6k1i+dh9jHD/QdniBZA4ncpqM8ZlaMDjNsejh1DaA=; b=fPYquoMNDbczkTLPTltVMta4YTjs494ekM2OxNMHnqAAT8QpzdA9vRj1L1ShBBxzor tS0VpGn5S7xNR/z9clIu+4QTU0QN2CFjFc/QSPtlMjLnlVzlDvRE4ReGeE8Hg7ZNeD/W VLIecH5psuTJlR3l6sAwELULb4qVcwQDWEXhVOHV7fby9zRDHTmBawv8tDQ9OnaGHEyX /ZlBMSAZ9PhjpiKD2WYmZEf+YWAudd65DDH+P4eGdk349Y9zVsyM6OCjM9XkwK3Giiev OISiZx26lQlTmdPZEgPbcrPcvKadQNDDmCADp5UhmmVj2uyaD7pTJ6TbVSnmBQFn0FRK flKg== X-Gm-Message-State: AIkVDXLrBU3OP/rZt7Iq+VBLFNgmvsYABHmdHKmZ4Zeg4wA3YxwkgWOG1Zee9WJtCr4Wz+vjnxa0GZJ40f824A== X-Received: by 10.36.10.82 with SMTP id 79mr32209967itw.91.1483009940889; Thu, 29 Dec 2016 03:12:20 -0800 (PST) Original-Received: by 10.64.24.73 with HTTP; Thu, 29 Dec 2016 03:12:20 -0800 (PST) In-Reply-To: <8cc55f4b-02dd-c35a-e48a-ae9326226c68@wxs.nl> 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:97025 Archived-At: --===============4825854107391126035== Content-Type: multipart/alternative; boundary=001a113fb242b9a71d0544ca287a --001a113fb242b9a71d0544ca287a Content-Type: text/plain; charset=UTF-8 Hi Hans, Thanks for your solution. I created a macro, is it "robust" ? Fabrice \setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2] \def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\diff x}} \starttext \integ{4}{1}{g(x)} \stoptext 2016-12-28 18:40 GMT+01:00 Hans Hagen : > On 12/28/2016 6:14 PM, Alan Braslau wrote: > >> Hi Hans, Hi list, >> >> This is similar to what we have discussed earlier on this list and >> elsewhere regarding \over vs. \frac. (I agree with Knuth that {a \over >> b} is *much* more readable in running source code than \frac{a}{b} but >> have resigned myself to use \frac{}{}, as this can be made better >> behaved and gives a much better result.) >> >> Other traditional TeX constructs like \int^a_b have their charm (and >> need to remain supported, just like is \over), but I support >> introducing and encouraging the use of new constructs like your example >> below. An alternative syntax (that could co-exist) would be admitting >> $\left\int ... \right.$, but I do not know what limitations there might >> be with both the (luatex) engine and with ConTeXt. >> > > the tricky part there is that int has super and subscripts while left / > right are different animals ... i looked into this (in the engine) and > decided to delay implementing that (i might do it some day but it's sort of > tricky to keep compatibility) > > also, ints are upright (extensible or stepwise sizes) or slanted (stepwise > sizes) so even if we support something there are some limitations due to > lack of font support (could be dealt with in due time) > > The problem with extensions, like always, in straying from traditional >> TeX is interchangeability of code, or, more importantly, in the >> learning curve obstacles that this introduces to traditional TeX (and >> LaTeX) thinking. I know that at some level we do not care, for we often >> make (good) design choices that improve the syntax of ConTeXt. >> >> Perhaps we can use this thread to discuss other cases (like \sum, ...) >> that present difficulties and then decide on good solutions. >> > > sure ... > > Hans > > ----------------------------------------------------------------- > 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/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ > --001a113fb242b9a71d0544ca287a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Hans,
Thanks for you= r solution. I created a macro, is it "robust" ?
<= /span>
Fabrice

\setupmathextensible[integral][rightoffset=3D-3mu,e= xact=3Dyes,factor=3D2]
\def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\= diff x}}=C2=A0=C2=A0

\starttext
=C2=A0\integ{4}{1}{g(x)}
\stoptext
=C2=A0

2016-12-28 18:40 GMT+01:00 Hans Hagen= <p= ragma@wxs.nl>:
On 12/28/2016 6:14 PM, Alan Braslau wrote:
Hi Hans, Hi list,

This is similar to what we have discussed earlier on this list and
elsewhere regarding \over vs. \frac. (I agree with Knuth that {a \over
b} is *much* more readable in running source code than \frac{a}{b} but
have resigned myself to use \frac{}{}, as this can be made better
behaved and gives a much better result.)

Other traditional TeX constructs like \int^a_b have their charm (and
need to remain supported, just like is \over), but I support
introducing and encouraging the use of new constructs like your example
below. An alternative syntax (that could co-exist) would be admitting
$\left\int ... \right.$, but I do not know what limitations there might
be with both the (luatex) engine and with ConTeXt.

the tricky part there is that int has super and subscripts while left / rig= ht are different animals ... i looked into this (in the engine) and decided= to delay implementing that (i might do it some day but it's sort of tr= icky to keep compatibility)

also, ints are upright (extensible or stepwise sizes) or slanted (stepwise = sizes) so even if we support something there are some limitations due to la= ck of font support (could be dealt with in due time)

The problem with extensions, like always, in straying from traditional
TeX is interchangeability of code, or, more importantly, in the
learning curve obstacles that this introduces to traditional TeX (and
LaTeX) thinking. I know that at some level we do not care, for we often
make (good) design choices that improve the syntax of ConTeXt.

Perhaps we can use this thread to discuss other cases (like \sum, ...)
that present difficulties and then decide on good solutions.

sure ...

Hans


-----------------------------------------------------------------=
=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 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0tel: 038 477 53 69 | www.pragma-ade.nl | www.p= ragma-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/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a113fb242b9a71d0544ca287a-- --===============4825854107391126035== 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 --===============4825854107391126035==--