ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Braslau <alan.braslau@cea.fr>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: integral symbol
Date: Wed, 28 Dec 2016 10:14:11 -0700	[thread overview]
Message-ID: <20161228101411.2ed2bb9b@zoo.hsd1.co.comcast.net> (raw)
In-Reply-To: <8d2add33-85b8-5a22-c7a3-c9ad70abde24@wxs.nl>

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 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.

Just a suggestion.

Alan



On Wed, 28 Dec 2016 17:42:39 +0100
Hans Hagen <pragma@wxs.nl> wrote:

> The problem with integrals is that they don't adapt because they are
> not wrapped as delimiters (like left/right stuff). If \int were a
> command taking an argument it would be easier. As in:
> 
> 
> \starttext
> 
> \setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]
> 
> \startlines
> \ruledhbox{$\integral           f\frac{1}{2}$}
> \ruledhbox{$\integral[factor=1] f\frac{1}{2}$}
> \ruledhbox{$\integral[factor=3] f\frac{1}{2}$}
> \stoplines
> 
> \startformula
>      a =
>      \autointegral{t}{b}1 +
>      \autointegral{t}{b}{\frac{\frac{3}{4}}{\frac{1}{2}}} +
>      \autointegral{t}{b}{\frac{\frac{\frac{\frac{1}{2}}{2}}{2}}{2}}
> \stopformula
> 
> \stoptext


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.braslau@cea.fr
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2016-12-28 17:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-28 10:39 Fabrice Couvreur
2016-12-28 11:19 ` Henri Menke
2016-12-28 13:02   ` Fabrice Couvreur
2016-12-28 16:42     ` Hans Hagen
2016-12-28 17:14       ` Alan Braslau [this message]
2016-12-28 17:40         ` Hans Hagen
2016-12-29 11:12           ` Fabrice Couvreur
2016-12-29 12:06             ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161228101411.2ed2bb9b@zoo.hsd1.co.comcast.net \
    --to=alan.braslau@cea.fr \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).