ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with a macro
@ 2018-02-11  8:35 Fabrice Couvreur
  2018-02-11  9:01 ` Otared Kavian
  2018-02-11 14:31 ` Wolfgang Schuster
  0 siblings, 2 replies; 11+ messages in thread
From: Fabrice Couvreur @ 2018-02-11  8:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 326 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 587 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
  2018-02-11  8:35 Problem with a macro Fabrice Couvreur
@ 2018-02-11  9:01 ` Otared Kavian
  2018-02-11 11:43   ` Fabrice Couvreur
  2018-02-11 14:31 ` Wolfgang Schuster
  1 sibling, 1 reply; 11+ messages in thread
From: Otared Kavian @ 2018-02-11  9:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Fabrice,

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

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
  2018-02-11  9:01 ` Otared Kavian
@ 2018-02-11 11:43   ` Fabrice Couvreur
  0 siblings, 0 replies; 11+ messages in thread
From: Fabrice Couvreur @ 2018-02-11 11:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1953 bytes --]

Hi Otared,
I also found that by removing this line, it worked. However, if Hans
proposed this macro, this line should have utility no ?
Fabrice

2018-02-11 10:01 GMT+01:00 Otared Kavian <otared@gmail.com>:

> Hi Fabrice,
>
> 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
> > ____________________________________________________________
> _______________________
>
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________

[-- Attachment #1.2: Type: text/html, Size: 4212 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
  2018-02-11  8:35 Problem with a macro Fabrice Couvreur
  2018-02-11  9:01 ` Otared Kavian
@ 2018-02-11 14:31 ` Wolfgang Schuster
  1 sibling, 0 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2018-02-11 14:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 392 bytes --]


> Fabrice Couvreur <mailto:fabrice1.couvreur@gmail.com>
> 11. Februar 2018 um 09:35
> 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]

\setupmathdelimiter[integral][rightoffset=-3mu,exact=yes,factor=2]

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1633 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
  2018-02-23 14:03       ` Wolfgang Schuster
@ 2018-02-25 11:43         ` Fabrice Couvreur
  0 siblings, 0 replies; 11+ messages in thread
From: Fabrice Couvreur @ 2018-02-25 11:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1128 bytes --]

Hi Wolfgang,
Thank you for your suggestion. I will now consider the following macro :

\setupmathematics[integral=nolimits]
\unexpanded\def\integ#1#2#3{\math{\int_{#1}^{#2}{#3}\,\diff x}}

\starttext

\startformula
\integ{0}{1}{g(x)}=1
\stopformula

\stoptext

Fabrice

2018-02-23 15:03 GMT+01:00 Wolfgang Schuster <schuster.wolfgang@gmail.com>:

>
> Fabrice Couvreur <fabrice1.couvreur@gmail.com>
> 22. Februar 2018 um 22:15
> Hi,
> How to make the numbers of the integral are on the right with the macro of
> Hans ?
>
> The position of the limits are fixed for the \autointegral command.
>
> Wolfgang
>
>
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 3605 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
  2018-02-22 21:15     ` Fabrice Couvreur
@ 2018-02-23 14:03       ` Wolfgang Schuster
  2018-02-25 11:43         ` Fabrice Couvreur
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2018-02-23 14:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 259 bytes --]


> Fabrice Couvreur <mailto:fabrice1.couvreur@gmail.com>
> 22. Februar 2018 um 22:15
> Hi,
> How to make the numbers of the integral are on the right with the 
> macro of Hans ?
>
The position of the limits are fixed for the \autointegral command.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1530 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
  2018-02-11 23:39   ` Wolfgang Schuster
@ 2018-02-22 21:15     ` Fabrice Couvreur
  2018-02-23 14:03       ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Fabrice Couvreur @ 2018-02-22 21:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1820 bytes --]

Hi,
How to make the numbers of the integral are on the right with the macro of
Hans ?
Thanks
Fabrice

\setupmathdelimiter[integral][rightoffset=-3mu,exact=yes,factor=2]

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

\starttext

\setupmathematics[integral=nolimits]

\startformula
\int_{0}^{1} g(x)\,\diff x = 1
\stopformula

\startformula
\integ{1}{0}{g(x)}=1
\stopformula

\stoptext



2018-02-12 0:39 GMT+01:00 Wolfgang Schuster <schuster.wolfgang@gmail.com>:

