From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \definemathcommand lowers the text
Date: Thu, 18 Aug 2016 15:08:48 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.20.1608181506490.26646@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <CAHy-LL9rx3p1Mi7LCtGf05GUtjLgvJ1Faw0nWcn5dHtvnHX5ew@mail.gmail.com>
On Wed, 17 Aug 2016, Mikael P. Sundqvist wrote:
> Hi!
>
> look at the output of this (attached)
>
> \definemathcommand [D] [nolop] {\mfunction{D}}
> \starttext
> Compare $\D f$ with $\mfunction{D}f$.
> \stoptext
>
> In the \D, the D is lowered a bit. I think it should not be, or else I
> misuse something. If so, how should I define my own operator (I found
> this example on the wiki).
This is a "feature" of \mathop.
\definemathcommand [D] [nolop] {\mfunction{D}}
\starttext
Compare $\D f$ with $\mfunction{D}f$ and $\mathop{\mfunction{D}}f$.
\stoptext
If the argument of \mathop is a single character, \mathop centers the
glyph on the math axis (This is useful for \sum, \int, \prod, etc.). To
circumvent this, use:
\definemathcommand [D] [nolop] {\mfunction{D}\kern\zeropoint}
Aditya
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2016-08-18 19:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-17 8:55 Mikael P. Sundqvist
2016-08-18 19:08 ` Aditya Mahajan [this message]
[not found] ` <CAHy-LL_AQXPcebBZn4zXj9b12krBvD2eP932FLg0zkpCTL_rQg@mail.gmail.com>
2016-08-18 19:25 ` Mikael P. Sundqvist
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=alpine.LNX.2.20.1608181506490.26646@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--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).