# [NTG-context] Problem with a macro

Fabrice Couvreur fabrice1.couvreur at gmail.com
Thu Feb 22 22:15:25 CET 2018

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 at gmail.com>:

>
> Jeong Dal <haksan at 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
>
> ____________________________________________________________
> _______________________
> the Wiki!
>
> maillist : ntg-context at 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
> ____________________________________________________________
> _______________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180222/b2c1c72a/attachment.html>