From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problem with a macro
Date: Thu, 22 Feb 2018 22:15:25 +0100 [thread overview]
Message-ID: <CACyK-eosDWW5-+xmmpP-DcdSn49SByEhTZdqXb93_+FFHnOi-Q@mail.gmail.com> (raw)
In-Reply-To: <5A80D42E.4040604@gmail.com>
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2018-02-22 21:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
2018-02-23 14:03 ` Wolfgang Schuster
2018-02-25 11:43 ` Fabrice Couvreur
[not found] <mailman.1.1518346801.23694.ntg-context@ntg.nl>
2018-02-11 14:20 ` Jeong Dal
2018-02-11 16:23 ` Otared Kavian
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=CACyK-eosDWW5-+xmmpP-DcdSn49SByEhTZdqXb93_+FFHnOi-Q@mail.gmail.com \
--to=fabrice1.couvreur@gmail.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).