ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jeong Dal <haksan@me.com>
To: ntg-context@ntg.nl
Subject: Re: Problem with a macro
Date: Sun, 11 Feb 2018 23:20:25 +0900	[thread overview]
Message-ID: <AE615C81-2B30-4179-809E-DA8D67FA23FA@me.com> (raw)
In-Reply-To: <mailman.1.1518346801.23694.ntg-context@ntg.nl>

Dear Otared,

As you said, it is working well.

However, the numbers 1, 4 located at the top and the bottom of the integral sign which is not usual in math. 
I have seen a discussion about such an output, but I may not see the result which I want.

As you see in the following example, only the 1st and the 2nd  gave the output which is usual in math.
Is still there no way to make nice output  using “\startformula”?

Thank you.

Best regards,

Dalyoung

%%%%%%%%%%
\unexpanded\def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\diff x}}

\starttext
\math{\int_1^4 f(x) \diff x}

\math{\displaystyle \int_1^4 f(x) \diff x}

\startformula
\int_1^4 f(x) \diff x
\stopformula

\integ{4}{1}{f(x)}
\stoptext


> If you remove the line
> 	\setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]  
> then your example typesets well with the last beta version 2018.02.09 00:04.
> 
> Best regards: OK
> 
>> On 11 Feb 2018, at 09:35, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:
>> 
>> Hi Hans,
>> The macro that you proposed me worked very well but since my update of context standalone, it does not work any more.
>> Thank you.
>> Fabrice
>> 
>> \setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]  
>> 
>> \unexpanded\def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\diff x}}
>> 
>> \starttext
>> \integ{4}{1}{f(x)}
>> \stoptext
>> ____________________________________________________________________________
___________________________________________________________________________________
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:[~2018-02-11 14:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1518346801.23694.ntg-context@ntg.nl>
2018-02-11 14:20 ` Jeong Dal [this message]
2018-02-11 16:23   ` Otared Kavian
     [not found] <mailman.2564.1518369529.2111.ntg-context@ntg.nl>
2018-02-11 23:31 ` Jeong Dal
2018-02-11 23:39   ` Wolfgang Schuster
2018-02-22 21:15     ` Fabrice Couvreur
2018-02-23 14:03       ` Wolfgang Schuster
2018-02-25 11:43         ` Fabrice Couvreur
2018-02-11  8:35 Fabrice Couvreur
2018-02-11  9:01 ` Otared Kavian
2018-02-11 11:43   ` Fabrice Couvreur
2018-02-11 14:31 ` Wolfgang Schuster

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=AE615C81-2B30-4179-809E-DA8D67FA23FA@me.com \
    --to=haksan@me.com \
    --cc=ntg-context@ntg.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).