>
> Jeong Dal <haksan@me.com>
> 12. Februar 2018 um 00:31
> Dear Otared,
>
> All of your examples yield the same output in which the numbers locate at
> the top and at the bottom of the integral sign.
> Is it what you expected?
> I am looking for a way to place numbers at the right of the integral sign
> under the \startformula … \stopformula environment as the output of
> $\displaystyle\int_1^4 …$.
>
>
> \starttext
>
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1
> \stopformula
>
> \setupmathematics[integral=nolimits]
>
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1
> \stopformula
>
> \setupmathematics[integral=limits]
>
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1
> \stopformula
>
> \stoptext
>
>
> Wolfgang
>
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 4195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
  2018-02-11 23:31 ` Jeong Dal
@ 2018-02-11 23:39   ` Wolfgang Schuster
  2018-02-22 21:15     ` Fabrice Couvreur
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2018-02-11 23:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 701 bytes --]


> Jeong Dal <mailto:haksan@me.com>
> 12. Februar 2018 um 00:31
> Dear Otared,
>
> All of your examples yield the same output in which the numbers locate 
> at the top and at the bottom of the integral sign.
> Is it what you expected?
> I am looking for a way to place numbers at the right of the integral 
> sign under the \startformula … \stopformula environment as the output 
> of $\displaystyle\int_1^4 …$.

\starttext

\startformula
\int_{0}^{1} g(x)\,\diff x = 1
\stopformula

\setupmathematics[integral=nolimits]

\startformula
\int_{0}^{1} g(x)\,\diff x = 1
\stopformula

\setupmathematics[integral=limits]

\startformula
\int_{0}^{1} g(x)\,\diff x = 1
\stopformula

\stoptext


Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1906 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
       [not found] <mailman.2564.1518369529.2111.ntg-context@ntg.nl>
@ 2018-02-11 23:31 ` Jeong Dal
  2018-02-11 23:39   ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Jeong Dal @ 2018-02-11 23:31 UTC (permalink / raw)
  To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl


[-- Attachment #1.1: Type: text/plain, Size: 1893 bytes --]

Dear Otared,

All of your examples yield the same output in which the numbers locate at the top and at the bottom of the integral sign.
Is it what you expected? 
I am looking for a way to place numbers at the right of the integral sign under the \startformula … \stopformula environment as the output of $\displaystyle\int_1^4 …$.

I am using the latest beta.

mtx-context     | run 1: luatex --fmt="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="test" --lua="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall "cont-yes.mkiv"
This is LuaTeX, Version 1.05.0 (TeX Live 2017) 
 system commands enabled.
open source     > level 1, order 1, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          > 
system          > ConTeXt  ver: 2018.02.09 00:04 MKIV beta  fmt: 2018.2.11  int: english/english
system          > 

Thank you.

Best regards,

Dalyoung

 

> 2018. 2. 12. 오전 2:18, ntg-context-request@ntg.nl 작성:
> 
> You are right regarding the unnatural way of using \autointegral. An easy way to use the \autointegral command in a more natural way is to define one’s own macro, as in the following:
> 
> \setupmathdelimiter[integral][rightoffset=-3mu,exact=yes,factor=2]
> 
> \unexpanded\def\myint#1#2#3#4{\autointegral{#2}{#1}{#3(#4)}\,\diff #4}
> 
> \starttext
> $\myint{1}{4}{f}{x}$
> 
> \startformula
> \myint{0}{2\pi}{\cos(t)^2\sin}{t} = 0
> \stopformula
> And here is the classical \type{\int} command:
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1.
> \stopformula
> \stoptext
> 
> Best regards: OK


[-- Attachment #1.2: Type: text/html, Size: 13807 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
  2018-02-11 14:20 ` Jeong Dal
@ 2018-02-11 16:23   ` Otared Kavian
  0 siblings, 0 replies; 11+ messages in thread
From: Otared Kavian @ 2018-02-11 16:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Dalyoung,

You are right regarding the unnatural way of using \autointegral. An easy way to use the \autointegral command in a more natural way is to define one’s own macro, as in the following:

\setupmathdelimiter[integral][rightoffset=-3mu,exact=yes,factor=2]

\unexpanded\def\myint#1#2#3#4{\autointegral{#2}{#1}{#3(#4)}\,\diff #4}

\starttext
$\myint{1}{4}{f}{x}$

\startformula
\myint{0}{2\pi}{\cos(t)^2\sin}{t} = 0
\stopformula
And here is the classical \type{\int} command:
\startformula
\int_{0}^{1} g(x)\,\diff x = 1.
\stopformula
\stoptext

Best regards: OK

> On 11 Feb 2018, at 15:20, Jeong Dal <haksan@me.com> wrote:
> 
> 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
> ___________________________________________________________________________________

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with a macro
       [not found] <mailman.1.1518346801.23694.ntg-context@ntg.nl>
@ 2018-02-11 14:20 ` Jeong Dal
  2018-02-11 16:23   ` Otared Kavian
  0 siblings, 1 reply; 11+ messages in thread
From: Jeong Dal @ 2018-02-11 14:20 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-02-25 11:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-11  8:35 Problem with a macro Fabrice Couvreur
2018-02-11  9:01 ` Otared Kavian
2018-02-11 11:43   ` Fabrice Couvreur
2018-02-11 14:31 ` Wolfgang Schuster
     [not found] <mailman.1.1518346801.23694.ntg-context@ntg.nl>
2018-02-11 14:20 ` Jeong Dal
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

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